Modules | |
USB Generic Request definitions | |
USB Feature Request Definitions | |
Classes | |
struct | USBGenericRequest |
Typedefs | |
typedef uint8_t | USBHS_Add_t |
typedef uint8_t | USBHS_Ep_t |
typedef uint8_t USBHS_Add_t |
Definition at line 255 of file USBRequests.h.
typedef uint8_t USBHS_Ep_t |
Definition at line 256 of file USBRequests.h.
uint8_t USBFeatureRequest_GetFeatureSelector | ( | const USBGenericRequest * | request | ) |
Returns the feature selector of a given CLEAR_FEATURE or SET_FEATURE request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 221 of file USBRequests.c.
uint8_t USBFeatureRequest_GetTestSelector | ( | const USBGenericRequest * | request | ) |
Indicates the test that the device must undertake following a SET_FEATURE request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 233 of file USBRequests.c.
uint8_t USBGenericRequest_GetDirection | ( | const USBGenericRequest * | request | ) |
Returns the direction of the data transfer following the given request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 129 of file USBRequests.c.
uint8_t USBGenericRequest_GetEndpointNumber | ( | const USBGenericRequest * | request | ) |
Returns the endpoint number targeted by a given request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 105 of file USBRequests.c.
uint16_t USBGenericRequest_GetIndex | ( | const USBGenericRequest * | request | ) |
Returns the wIndex field of the given request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 85 of file USBRequests.c.
uint16_t USBGenericRequest_GetLength | ( | const USBGenericRequest * | request | ) |
Returns the expected length of the data phase following a request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 95 of file USBRequests.c.
uint8_t USBGenericRequest_GetRecipient | ( | const USBGenericRequest * | request | ) |
Returns the intended recipient of a given request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 117 of file USBRequests.c.
uint8_t USBGenericRequest_GetRequest | ( | const USBGenericRequest * | request | ) |
Returns the request code of the given request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 65 of file USBRequests.c.
uint8_t USBGenericRequest_GetType | ( | const USBGenericRequest * | request | ) |
Returns the type of the given request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 54 of file USBRequests.c.
uint16_t USBGenericRequest_GetValue | ( | const USBGenericRequest * | request | ) |
Returns the wValue field of the given request.
request | - Pointer to a USBGenericRequest instance. |
Definition at line 75 of file USBRequests.c.
uint8_t USBGetDescriptorRequest_GetDescriptorIndex | ( | const USBGenericRequest * | request | ) |
Returns the index of the requested descriptor, given the corresponding GET_DESCRIPTOR request.
request | Pointer to a USBGenericDescriptor instance. |
Definition at line 158 of file USBRequests.c.
uint8_t USBGetDescriptorRequest_GetDescriptorType | ( | const USBGenericRequest * | request | ) |
Returns the type of the descriptor requested by the host given the corresponding GET_DESCRIPTOR request.
request | Pointer to a USBGenericDescriptor instance. |
Definition at line 145 of file USBRequests.c.
uint8_t USBInterfaceRequest_GetAlternateSetting | ( | const USBGenericRequest * | request | ) |
Indicates the new alternate setting that the interface targeted by a SET_INTERFACE request should use.
request | Pointer to a USBGenericRequest instance. |
Definition at line 208 of file USBRequests.c.
uint8_t USBInterfaceRequest_GetInterface | ( | const USBGenericRequest * | request | ) |
Indicates which interface is targeted by a GET_INTERFACE or SET_INTERFACE request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 197 of file USBRequests.c.
uint8_t USBSetAddressRequest_GetAddress | ( | const USBGenericRequest * | request | ) |
Returns the address that the device must take in response to a SET_ADDRESS request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 172 of file USBRequests.c.
uint8_t USBSetConfigurationRequest_GetConfiguration | ( | const USBGenericRequest * | request | ) |
Returns the number of the configuration that should be set in response to the given SET_CONFIGURATION request.
request | Pointer to a USBGenericRequest instance. |
Definition at line 184 of file USBRequests.c.