Enumerations | |
enum | USB_Host_SendControlErrorCodes_t { HOST_SENDCONTROL_Successful = 0, HOST_SENDCONTROL_DeviceDisconnected = 1, HOST_SENDCONTROL_PipeError = 2, HOST_SENDCONTROL_SetupStalled = 3, HOST_SENDCONTROL_SoftwareTimeOut = 4 } |
Functions | |
uint8_t | USB_Host_SendControlRequest (void *const BufferPtr) |
Module for host mode request processing. This module allows for the transmission of standard, class and vendor control requests to the default control endpoint of an attached device while in host mode.
Enum for the USB_Host_SendControlRequest() return code, indicating the reason for the error if the transfer of the request is unsuccessful.
uint8_t USB_Host_SendControlRequest | ( | void *const | BufferPtr | ) |
Sends the request stored in the USB_ControlRequest global structure to the attached device, and transfers the data stored in the buffer to the device, or from the device to the buffer as requested. The transfer is made on the currently selected pipe.
[in] | BufferPtr | Pointer to the start of the data buffer if the request has a data stage, or NULL if the request transfers no data to or from the device. |