106 if (!event || !out || required_size == 0)
113 if (event->
data_len < required_size)
126 *out =
event->data.ptr;
static event_t event_queue[EVENT_QUEUE_CAPACITY]
bool event_queue_is_empty(void)
Check whether the queue is empty.
bool event_queue_push(const event_t *event_entry)
Enqueue an event.
static uint8_t event_queue_write
bool event_queue_is_full(void)
Check whether the queue is full.
bool event_get_payload_ptr(const event_t *event, size_t required_size, const void **out)
Resolve payload pointer and validate minimum payload size.
static uint8_t event_queue_high_water_mark
uint32_t event_queue_get_push_drop_count(void)
Get cumulative number of dropped push attempts.
void event_queue_init(void)
Initialize the event queue storage.
static uint8_t event_queue_count_internal(void)
bool event_queue_pop(event_t *event_out)
Dequeue an event.
static uint32_t event_queue_push_drops
size_t event_queue_get_count(void)
Get current number of queued events.
static uint8_t event_queue_read
size_t event_queue_get_high_water_mark(void)
Get peak queue fill count observed since init.
#define EVENT_QUEUE_CAPACITY
Maximum number of event slots in queue storage.