USB Controller
24.3.1.14 ROM_USBEndpointDataGet
Retrieves data from the given endpoint’s FIFO.
Prototype:
int32_t
ROM_USBEndpointDataGet(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint8_t *pui8Data,
uint32_t *pui32Size)
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_USBEndpointDataGet
is a function pointer located at
ROM_USBTABLE[10]
.
Parameters:
ui32Base
specifies the USB module base address.
ui32Endpoint
is the endpoint to access.
pui8Data
is a pointer to the data area used to return the data from the FIFO.
pui32Size
is initially the size of the buffer passed into this call via the
pui8Data
parameter. It
is set to the amount of data returned in the buffer.
Description:
This function will return the data from the FIFO for the given endpoint. The
pui32Size
param-
eter should indicate the size of the buffer passed in the
pui32Data
parameter. The data in the
pui32Size
parameter is changed to match the amount of data returned in the
pui8Data
param-
eter. If a zero byte packet was received this call will not return a error but will instead just return
a zero in the
pui32Size
parameter. The only error case occurs when there is no data packet
available.
Returns:
This call will return 0, or -1 if no packet was received.
24.3.1.15 ROM_USBEndpointDataPut
Puts data into the given endpoint’s FIFO.
Prototype:
int32_t
ROM_USBEndpointDataPut(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint8_t *pui8Data,
uint32_t ui32Size)
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_USBEndpointDataPut
is a function pointer located at
ROM_USBTABLE[11]
.
Parameters:
ui32Base
specifies the USB module base address.
312
April 8, 2013
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...