Unpack messages from the host.
typedef void(* MessageHandler)(const Message *) |
A function pointer used to handle new messages.
- Parameters
-
message | The message to handle. |
typedef void(* MessageHandler)(const Message *) |
A function pointer used to handle new messages.
- Parameters
-
message | The message to handle. |
bool StreamDecoder_GetFragmentedFrameFlag |
( |
| ) |
|
Get the value of the fragmented frame flag.
This indicates if a fragmented frame has been received. Fragmentation is expensive as it incurs an extra copy.
Initialize the Stream Decoder.
- Parameters
-
handler | The MessageHandler to call with each new message. |
If PIPELINE_HANDLE_MESSAGE is defined in app_pipeline.h, the macro will override the handler argument.
void StreamDecoder_Process |
( |
const uint8_t * |
data, |
|
|
unsigned int |
size |
|
) |
| |
Decode data from an input stream.
- Parameters
-
data | A pointer to the incoming data. |
size | The size of the incommig data buffer. |
Since this may result in a response being sent, this should only be called if there is space available in the Host TX buffer.