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

Snapshot of the attached CDC-ECM adapter, passed to the attach callback. More...

#include <ra8_usb_hcdc_ecm.h>

Data Fields

uint8_t device_address
 Assigned USB address (1..127).
uint8_t bulk_in_ep
 Adapter's bulk IN EP num.
uint8_t bulk_out_ep
 Adapter's bulk OUT EP num.
uint8_t intr_in_ep
 Adapter's intr IN (notify) EP num.
uint16_t bulk_in_max_packet
 Adapter bulk-IN wMaxPacketSize.
uint16_t bulk_out_max_packet
 Adapter bulk-OUT wMaxPacketSize.
uint16_t vendor_id
 idVendor from device descriptor.
uint16_t product_id
 idProduct from device descriptor.
uint8_t i_mac_address
 iMACAddress string descr index.
uint8_t mac_address [k_ra8_hcdc_ecm_mac_bytes]
 6-byte MAC parsed from iMACAddress.

Detailed Description

Snapshot of the attached CDC-ECM adapter, passed to the attach callback.

Populated by the host-CDC-ECM driver once the descriptor walk and iMACAddress string-descriptor fetch complete. Pipe numbers are the controller-side handles wired up against the attached adapter's bulk + interrupt endpoints. The attach-callback recipient should hold onto this struct (or copy it) so subsequent _send_frame / _recv_frame calls land on the right pipes.

Definition at line 172 of file ra8_usb_hcdc_ecm.h.

Field Documentation

◆ bulk_in_ep

uint8_t ra8_usb_hcdc_ecm_device_t::bulk_in_ep

Adapter's bulk IN EP num.

Definition at line 174 of file ra8_usb_hcdc_ecm.h.

◆ bulk_in_max_packet

uint16_t ra8_usb_hcdc_ecm_device_t::bulk_in_max_packet

Adapter bulk-IN wMaxPacketSize.

Definition at line 177 of file ra8_usb_hcdc_ecm.h.

◆ bulk_out_ep

uint8_t ra8_usb_hcdc_ecm_device_t::bulk_out_ep

Adapter's bulk OUT EP num.

Definition at line 175 of file ra8_usb_hcdc_ecm.h.

◆ bulk_out_max_packet

uint16_t ra8_usb_hcdc_ecm_device_t::bulk_out_max_packet

Adapter bulk-OUT wMaxPacketSize.

Definition at line 178 of file ra8_usb_hcdc_ecm.h.

◆ device_address

uint8_t ra8_usb_hcdc_ecm_device_t::device_address

Assigned USB address (1..127).

Definition at line 173 of file ra8_usb_hcdc_ecm.h.

◆ i_mac_address

uint8_t ra8_usb_hcdc_ecm_device_t::i_mac_address

iMACAddress string descr index.

Definition at line 181 of file ra8_usb_hcdc_ecm.h.

◆ intr_in_ep

uint8_t ra8_usb_hcdc_ecm_device_t::intr_in_ep

Adapter's intr IN (notify) EP num.

Definition at line 176 of file ra8_usb_hcdc_ecm.h.

◆ mac_address

uint8_t ra8_usb_hcdc_ecm_device_t::mac_address[k_ra8_hcdc_ecm_mac_bytes]

6-byte MAC parsed from iMACAddress.

Definition at line 182 of file ra8_usb_hcdc_ecm.h.

◆ product_id

uint16_t ra8_usb_hcdc_ecm_device_t::product_id

idProduct from device descriptor.

Definition at line 180 of file ra8_usb_hcdc_ecm.h.

◆ vendor_id

uint16_t ra8_usb_hcdc_ecm_device_t::vendor_id

idVendor from device descriptor.

Definition at line 179 of file ra8_usb_hcdc_ecm.h.


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