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

Send data on CDC data class interface.

Files

usbd_cdc.h/usbd_cdc.c

Prototype

Arguments

class_nbr

CDC instance number.

data_if_nbr

CDC data interface number.

p_buf

Pointer to buffer of data that will be transmitted.

buf_len

Number of octets to transmit.

timeout_ms

Timeout in milliseconds.

p_err

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

USBD_ERR_NONE
USBD_ERR_INVALID_ARG
USBD_ERR_INVALID_CLASS_STATE
USBD_ERR_DEV_INVALID_NBR
USBD_ERR_DEV_INVALID_STATE
USBD_ERR_EP_INVALID_ADDR
USBD_ERR_EP_INVALID_STATE
USBD_ERR_EP_INVALID_TYPE
USBD_ERR_OS_TIMEOUT
USBD_ERR_OS_ABORT
USBD_ERR_OS_FAIL

Returned Value

Numbers of octets transmitted, if no errors.

0, otherwise.

Callers

CDC Subclass drivers.

Notes / Warnings

None.

  • No labels