SAMV71 Xplained Ultra Software Package 1.3

USBDDriver.h File Reference

#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <USBRequests.h>
#include <USBDescriptors.h>
#include <USBLib_Types.h>

Go to the source code of this file.

Data Structures

struct  USBDDriverDescriptors
struct  USBDDriver

Functions

USBDDriverUSBD_GetDriver (void)
void USBDDriver_Initialize (USBDDriver *pDriver, const USBDDriverDescriptors *pDescriptors, uint8_t *pInterfaces)
USBConfigurationDescriptor * USBDDriver_GetCfgDescriptors (USBDDriver *pDriver, uint8_t cfgNum)
void USBDDriver_RequestHandler (USBDDriver *pDriver, const USBGenericRequest *pRequest)
uint8_t USBDDriver_IsRemoteWakeUpEnabled (const USBDDriver *pDriver)
uint8_t USBDDriver_returnOTGFeatures (const USBDDriver *pDriver)
void USBDDriver_clearOTGFeatures (USBDDriver *pDriver)
WEAK void USBDDriverCallbacks_ConfigurationChanged (uint8_t cfgnum)
WEAK void USBDDriverCallbacks_InterfaceSettingChanged (uint8_t interface, uint8_t setting)

Detailed Description

Purpose

USB Device Driver class definition.

Usage

  1. Instantiate a USBDDriver object and initialize it using USBDDriver_Initialize.
  2. When a USB SETUP request is received, forward it to the standard driver using USBDDriver_RequestHandler.
  3. Check the Remote Wakeup setting via USBDDriver_IsRemoteWakeUpEnabled.

Definition in file USBDDriver.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines