/
USBD_DrvEP_TxStart
USBD_DrvEP_TxStart
Description
Transmit the specified amount of data to device endpoint.
Files
Every device driver’s usbd_drv.c
Prototype
static void USBD_DrvEP_TxStart (USBD_DRV *p_drv, CPU_INT08U ep_addr, CPU_INT08U *p_buf, CPU_INT32U buf_len, USBD_ERR *p_err);
Arguments
p_drv
Pointer to USB device driver structure.
ep_addr
Endpoint address.
p_buf
Pointer to data buffer.
buf_len
Length of the buffer.
p_err
Pointer to variable that will receive the return error code from this function.
Returned Value
Number of octets transmitted, if NO error(s).
0, otherwise.
Callers
USB device core layer.
Notes / Warnings
- Typically, the function to configure the endpoint transmit transaction performs the following operations:
- Trigger packet transmission.
Related content
USBD_DrvEP_Tx
USBD_DrvEP_Tx
More like this
USBD_DrvEP_RxStart
USBD_DrvEP_RxStart
More like this
USBD_DrvEP_Open
USBD_DrvEP_Open
More like this
USBD_DrvEP_TxZLP
USBD_DrvEP_TxZLP
More like this
USBD_DrvEP_Rx
USBD_DrvEP_Rx
More like this
USBD_DrvEP_RxZLP
USBD_DrvEP_RxZLP
More like this