USB Controller
ui32Endpoint
is the endpoint to access.
pui8Data
is a pointer to the data area used as the source for the data to put into the FIFO.
ui32Size
is the amount of data to put into the FIFO.
Description:
This function will put the data from the
pui8Data
parameter into the FIFO for this endpoint. If
a packet is already pending for transmission then this call will not put any of the data into the
FIFO and will return -1. Care should be taken to not write more data than can fit into the FIFO
allocated by the call to
Returns:
This call will return 0 on success, or -1 to indicate that the FIFO is in use and cannot be written.
24.3.1.16 ROM_USBEndpointDataSend
Starts the transfer of data from an endpoint’s FIFO.
Prototype:
int32_t
ROM_USBEndpointDataSend(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint32_t ui32TransType)
ROM Location:
ROM_APITABLE
is an array of pointers located at
0x0100.0010
.
ROM_USBTABLE
is an array of pointers located at
ROM_APITABLE[16]
.
ROM_USBEndpointDataSend
is a function pointer located at
ROM_USBTABLE[12]
.
Parameters:
ui32Base
specifies the USB module base address.
ui32Endpoint
is the endpoint to access.
ui32TransType
is set to indicate what type of data is being sent.
Description:
This function will start the transfer of data from the FIFO for a given endpoint. This is necessary
if the
USB_EP_AUTO_SET
bit was not enabled for the endpoint. Setting the
ui32TransType
parameter will allow the appropriate signaling on the USB bus for the type of transaction being
requested. The
ui32TransType
parameter should be one of the following:
USB_TRANS_OUT for OUT transaction on any endpoint in host mode.
USB_TRANS_IN for IN transaction on any endpoint in device mode.
USB_TRANS_IN_LAST for the last IN transactions on endpoint zero in a sequence of IN
transactions.
USB_TRANS_SETUP for setup transactions on endpoint zero.
USB_TRANS_STATUS for status results on endpoint zero.
Returns:
This call will return 0 on success, or -1 if a transmission is already in progress.
April 8, 2013
313
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...