USB Controller
zero. The bIsLastPacket parameter is not used for endpoints other than endpoint zero. This
call can be used if processing is required between reading the data and acknowledging that
the data has been read.
Note:
This function should only be called in device mode.
Returns:
None.
24.3.1.9 ROM_USBDevEndpointStall
Stalls the specified endpoint in device mode.
Prototype:
void
ROM_USBDevEndpointStall(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint32_t ui32Flags)
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_USBDevEndpointStall is a function pointer located at ROM_USBTABLE[7].
Parameters:
ui32Base specifies the USB module base address.
ui32Endpoint specifies the endpoint to stall.
ui32Flags specifies whether to stall the IN or OUT endpoint.
Description:
This function will cause to endpoint number passed in to go into a stall condition. If the
ui32Flags parameter is USB_EP_DEV_IN then the stall is issued on the IN portion of this
endpoint. If the ui32Flags parameter is USB_EP_DEV_OUT then the stall is issued on the
OUT portion of this endpoint.
Note:
This function should only be called in device mode.
Returns:
None.
24.3.1.10 ROM_USBDevEndpointStallClear
Clears the stall condition on the specified endpoint in device mode.
Prototype:
void
ROM_USBDevEndpointStallClear(uint32_t ui32Base,
uint32_t ui32Endpoint,
uint32_t ui32Flags)
April 8, 2013 309