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
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