On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTUSB-32
RTUSB-32 Programming Manual
RTUSB-32 Reference Manual
Introduction
Initialization
Device Query
Device Configuration
Pipe I/O
Message Queues
Keyboard Class Driver
Mouse Class Driver
Touch Screen Driver
Printer Class Driver
Mass Storage Class Driver
AX772 USB-Ethernet Driver
AX172 USB-Ethernet Driver
CDC ECM USB-Ethernet Driver
Audio Class Driver
Structure RTUSBAudioConfig
Function USBAudio
Function USBAudioGetInfo
Function USBAudioGetFrequency
Function USBAudioSetFrequency
Function USBAudioGetFeature
Function USBAudioSetFeature
Function USBAudioPlay
Function USBAudioRecord
Function USBAudioWaitDone
Function USBAudioTranslate
Function USBAudioDumpUnits
Media Transfer Protocol Class Driver
RTUSB-32 Error Codes and Diagnostics
|
Structure RTUSBAudioConfig
The USB Audio class driver has a few global options which it reads from structure RTUSBAudioConfig. The default values are given below. Applications can either modify selected values before the driver is registered or an alternate RTUSBAudioConfig structure can be linked.
typedef struct {
int Flags;
int MaxIOsPlay;
int MaxIOsRecord;
} RTUSB32AudioConfig;
RTUSB32AudioConfig RTUSBAudioConfig = {
0, // Flags
2, // MaxIOsPlay
2 // MaxIOsRecord
};
There are currently no values defined for member Flags, which should be set to zero. MaxIOsPlay is the maximum number of I/O transactions the application can queue using function USBAudioPlay before calling USBAudioWaitDone. MaxIOsRecord is the maximum number of I/O transactions the application can queue using function USBAudioRecord before calling USBAudioWaitDone. Both values must be set to at least 2. Values higher that 16 are not recommended. With increasing MaxIOs... values, the CPU time requirement to play or record increases slightly. On the other hand, the real time requirement of the thread playing or recording is 1 - 1/MaxIO seconds (thus increases with MaxIOs...).
Function USBAudio
|