USBD_Audio_OT_Assoc
Description
Specify the entity ID connected to this Output Terminal and associate the Output Terminal to an Input Terminal.
Files
usbd_audio.h / usbd_audio.c
Prototype
void USBD_Audio_OT_Assoc (CPU_INT08U class_nbr, CPU_INT08U ot_id, CPU_INT08U entity_id_src, CPU_INT08U assoc_terminal_id, USBD_ERR *p_err);
Arguments
class_nbr
Class instance number.
ot_id
Output Terminal ID.
entity_id_src
ID of the Unit or Terminal to which this Terminal is connected.
assoc_terminal_id
Input Terminal ID associated.
p_err
Pointer to variable that will receive the return error code from this function.
USBD_ERR_NONE
USBD_ERR_CLASS_INVALID_NBR
Returned Value
None.
Callers
Application.
Notes / Warnings
The Output Terminal descriptor has the field 'bAssocTerminal'. It associates an Input Terminal to this Output Terminal, effectively implementing a bi-directional Terminal pair.
If there is no associated Input Terminal, you can set the parameter
assoc_terminal_id
toUSBD_AUDIO_TERMINAL_NO_ASSOCIATION