|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
src/-local shared surface for the ra8_sci driver TUs. More...
Go to the source code of this file.
Data Structures | |
| struct | ra8_sci_state_t |
| Per-channel dispatch state. More... | |
Enumerations | |
| enum | ra8_sci_limits_inner_t : uint8_t { k_ra8_sci_channel_max_index = 9U , k_ra8_sci_channel_count_val = 10U } |
| File-local bounds and channel-table sizing. More... | |
Variables | |
| ra8_sci_state_t | s_sci_state [k_ra8_sci_channel_count_val] |
| Per-channel allocation + dispatch table. | |
src/-local shared surface for the ra8_sci driver TUs.
The SCI_B driver is split across two translation units that share a single per-channel dispatch table: ra8_sci.c (configuration, polling, attach, runtime reconfigure, async byte-stream) defines the table, while ra8_sci_dma_isr.c (DMA TX/RX descriptor build + ISR dispatch) consumes it. This private header carries the channel-count enum, the ra8_sci_state_t layout, and an extern declaration of the shared s_sci_state array so both TUs agree on the storage.
Not a public API: only the ra8_sci source files include this.
Definition in file ra8_sci_internal.h.
| enum ra8_sci_limits_inner_t : uint8_t |
File-local bounds and channel-table sizing.
Shared between the two ra8_sci TUs so the channel index validation and the s_sci_state array sizing stay in lock-step.
| Enumerator | |
|---|---|
| k_ra8_sci_channel_max_index | SCI0..SCI9. |
| k_ra8_sci_channel_count_val | Total channels tracked. |
Definition at line 49 of file ra8_sci_internal.h.
|
extern |
Per-channel allocation + dispatch table.
Per-channel allocation + dispatch table (defined in ra8_sci.c).
Canonical definition of the cross-TU dispatch table declared extern in ra8_sci_internal.h; ra8_sci_dma_isr.c reads and mutates the same storage from the ISR dispatch path.
The canonical storage lives in ra8_sci.c; ra8_sci_dma_isr.c references it through this extern declaration so the ISR dispatch path sees the same in-flight async TX/RX state the configuration path mutates.
Definition at line 94 of file ra8_sci.c.
Referenced by ra8_sci_abort(), ra8_sci_attach_rx_handler(), ra8_sci_attach_tx_handler(), ra8_sci_deinit(), ra8_sci_dispatch_rxi(), ra8_sci_dispatch_txi(), ra8_sci_init(), ra8_sci_read(), ra8_sci_read_stop(), and ra8_sci_write().