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

Singleton shadow state for the host-MSC driver. More...

#include <ra8_hal_internal.h>

Collaboration diagram for ra8_usb_hmsc_state_t:

Data Fields

bool initialized
 True after init.
bool attached
 True after enum done.
ra8_usb_speed_t speed
 Underlying controller.
ra8_usb_hmsc_attach_fn_t attach_cb
 Attach callback, or NULL.
void * attach_ctx
 Attach callback ctx.
ra8_usb_hmsc_device_t device
 Snapshot of attached dev.
uint32_t next_cbw_tag
 Monotonic BOT tag.

Detailed Description

Singleton shadow state for the host-MSC driver.

Shared across the ra8_usb_hmsc split. The lifecycle / command-path TU (ra8_usb_hmsc.c) and the enumeration-ladder TU (ra8_usb_hmsc_enum.c) both read and write this object, so it remains a single instance with the type declared here in the shared private header.

Invariant
attached is only true after a completed enumeration pass.
Note
Module-private to libs/ra8_hal/src; not part of the public surface.
Since
0.1.0

Definition at line 220 of file ra8_hal_internal.h.

Field Documentation

◆ attach_cb

ra8_usb_hmsc_attach_fn_t ra8_usb_hmsc_state_t::attach_cb

Attach callback, or NULL.

Definition at line 224 of file ra8_hal_internal.h.

◆ attach_ctx

void* ra8_usb_hmsc_state_t::attach_ctx

Attach callback ctx.

Definition at line 225 of file ra8_hal_internal.h.

◆ attached

bool ra8_usb_hmsc_state_t::attached

True after enum done.

Definition at line 222 of file ra8_hal_internal.h.

◆ device

ra8_usb_hmsc_device_t ra8_usb_hmsc_state_t::device

Snapshot of attached dev.

Definition at line 226 of file ra8_hal_internal.h.

◆ initialized

bool ra8_usb_hmsc_state_t::initialized

True after init.

Definition at line 221 of file ra8_hal_internal.h.

◆ next_cbw_tag

uint32_t ra8_usb_hmsc_state_t::next_cbw_tag

Monotonic BOT tag.

Definition at line 227 of file ra8_hal_internal.h.

◆ speed

ra8_usb_speed_t ra8_usb_hmsc_state_t::speed

Underlying controller.

Definition at line 223 of file ra8_hal_internal.h.


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