Basic implementation of Xbus message parsing and generation for embedded processors. The code has no dependencies and should also work for other MCU architectures than ARM provided a C99 compiler is available.
XbusParserCallback Struct Reference
Callback function structure for use with the XbusParser. More...
|void *(*||allocateBuffer )(size_t bufSize)|
|Allocate a buffer for message reception. |
|void(*||deallocateBuffer )(void const *buffer)|
|Deallocate a buffer that was previously allocated by a call to allocateBuffer. |
|void(*||handleMessage )(struct XbusMessage const *message)|
|Handle a received message. |
Callback function structure for use with the XbusParser.
|void*(* allocateBuffer)(size_t bufSize)|
Allocate a buffer for message reception.
bufSize The size of the buffer to allocate.
- Pointer to buffer to use for message reception, or NULL if a buffer cannot be allocated.
- It is the resposibility of the user to deallocate the message data buffers pointed to by XbusMessage structures passed to the handleMessage() callback function.
|void(* deallocateBuffer)(void const *buffer)|
Generated on Mon Dec 17 2018 20:42:20 by 1.7.2