| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
HostStandardReq.c File Reference
`#include "USBMode.h"`
`#include "HostStandardReq.h"`

Go to the source code of this file.

## Functions
uint8_t | USB_Host_SendControlRequest (const uint8_t corenum, 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.
uint8_t | USB_Host_SetDeviceConfiguration (const uint8_t corenum, const uint8_t ConfigNumber)
| Sends a SET CONFIGURATION standard request to the attached device, with the given configuration index.
uint8_t | USB_Host_GetDeviceDescriptor (const uint8_t corenum, void *const DeviceDescriptorPtr)
| Sends a GET DESCRIPTOR standard request to the attached device, requesting the device descriptor. This can be used to easily retrieve information about the device such as its VID, PID and power requirements.
uint8_t | USB_Host_GetDeviceStringDescriptor (const uint8_t corenum, const uint8_t Index, void *const Buffer, const uint8_t BufferLength)
| Sends a GET DESCRIPTOR standard request to the attached device, requesting the string descriptor of the specified index. This can be used to easily retrieve string descriptors from the device by index, after the index is obtained from the Device or Configuration descriptors.
uint8_t | USB_Host_GetDeviceStatus (const uint8_t corenum, uint8_t *const FeatureStatus)
| Retrieves the current feature status of the attached device, via a GET STATUS standard request. The retrieved feature status can then be examined by masking the retrieved value with the various FEATURE_* masks for bus/self power information and remote wakeup support.
uint8_t | USB_Host_ClearEndpointStall (const uint8_t corenum, const uint8_t EndpointAddress)
| Clears a stall condition on the given pipe, via a CLEAR FEATURE standard request to the attached device.
uint8_t | USB_Host_SetInterfaceAltSetting (const uint8_t corenum, const uint8_t InterfaceIndex, const uint8_t AltSetting)
| Selects a given alternative setting for the specified interface, via a SET INTERFACE standard request to the attached device.

## Variables
uint8_t | USB_Host_ConfigurationNumber