141typedef enum : uint8_t {
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
CANFD controller register layout for the Renesas RA8D2.
ra8_chmdc_mode_t
Channel Mode Control (CFDC[0].CTR.CHMDC[1:0]) values.
Decryption On The Fly (DOTF) HAL driver public API.
@ k_ra8_dotf_channel_count
DOTF0 + DOTF1.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
volatile r_ssie_regs_t * priv_ra8_ssie_internal_regs(uint8_t channel)
Validate an SSIE channel index and return its register block.
ra8_ssie_internal_const_t
Internal magic-number constants promoted to typed enums.
@ k_ra8_ssie_dma_ch_unused
Sentinel: no DMA channel.
@ k_ra8_ssie_thresh_max
Max SSISCR threshold value.
@ k_ra8_ssie_dma_max_ch
DMAC channel count (0..7).
ra8_usb_hmsc_state_t g_usb_hmsc_state
Singleton host-MSC shadow state, shared across the ra8_usb_hmsc split.
ra8_ssie_runtime_t g_ssie_runtime[k_ra8_ssie_channel_count]
Per-channel SSIE runtime state, shared across the ra8_ssie split.
ra8_err_t priv_ra8_canfd_internal_set_channel_mode(volatile r_canfd_t *reg, ra8_chmdc_mode_t mode)
Drive CFDC[0].CTR.CHMDC and wait for the matching status bit.
static bool internal_ra8_dotf_internal_channel_in_range(uint8_t channel)
Bound-check a DOTF channel index.
void priv_ra8_mipi_csi_detach_all_handlers(void)
Detach every MIPI CSI-2 receiver callback (module / data-lane / virtual-channel / power-management / ...
static bool internal_port_ok(ra8_rmac_port_t port)
Range-check an RMAC port argument.
Ethernet MAC (RMAC) per-port register layout for the RA8D2.
ra8_rmac_port_t
RMAC port index (m = 0, 1).
@ k_ra8_rmac_port_count
Number of RMAC ports.
Serial Sound Interface Enhanced (SSIE) register layout for the RA8D2.
@ k_ra8_ssie_channel_count
SSIE0 + SSIE1.
ra8_usb_speed_t
Selects which controller instance the call targets.
Native USB host-side MSC (Mass Storage Class) class layer.
void(* ra8_usb_hmsc_attach_fn_t)(void *ctx, const ra8_usb_hmsc_device_t *device)
Attach-callback signature.
Per-channel SSIE register window.
Per-channel runtime bookkeeping.
uint8_t tx_dma_channel
DMAC channel pumping TX (or unused).
bool dma_attached
true after ra8_ssie_attach_dma.
uint8_t rx_dma_channel
DMAC channel pumping RX (or unused).
bool initialized
true after ra8_ssie_init succeeded.
Snapshot of the attached MSC device, passed to the attach callback.
Singleton shadow state for the host-MSC driver.
ra8_usb_hmsc_device_t device
Snapshot of attached dev.
ra8_usb_speed_t speed
Underlying controller.
void * attach_ctx
Attach callback ctx.
bool attached
True after enum done.
bool initialized
True after init.
uint32_t next_cbw_tag
Monotonic BOT tag.
ra8_usb_hmsc_attach_fn_t attach_cb
Attach callback, or NULL.