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

Snapshot of the attached CDC-ACM device, passed to the attach callback. More...

#include <ra8_usb_hcdc.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 intr_in_ep
 Attached device's intr IN EP num.
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 CDC-ACM device, passed to the attach callback.

Populated by the host-CDC driver once the descriptor walk completes. The pipe numbers are the controller-side handles wired up against the attached device's bulk + interrupt endpoints. The attach-callback recipient should hold onto this struct (or copy it) so subsequent ra8_usb_hcdc_send / _recv calls land on the right pipes.

Definition at line 150 of file ra8_usb_hcdc.h.

Field Documentation

◆ bulk_in_ep

uint8_t ra8_usb_hcdc_device_t::bulk_in_ep

Attached device's bulk IN EP num.

Definition at line 152 of file ra8_usb_hcdc.h.

◆ bulk_in_max_packet

uint16_t ra8_usb_hcdc_device_t::bulk_in_max_packet

Attached bulk-IN wMaxPacketSize.

Definition at line 155 of file ra8_usb_hcdc.h.

◆ bulk_out_ep

uint8_t ra8_usb_hcdc_device_t::bulk_out_ep

Attached device's bulk OUT EP num.

Definition at line 153 of file ra8_usb_hcdc.h.

◆ bulk_out_max_packet

uint16_t ra8_usb_hcdc_device_t::bulk_out_max_packet

Attached bulk-OUT wMaxPacketSize.

Definition at line 156 of file ra8_usb_hcdc.h.

◆ device_address

uint8_t ra8_usb_hcdc_device_t::device_address

Assigned USB address (1..127).

Definition at line 151 of file ra8_usb_hcdc.h.

◆ intr_in_ep

uint8_t ra8_usb_hcdc_device_t::intr_in_ep

Attached device's intr IN EP num.

Definition at line 154 of file ra8_usb_hcdc.h.

◆ product_id

uint16_t ra8_usb_hcdc_device_t::product_id

idProduct from device descriptor.

Definition at line 158 of file ra8_usb_hcdc.h.

◆ vendor_id

uint16_t ra8_usb_hcdc_device_t::vendor_id

idVendor from device descriptor.

Definition at line 157 of file ra8_usb_hcdc.h.


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