Functions | |
void * | WsfMsgDataAlloc (uint16_t len, uint8_t tailroom) |
Allocate a data message buffer to be sent with WsfMsgSend(). More... | |
void * | WsfMsgAlloc (uint16_t len) |
Allocate a message buffer to be sent with WsfMsgSend(). More... | |
void | WsfMsgFree (void *pMsg) |
Free a message buffer allocated with WsfMsgAlloc(). More... | |
void | WsfMsgSend (wsfHandlerId_t handlerId, void *pMsg) |
Send a message to an event handler. More... | |
void | WsfMsgEnq (wsfQueue_t *pQueue, wsfHandlerId_t handlerId, void *pMsg) |
Enqueue a message. More... | |
void * | WsfMsgDeq (wsfQueue_t *pQueue, wsfHandlerId_t *pHandlerId) |
Dequeue a message. More... | |
void * | WsfMsgPeek (wsfQueue_t *pQueue, wsfHandlerId_t *pHandlerId) |
Get the next message without removing it from the queue. More... | |
void * | WsfMsgNPeek (wsfQueue_t *pQueue, uint8_t n, wsfHandlerId_t *pHandlerId) |
Get the Nth message without removing it from the queue. More... | |
void* WsfMsgAlloc | ( | uint16_t | len | ) |
Allocate a message buffer to be sent with WsfMsgSend().
len | Message length in bytes. |
void* WsfMsgDataAlloc | ( | uint16_t | len, |
uint8_t | tailroom | ||
) |
Allocate a data message buffer to be sent with WsfMsgSend().
len | Message length in bytes. |
tailroom | Tailroom length in bytes. |
void* WsfMsgDeq | ( | wsfQueue_t * | pQueue, |
wsfHandlerId_t * | pHandlerId | ||
) |
Dequeue a message.
pQueue | Pointer to queue. |
pHandlerId | Handler ID of returned message; this is a return parameter. |
void WsfMsgEnq | ( | wsfQueue_t * | pQueue, |
wsfHandlerId_t | handlerId, | ||
void * | pMsg | ||
) |
Enqueue a message.
pQueue | Pointer to queue. |
handlerId | Set message handler ID to this value. |
pMsg | Pointer to message buffer. |
void WsfMsgFree | ( | void * | pMsg | ) |
Free a message buffer allocated with WsfMsgAlloc().
pMsg | Pointer to message buffer. |
void* WsfMsgNPeek | ( | wsfQueue_t * | pQueue, |
uint8_t | n, | ||
wsfHandlerId_t * | pHandlerId | ||
) |
Get the Nth message without removing it from the queue.
pQueue | Pointer to queue. |
n | Nth item from the top (0 = top element). |
pHandlerId | Handler ID of returned message; this is a return parameter. |
void* WsfMsgPeek | ( | wsfQueue_t * | pQueue, |
wsfHandlerId_t * | pHandlerId | ||
) |
Get the next message without removing it from the queue.
pQueue | Pointer to queue. |
pHandlerId | Handler ID of returned message; this is a return parameter. |
void WsfMsgSend | ( | wsfHandlerId_t | handlerId, |
void * | pMsg | ||
) |
Send a message to an event handler.
handlerId | Event handler ID. |
pMsg | Pointer to message buffer. |