ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_esp_hosted_queue_slot_t Struct Reference

One row of the fixed queue table. More...

Data Fields

TX_QUEUE cb
 ThreadX queue control block; must stay first.
void * storage
 Message ring carved from the queue pool.
uint32_t enqueued
 Messages currently held.
bool used
 Slot occupancy flag.

Detailed Description

One row of the fixed queue table.

The ThreadX control block is the first member, so a slot pointer and its control-block pointer are interchangeable; the port hands the slot address out as the opaque queue handle.

Invariant
used is true exactly while cb is a live ThreadX queue.
enqueued tracks cb's message count without an info call.
Example:
queue_handle_t q = g_h.funcs->_h_create_queue(20U, 28U);
void * queue_handle_t
Opaque handle to a port-owned message queue.
struct hosted_config_t g_h
The handle the vendored core dereferences to reach the vtable.
See also
priv_ra8_esp_hosted_rtos_bind_pool
Since
0.1.0

Definition at line 136 of file ra8_esp_hosted_rtos_pool.c.

Field Documentation

◆ cb

TX_QUEUE ra8_esp_hosted_queue_slot_t::cb

ThreadX queue control block; must stay first.

Definition at line 137 of file ra8_esp_hosted_rtos_pool.c.

Referenced by internal_h_dequeue_item(), internal_h_destroy_queue(), internal_h_queue_item(), and internal_h_reset_queue().

◆ enqueued

uint32_t ra8_esp_hosted_queue_slot_t::enqueued

◆ storage

void* ra8_esp_hosted_queue_slot_t::storage

Message ring carved from the queue pool.

Definition at line 138 of file ra8_esp_hosted_rtos_pool.c.

Referenced by internal_h_destroy_queue().

◆ used

bool ra8_esp_hosted_queue_slot_t::used

Slot occupancy flag.

Definition at line 140 of file ra8_esp_hosted_rtos_pool.c.

Referenced by internal_h_destroy_queue().


The documentation for this struct was generated from the following file: