USB Controller
USB_HOST_IN_PKTRDY - Data packet ready on this IN endpoint.
USB_HOST_OUT_NAK_TO - NAKs received on this OUT endpoint for more than the
specified timeout period.
USB_HOST_OUT_NOT_COMP - The device failed to respond to an OUT request.
USB_HOST_OUT_STALL - A stall was received on this OUT endpoint.
USB_HOST_OUT_ERROR - Failed to communicate with a device using this OUT end-
point.
USB_HOST_OUT_FIFO_NE - This endpoint’s OUT FIFO is not empty.
USB_HOST_OUT_PKTPEND - The data transfer on this OUT endpoint has not com-
pleted.
USB_HOST_EP0_NAK_TO - NAKs received on endpoint zero for more than the specified
timeout period.
USB_HOST_EP0_ERROR - The device failed to respond to a request on endpoint zero.
USB_HOST_EP0_IN_STALL - A stall was received on endpoint zero for an IN transaction.
USB_HOST_EP0_IN_PKTRDY - Data packet ready on endpoint zero for an IN transaction.
The following are the status flags for device mode:
USB_DEV_OUT_SENT_STALL - A stall was sent on this OUT endpoint.
USB_DEV_OUT_DATA_ERROR - There was a CRC or bit-stuff error on an OUT endpoint.
USB_DEV_OUT_OVERRUN - An OUT packet was not loaded due to a full FIFO.
USB_DEV_OUT_FIFO_FULL - The OUT endpoint’s FIFO is full.
USB_DEV_OUT_PKTRDY - There is a data packet ready in the OUT endpoint’s FIFO.
USB_DEV_IN_NOT_COMP - A larger packet was split up, more data to come.
USB_DEV_IN_SENT_STALL - A stall was sent on this IN endpoint.
USB_DEV_IN_UNDERRUN - Data was requested on the IN endpoint and no data was
ready.
USB_DEV_IN_FIFO_NE - The IN endpoint’s FIFO is not empty.
USB_DEV_IN_PKTPEND - The data transfer on this IN endpoint has not completed.
USB_DEV_EP0_SETUP_END - A control transaction ended before Data End condition
was sent.
USB_DEV_EP0_SENT_STALL - A stall was sent on endpoint zero.
USB_DEV_EP0_IN_PKTPEND - The data transfer on endpoint zero has not completed.
USB_DEV_EP0_OUT_PKTRDY - There is a data packet ready in endpoint zero’s OUT
FIFO.
Returns:
The current status flags for the endpoint depending on mode.
24.3.1.22 ROM_USBFIFOAddrGet
Returns the absolute FIFO address for a given endpoint.
Prototype:
uint32_t
ROM_USBFIFOAddrGet(uint32_t ui32Base,
uint32_t ui32Endpoint)
April 8, 2013 317