ConfigDescriptor.c File Reference

#include "ConfigDescriptor.h"

Functions

uint8_t USB_Host_GetDeviceConfigDescriptor (uint16_t *const ConfigSizePtr, void *BufferPtr)
void USB_Host_GetNextDescriptorOfType (uint16_t *const BytesRem, uint8_t **const CurrConfigLoc, const uint8_t Type)
void USB_Host_GetNextDescriptorOfTypeBefore (uint16_t *const BytesRem, uint8_t **const CurrConfigLoc, const uint8_t Type, const uint8_t BeforeType)
void USB_Host_GetNextDescriptorOfTypeAfter (uint16_t *const BytesRem, uint8_t **const CurrConfigLoc, const uint8_t Type, const uint8_t AfterType)
uint8_t USB_Host_GetNextDescriptorComp_P (uint16_t *BytesRem, uint8_t **CurrConfigLoc, uint8_t(*const ComparatorRoutine)(void *))

Function Documentation

uint8_t USB_Host_GetDeviceConfigDescriptor ( uint16_t *const   ConfigSizePtr,
void *  BufferPtr 
)

Retrieves the configuration descriptor data or size from an attached device via a standard request.

Parameters:
ConfigSizePtr Pointer to a uint16_t for either storing or retrieving the configuration descriptor size
BufferPtr Pointer to the buffer for storing the configuration descriptor data. If this is NULL, the size of the configuration descriptor will be retrieved instead and placed in the variable pointed to by ConfigSizePtr. If this is non-NULL, the number of bytes indicated by ConfigSizePtr of the configuration descriptor will be loaded into the buffer

uint8_t USB_Host_GetNextDescriptorComp_P ( uint16_t *  BytesRem,
uint8_t **  CurrConfigLoc,
uint8_t(*)(void *)  ComparatorRoutine 
)

void USB_Host_GetNextDescriptorOfType ( uint16_t *const   BytesRem,
uint8_t **const   CurrConfigLoc,
const uint8_t  Type 
)

void USB_Host_GetNextDescriptorOfTypeAfter ( uint16_t *const   BytesRem,
uint8_t **const   CurrConfigLoc,
const uint8_t  Type,
const uint8_t  AfterType 
)

void USB_Host_GetNextDescriptorOfTypeBefore ( uint16_t *const   BytesRem,
uint8_t **const   CurrConfigLoc,
const uint8_t  Type,
const uint8_t  BeforeType 
)


Generated on Wed Apr 1 16:39:51 2009 for LUFA Library by  doxygen 1.5.7.1