Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Initialize read communication pipe parameters.

Files

usbd_phdc.h / usbd_phdc.c

Prototype

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.

  • No labels