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

Caller-owned private state for a USB mass-storage block device. More...

#include <ra8_io_blockdev_usbmsc.h>

Data Fields

uint8_t lun
 SCSI logical unit this handle addresses (private).

Detailed Description

Caller-owned private state for a USB mass-storage block device.

Zero-initialise and pass to ra8_io_blockdev_usbmsc_init, which fills it and binds it into a ra8_io_blockdev_t. Treat the field as private. The state must out-live every call made through the device. The attached device itself is owned by the ra8_usb_hmsc class layer, so nothing but the LUN selection lives here.

Invariant
lun is within the class layer's k_ra8_hmsc_max_lun ceiling.
Since
0.1.0

Definition at line 84 of file ra8_io_blockdev_usbmsc.h.

Field Documentation

◆ lun

uint8_t ra8_io_blockdev_usbmsc_state_t::lun

SCSI logical unit this handle addresses (private).

Definition at line 85 of file ra8_io_blockdev_usbmsc.h.

Referenced by internal_usbmsc_get_caps(), internal_usbmsc_read(), internal_usbmsc_write(), and ra8_io_blockdev_usbmsc_init().


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