Class to handle interception of OS messages.
More...
#include <OsMessageInterceptor.h>
Class to handle interception of OS messages.
- Note
- Messages are output character-by-character so must be reassembled into lines before passing to callback function
◆ ~OsMessageInterceptor()
OsMessageInterceptor::~OsMessageInterceptor |
( |
| ) |
|
|
inline |
◆ begin()
Enable message interception.
- Parameters
-
callback | Function to receive messages |
- Note
- Messages are suppressed from output during interception. If you wish to send them to the uart, etc. then do this in the callback.
◆ end()
void OsMessageInterceptor::end |
( |
| ) |
|
Stop message interception and revert to output via uart driver.
◆ putch()
void OsMessageInterceptor::putch |
( |
char |
c | ) |
|
|
protected |
◆ static_putc()
static void OsMessageInterceptor::static_putc |
( |
char |
c | ) |
|
|
inlinestaticprotected |
The documentation for this class was generated from the following file: