![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
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... | |
Allocate a data message buffer to be sent with WsfMsgSend().
len | Message length in bytes. |
tailroom | Tailroom length in bytes. |
void* WsfMsgAlloc | ( | uint16_t | len | ) |
Allocate a message buffer to be sent with WsfMsgSend().
len | Message length in bytes. |
void WsfMsgFree | ( | void * | pMsg | ) |
Free a message buffer allocated with WsfMsgAlloc().
pMsg | Pointer to message buffer. |
void WsfMsgSend | ( | wsfHandlerId_t | handlerId, |
void * | pMsg | ||
) |
Send a message to an event handler.
handlerId | Event handler ID. |
pMsg | Pointer to message buffer. |
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* 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* 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. |