Class to handle interception of OS messages. More...

#include <OsMessageInterceptor.h>

Public Member Functions

 ~OsMessageInterceptor ()
 
void begin (OsMessageCallback callback)
 Enable message interception. More...
 
void end ()
 Stop message interception and revert to output via uart driver. More...
 

Protected Member Functions

void putc (char c)
 

Static Protected Member Functions

static void static_putc (char c)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ~OsMessageInterceptor()

OsMessageInterceptor::~OsMessageInterceptor ( )
inline

Member Function Documentation

◆ begin()

void OsMessageInterceptor::begin ( OsMessageCallback  callback)

Enable message interception.

Parameters
callbackFunction 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.

◆ putc()

void OsMessageInterceptor::putc ( char  c)
protected

◆ static_putc()

static void OsMessageInterceptor::static_putc ( char  c)
inlinestaticprotected

The documentation for this class was generated from the following file: