Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
XbusParserCallback Struct Reference
Callback function structure for use with the XbusParser. More...
#include <xbusparser.h>
Data Fields | |
| 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. | |
Detailed Description
Callback function structure for use with the XbusParser.
Definition at line 31 of file xbusparser.h.
Field Documentation
| void*(* allocateBuffer)(size_t bufSize) |
Allocate a buffer for message reception.
- Parameters:
-
bufSize The size of the buffer to allocate.
- Returns:
- Pointer to buffer to use for message reception, or NULL if a buffer cannot be allocated.
- Note:
- It is the resposibility of the user to deallocate the message data buffers pointed to by XbusMessage structures passed to the handleMessage() callback function.
Definition at line 43 of file xbusparser.h.
| void(* deallocateBuffer)(void const *buffer) |
Deallocate a buffer that was previously allocated by a call to allocateBuffer.
Definition at line 49 of file xbusparser.h.
| void(* handleMessage)(struct XbusMessage const *message) |
Handle a received message.
- Note:
- If the passed XbusMessage structure has a non-null data pointer then it is the responsibility of the user to free this once handling of the message is complete.
Definition at line 58 of file xbusparser.h.
Generated on Wed Jul 13 2022 07:56:16 by
1.7.2

