48 #ifndef ti_dpl_MessageQueueP__include 49 #define ti_dpl_MessageQueueP__include 54 #include <ti/devices/DeviceFamily.h> 66 #define MessageQueueP_STRUCT_SIZE (104) 81 #if ((DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X0_CC26X0) || \ 82 (DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X2_CC26X2) || \ 83 (DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X1_CC26X1) || \ 84 (DeviceFamily_PARENT == DeviceFamily_PARENT_CC13X4_CC26X3_CC26X4) || \ 85 (DeviceFamily_PARENT == DeviceFamily_PARENT_CC32XX)) 86 #define MessageQueueP_BUFFER_SIZE(msgSize, msgCount) ((msgCount) * ((msgSize) + 8)) 88 #define MessageQueueP_BUFFER_SIZE(msgSize, msgCount) ((msgCount) * (msgSize)) 105 #define MessageQueueP_WAIT_FOREVER ~(0) 110 #define MessageQueueP_NO_WAIT (0) size_t MessageQueueP_getPendingCount(MessageQueueP_Handle handle)
Get the number of messages stored in a message queue.
uint8_t data[(104)]
Definition: MessageQueueP.h:99
void MessageQueueP_delete(MessageQueueP_Handle handle)
Delete a MessageQueueP.
union MessageQueueP_Struct MessageQueueP_Struct
MessageQueueP structure.
void * MessageQueueP_Handle
Opaque client reference to an instance of a MessageQueueP.
Definition: MessageQueueP.h:131
#define MessageQueueP_STRUCT_SIZE
Number of bytes greater than or equal to the size of any RTOS Queue/Mailbox data structure.
Definition: MessageQueueP.h:66
size_t MessageQueueP_getFreeCount(MessageQueueP_Handle handle)
Get the number of free spaces in a message queue.
void MessageQueueP_destruct(MessageQueueP_Handle handle)
Destruct a MessageQueueP.
MessageQueueP_Status
Status codes for MessageQueueP APIs.
Definition: MessageQueueP.h:115
MessageQueueP_Status MessageQueueP_pend(MessageQueueP_Handle handle, void *message, uint32_t timeout)
Receive an item from a message queue.
MessageQueueP_Handle MessageQueueP_create(size_t msgSize, size_t msgCount)
Create a MessageQueueP, allocating memory on the heap.
MessageQueueP_Status MessageQueueP_postFront(MessageQueueP_Handle handle, const void *message, uint32_t timeout)
Post an item in the front of a message queue.
MessageQueueP_Status MessageQueueP_peek(MessageQueueP_Handle handle, void *message, uint32_t timeout)
Receive an item from a message queue without removing the item from the queue.
uint32_t dummy
Definition: MessageQueueP.h:98
MessageQueueP structure.
Definition: MessageQueueP.h:96
MessageQueueP_Handle MessageQueueP_construct(MessageQueueP_Struct *queueStruct, size_t msgSize, size_t msgCount, void *msgBuf)
Construct a MessageQueueP from statically allocated memory.
Definition: MessageQueueP.h:118
Definition: MessageQueueP.h:120
MessageQueueP_Status MessageQueueP_post(MessageQueueP_Handle handle, const void *message, uint32_t timeout)
Post an item on a message queue.