USBD_ACM_SerialTx

Description

Send data on CDC ACM serial emulation subclass.

Files

usbd_acm_serial.h/usbd_acm_serial.c

Prototype

CPU_INT32U  USBD_ACM_SerialTx (CPU_INT08U   subclass_nbr,
                               CPU_INT08U  *p_buf,
                               CPU_INT32U   buf_len,
                               CPU_INT16U   timeout,
                               USBD_ERR    *p_err);


Arguments

subclass_nbr

Pointer to USB device driver structure.

p_buf

Pointer to buffer of data that will be transmitted.

buf_len

Number of octets to receive.

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

Number of octets transmitted, if NO error(s).

0, otherwise.

Callers

Application.

Notes / Warnings

None.