A multi-core and IRQ safe queue instance.
More...
#include <queue.h>
|
|
lock_core_t | core |
| | Core lock state used for synchronisation.
|
|
uint8_t * | data |
| | Pointer to the backing data buffer.
|
|
uint16_t | wptr |
| | Write pointer (index of next slot to write).
|
|
uint16_t | rptr |
| | Read pointer (index of next slot to read).
|
|
uint16_t | element_size |
| | Size in bytes of each element.
|
|
uint16_t | element_count |
| | Maximum number of elements the queue can hold.
|
A multi-core and IRQ safe queue instance.
Stores a maximum number of elements of a fixed size. All operations are protected by a spinlock, making the queue safe to use from multiple cores and from interrupt handlers.
The documentation for this struct was generated from the following file: