#include <avr/io.h>
#include <stdbool.h>
#include "LowLevel.h"
#include "StdRequestType.h"
Data Structures | |
struct | USB_Host_Request_Header_t |
Enumerations | |
enum | USB_Host_SendControlErrorCodes_t { HOST_SENDCONTROL_Successful = 0, HOST_SENDCONTROL_DeviceDisconnect = 1, HOST_SENDCONTROL_PipeError = 2, HOST_SENDCONTROL_SetupStalled = 3, HOST_SENDCONTROL_SoftwareTimeOut = 4 } |
Functions | |
uint8_t | USB_Host_SendControlRequest (void *BufferPtr) |
Variables | |
USB_Host_Request_Header_t | USB_HostRequest |
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 * | BufferPtr | ) |
Sends the request stored in the USB_HostRequest 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.
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. |
Global for the request to send via the USB_Host_SendControlRequest() function. This global should be filled with the correct control request data before sending the request to the attached device while in host mode.