QueueNotifying#
Modules#
Enumerations#
Defines return values from QueueBlocking methods.
Typedefs#
Defines return values from QueueBlocking methods.
Notifying Queue object.
Functions#
Initialize QueueNotifying.
Adds item to back of queue and notifies receiver task.
Adds item to back of queue and notifies receiver task.
Adds item to front of queue and notifies receiver task.
Enumeration Documentation#
EQueueNotifyingStatus#
EQueueNotifyingStatus
Defines return values from QueueBlocking methods.
Enumerator | |
---|---|
EQUEUENOTIFYING_STATUS_SUCCESS | Item successfully put on queue and receiver task notified. |
EQUEUENOTIFYING_STATUS_TIMEOUT | Failed to put item on queue as it was full. |
33
of file /mnt/raid/workspaces/ws.H9QSi59DS/overlay/gsdk/protocol/z-wave/Components/QueueNotifying/QueueNotifying.h
Typedef Documentation#
EQueueNotifyingStatus#
typedef enum EQueueNotifyingStatus EQueueNotifyingStatus
Defines return values from QueueBlocking methods.
39
of file /mnt/raid/workspaces/ws.H9QSi59DS/overlay/gsdk/protocol/z-wave/Components/QueueNotifying/QueueNotifying.h
SQueueNotifying#
typedef struct SQueueNotifying SQueueNotifying
Notifying Queue object.
All content is public.
53
of file /mnt/raid/workspaces/ws.H9QSi59DS/overlay/gsdk/protocol/z-wave/Components/QueueNotifying/QueueNotifying.h
Function Documentation#
QueueNotifyingInit#
void QueueNotifyingInit (SQueueNotifying * pThis, void * Queue, void * ReceiverTask, uint8_t iTaskNotificationBitNumber)
Initialize QueueNotifying.
[in] | pThis | Pointer to the QueueNotifying object |
[in] | Queue | FreeRTOS queue handle. The Queue wrapped by QueueNotifying. |
[in] | ReceiverTask | FreeRTOS task handle for the task to be notified on adding items to queue. |
[in] | iTaskNotificationBitNumber | Number defines which bit to use when notifying receiver task of item added to queue (range 0 - 31) |
Must be called prior to calling any other QueueNotifying methods on a QueueNotifying object.
68
of file /mnt/raid/workspaces/ws.H9QSi59DS/overlay/gsdk/protocol/z-wave/Components/QueueNotifying/QueueNotifying.h
QueueNotifyingSendToBack#
EQueueNotifyingStatus QueueNotifyingSendToBack (SQueueNotifying * pThis, const uint8_t * pItem, uint32_t iTimeToWait)
Adds item to back of queue and notifies receiver task.
[in] | pThis | Pointer to the QueueNotifying object. |
[in] | pItem | Pointer to item to put on Queue. Expected size is the size configured in the Queue passed on QueueNotifyingInit. |
[in] | iTimeToWait | How many milliseconds to wait if queue is full. 0 means dont wait. |
Mainly a wrapper method for FreeRTOS xQueueSendToBack(). A notification is also sent to the receiver task.
84
of file /mnt/raid/workspaces/ws.H9QSi59DS/overlay/gsdk/protocol/z-wave/Components/QueueNotifying/QueueNotifying.h
QueueNotifyingSendToBackFromISR#
EQueueNotifyingStatus QueueNotifyingSendToBackFromISR (SQueueNotifying * pThis, const uint8_t * pItem)
Adds item to back of queue and notifies receiver task.
[in] | pThis | Pointer to the QueueNotifying object. |
[in] | pItem | Pointer to item to put on Queue. Expected size if the size configured in the Queue passed on QueueNotifyingInit. |
Mainly a wrapper method for FreeRTOS xQueueSendToBackFromISR(). A notification is also sent to the receiver task.
97
of file /mnt/raid/workspaces/ws.H9QSi59DS/overlay/gsdk/protocol/z-wave/Components/QueueNotifying/QueueNotifying.h
QueueNotifyingSendToFront#
EQueueNotifyingStatus QueueNotifyingSendToFront (SQueueNotifying * pThis, const uint8_t * pItem, uint32_t iTimeToWait)
Adds item to front of queue and notifies receiver task.
[in] | pThis | Pointer to the QueueNotifying object. |
[in] | pItem | Pointer to item to put on Queue. Expected size if the size configured in the Queue passed on QueueNotifyingInit. |
[in] | iTimeToWait | How many milliseconds to wait if queue is full. 0 means dont wait. |
Mainly a wrapper method for FreeRTOS xQueueSendToFront(). A notification is also sent to the receiver task. It is recommended to use QueueNotifyingSendToBack() instead, unless its a specific wish to put item in front of other items already on the queue.
113
of file /mnt/raid/workspaces/ws.H9QSi59DS/overlay/gsdk/protocol/z-wave/Components/QueueNotifying/QueueNotifying.h