USBD_Audio_IT_Assoc

Description

Associate the Input Terminal to an Output Terminal

Files

usbd_audio.h / usbd_audio.c

Prototype

void  USBD_Audio_IT_Assoc (CPU_INT08U   class_nbr,
                           CPU_INT08U   it_id,
                           CPU_INT08U   assoc_terminal_id,
                           USBD_ERR    *p_err);


Arguments

class_nbr

Class instance number.

it_id

Input Terminal ID.

assoc_terminal_id

Output 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

  1. The Input Terminal descriptor has the field 'bAssocTerminal'. It associates an Output Terminal to this Input Terminal, effectively implementing a bi-directional Terminal pair.

  2. If there is no associated Output Terminal, you can set the parameter assoc_terminal_id to USBD_AUDIO_TERMINAL_NO_ASSOCIATION