SDAA062 September 2025 TMS320F28P559SJ-Q1
This function writes the supplied data into the transmit buffer. This API is called in ReadSCIData() function in USBSCIRXIntHandler(). The transmit buffer data is packaged according to the constraints imposed by the lower layer in use and sent to the USB controller as soon as possible. Once a packet is transmitted and acknowledged, a USB_EVENT_TX_COMPLETE event is sent to the application callback indicating the number of bytes that are sent from the buffer. Attempts to send more data than the transmit buffer range results in data loss. The value returned by the function indicates the actual number of bytes written to the buffer.
| Input Variables | Description |
|---|---|
| psBuffer | The pointer to the buffer instance that is to be queried. |
| pui8Data | The first byte of data that is to be written. |
| ui32Length | The number of bytes of data to write to the buffer. |