USBD_PHDC_RdCfg

Description

Initialize read communication pipe parameters.

Files

usbd_phdc.h / usbd_phdc.c

Prototype

void  USBD_PHDC_RdCfg (CPU_INT08U           class_nbr,
                       LATENCY_RELY_FLAGS   latency_rely,
                       CPU_INT08U          *p_data_opaque,
                       CPU_INT08U           data_opaque_len,
                       USBD_ERR            *p_err);


Arguments

class_nbr

PHDC instance number.

latency_rely

Bitmap of transfer latency / reliability that this communication pipe will carry. Can be one or more of these values:

USBD_PHDC_LATENCY_VERYHIGH_RELY_BEST
USBD_PHDC_LATENCY_HIGH_RELY_BEST
USBD_PHDC_LATENCY_MEDIUM_RELY_BEST

p_data_opaque

Pointer to a buffer that contains opaque data related to this communication pipe.

data_opaque_len

Length of opaque data (in octets). If 0, no metadata descriptor will be written for the endpoint.

p_err

Pointer to variable that will receive the return error code from this function.

USBD_ERR_NONE
USBD_ERR_NULL_PTR
USBD_ERR_INVALID_ARG

Returned Value

None.

Callers

Application.

Notes / Warnings

USBD_PHDC_RdCfg() should be called after USBD_PHDC_Init() and USBD_PHDC_Add but before USBD_PHDC_CfgAdd.