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

Current iso stream format negotiated with the host. More...

#include <ra8_usb_paud.h>

Data Fields

uint32_t sample_rate_hz
 Current SET_CUR sample rate.
uint8_t channels
 1 = mono, 2 = stereo.
uint8_t bytes_per_sample
 16-bit -> 2, 24-bit -> 3, etc.

Detailed Description

Current iso stream format negotiated with the host.

Mirrors the AS Format-Type-I descriptor: sample rate, channel count, and sub-frame size. USB Audio 1.0 sec 2.2.5 "Format Type Descriptor".

Invariant
sample_rate_hz != 0 && channels in {1,2} && bytes_per_sample in {1,2,3,4}.

Definition at line 151 of file ra8_usb_paud.h.

Field Documentation

◆ bytes_per_sample

uint8_t ra8_usb_paud_format_t::bytes_per_sample

16-bit -> 2, 24-bit -> 3, etc.

Definition at line 154 of file ra8_usb_paud.h.

Referenced by ra8_usb_paud_set_format().

◆ channels

uint8_t ra8_usb_paud_format_t::channels

1 = mono, 2 = stereo.

Definition at line 153 of file ra8_usb_paud.h.

Referenced by ra8_usb_paud_set_format().

◆ sample_rate_hz

uint32_t ra8_usb_paud_format_t::sample_rate_hz

Current SET_CUR sample rate.

Definition at line 152 of file ra8_usb_paud.h.

Referenced by ra8_usb_paud_set_format().


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