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

Snapshot of the attached MSC device, passed to the attach callback. More...

#include <ra8_usb_hmsc.h>

Data Fields

uint8_t device_address
 Assigned USB address (1..127).
uint8_t bulk_in_ep
 Attached device's bulk IN EP num.
uint8_t bulk_out_ep
 Attached device's bulk OUT EP num.
uint8_t max_lun
 Get-Max-LUN response (0..15).
uint8_t interface_number
 MSC bInterfaceNumber.
uint16_t bulk_in_max_packet
 Attached bulk-IN wMaxPacketSize.
uint16_t bulk_out_max_packet
 Attached bulk-OUT wMaxPacketSize.
uint16_t vendor_id
 idVendor from device descriptor.
uint16_t product_id
 idProduct from device descriptor.

Detailed Description

Snapshot of the attached MSC device, passed to the attach callback.

Populated by the host-MSC driver once the descriptor walk completes and Get-Max-LUN comes back. The pipe numbers are the controller-side handles wired up against the attached device's bulk endpoints. The recipient should hold onto this struct (or copy it) so subsequent SCSI calls land on the right LUN.

Definition at line 186 of file ra8_usb_hmsc.h.

Field Documentation

◆ bulk_in_ep

uint8_t ra8_usb_hmsc_device_t::bulk_in_ep

Attached device's bulk IN EP num.

Definition at line 188 of file ra8_usb_hmsc.h.

◆ bulk_in_max_packet

uint16_t ra8_usb_hmsc_device_t::bulk_in_max_packet

Attached bulk-IN wMaxPacketSize.

Definition at line 192 of file ra8_usb_hmsc.h.

◆ bulk_out_ep

uint8_t ra8_usb_hmsc_device_t::bulk_out_ep

Attached device's bulk OUT EP num.

Definition at line 189 of file ra8_usb_hmsc.h.

◆ bulk_out_max_packet

uint16_t ra8_usb_hmsc_device_t::bulk_out_max_packet

Attached bulk-OUT wMaxPacketSize.

Definition at line 193 of file ra8_usb_hmsc.h.

◆ device_address

uint8_t ra8_usb_hmsc_device_t::device_address

Assigned USB address (1..127).

Definition at line 187 of file ra8_usb_hmsc.h.

◆ interface_number

uint8_t ra8_usb_hmsc_device_t::interface_number

MSC bInterfaceNumber.

Definition at line 191 of file ra8_usb_hmsc.h.

◆ max_lun

uint8_t ra8_usb_hmsc_device_t::max_lun

Get-Max-LUN response (0..15).

Definition at line 190 of file ra8_usb_hmsc.h.

Referenced by microsd_host_enumerate(), mlun_host_enumerate(), ospirw_host_enumerate(), and wlun_host_enumerate().

◆ product_id

◆ vendor_id

uint16_t ra8_usb_hmsc_device_t::vendor_id

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