EasyManuals Logo

Texas Instruments Tiva TM4C123GH6PM User Manual

Texas Instruments Tiva TM4C123GH6PM
352 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #312 background imageLoading...
Page #312 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments Tiva TM4C123GH6PM and is the answer not in the manual?

Texas Instruments Tiva TM4C123GH6PM Specifications

General IconGeneral
BrandTexas Instruments
ModelTiva TM4C123GH6PM
CategoryMicrocontrollers
LanguageEnglish

Related product manuals