SAM3S8/SD8 Software Package: libraries/usb/device/hid-transfer/HIDDFunction.c File Reference

SAM3S8/SD8 Software Package 1.2
Defines | Functions

# HIDDFunction.c File Reference

`#include "HIDDFunction.h"`
`#include "USBDescriptors.h"`
`#include "HIDDescriptors.h"`
`#include "USBLib_Trace.h"`

Go to the source code of this file.

## Defines

#define | _PU8(v) ((uint8_t*)&(v))
#define | _Word(a) (_PU8(a)[0] + (_PU8(a)[1] << 8))

## Functions

void | HIDDFunction_Initialize (HIDDFunction *pHidd, USBDDriver *pUsbd, uint8_t bInterfaceNb, const uint8_t *pReportDescriptor, HIDDReport *pInputList[], uint8_t bInputListSize, HIDDReport *pOutputList[], uint8_t bOutputListSize)
USBGenericDescriptor * | HIDDFunction_ParseInterface (HIDDFunction *pHidd, USBGenericDescriptor *pDescriptors, uint32_t dwLength)
uint32_t | HIDDFunction_StartPollingOutputs (HIDDFunction *pHidd)
uint32_t | HIDDFunction_StartSendingInputs (HIDDFunction *pHidd)
uint32_t | HIDDFunction_RequestHandler (HIDDFunction *pHidd, const USBGenericRequest *request)
uint32_t | HIDDFunction_Read (const HIDDFunction *pHidd, void *pData, uint32_t dwLength, TransferCallback fCallback, void *pArg)
uint32_t | HIDDFunction_Write (const HIDDFunction *pHidd, void *pData, uint32_t dwLength, TransferCallback fCallback, void *pArg)
void | HIDDFunction_InitializeReport (HIDDReport *pReport, uint16_t wSize, uint8_t bID, HIDDReportEventCallback fCallback, void *pArg)

## Detailed Description

Implementation of the HIDDFunction class methods.

Definition in file HIDDFunction.c.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines