|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Snapshot of the attached audio device, passed to the attach callback. More...
#include <ra8_usb_haud.h>
Data Fields | |
| uint8_t | device_address |
| Assigned USB address (1..127). | |
| uint8_t | ac_interface |
| AudioControl bInterfaceNumber. | |
| uint8_t | as_interface |
| AudioStreaming bInterfaceNumber. | |
| uint8_t | feature_unit_id |
| Feature Unit bUnitID (for FU controls). | |
| uint8_t | iso_in_ep |
| iso-IN EP num (0 if absent). | |
| uint8_t | iso_out_ep |
| iso-OUT EP num (0 if absent). | |
| uint8_t | channel_count |
| bNrChannels from FORMAT_TYPE_I desc. | |
| uint8_t | bits_per_sample |
| bBitResolution from FORMAT_TYPE_I. | |
| uint16_t | iso_in_max_packet |
| iso-IN wMaxPacketSize. | |
| uint16_t | iso_out_max_packet |
| iso-OUT wMaxPacketSize. | |
| uint16_t | vendor_id |
| idVendor from device descriptor. | |
| uint16_t | product_id |
| idProduct from device descriptor. | |
| uint32_t | sample_rate_min_hz |
| Minimum tSamFreq from FORMAT_TYPE_I. | |
| uint32_t | sample_rate_max_hz |
| Maximum tSamFreq from FORMAT_TYPE_I. | |
Snapshot of the attached audio device, passed to the attach callback.
Populated by the host-Audio driver once the descriptor walk completes. The pipe number is the controller-side handle wired up against the attached device's isochronous endpoints. The recipient should hold onto this struct (or copy it) so subsequent format / volume / mute calls land on the right Feature Unit.
Definition at line 260 of file ra8_usb_haud.h.
| uint8_t ra8_usb_haud_device_t::ac_interface |
AudioControl bInterfaceNumber.
Definition at line 262 of file ra8_usb_haud.h.
| uint8_t ra8_usb_haud_device_t::as_interface |
AudioStreaming bInterfaceNumber.
Definition at line 263 of file ra8_usb_haud.h.
| uint8_t ra8_usb_haud_device_t::bits_per_sample |
bBitResolution from FORMAT_TYPE_I.
Definition at line 268 of file ra8_usb_haud.h.
| uint8_t ra8_usb_haud_device_t::channel_count |
bNrChannels from FORMAT_TYPE_I desc.
Definition at line 267 of file ra8_usb_haud.h.
| uint8_t ra8_usb_haud_device_t::device_address |
Assigned USB address (1..127).
Definition at line 261 of file ra8_usb_haud.h.
| uint8_t ra8_usb_haud_device_t::feature_unit_id |
Feature Unit bUnitID (for FU controls).
Definition at line 264 of file ra8_usb_haud.h.
| uint8_t ra8_usb_haud_device_t::iso_in_ep |
iso-IN EP num (0 if absent).
Definition at line 265 of file ra8_usb_haud.h.
| uint16_t ra8_usb_haud_device_t::iso_in_max_packet |
iso-IN wMaxPacketSize.
Definition at line 269 of file ra8_usb_haud.h.
| uint8_t ra8_usb_haud_device_t::iso_out_ep |
iso-OUT EP num (0 if absent).
Definition at line 266 of file ra8_usb_haud.h.
| uint16_t ra8_usb_haud_device_t::iso_out_max_packet |
iso-OUT wMaxPacketSize.
Definition at line 270 of file ra8_usb_haud.h.
| uint16_t ra8_usb_haud_device_t::product_id |
idProduct from device descriptor.
Definition at line 272 of file ra8_usb_haud.h.
| uint32_t ra8_usb_haud_device_t::sample_rate_max_hz |
Maximum tSamFreq from FORMAT_TYPE_I.
Definition at line 274 of file ra8_usb_haud.h.
| uint32_t ra8_usb_haud_device_t::sample_rate_min_hz |
Minimum tSamFreq from FORMAT_TYPE_I.
Definition at line 273 of file ra8_usb_haud.h.
| uint16_t ra8_usb_haud_device_t::vendor_id |
idVendor from device descriptor.
Definition at line 271 of file ra8_usb_haud.h.