Classes | Typedefs | Functions
USBDDriver.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <USBRequests.h>
#include <USBDescriptors.h>
#include <USBLib_Types.h>
Include dependency graph for USBDDriver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _USBDDriver
 
struct  _USBDDriverDescriptors
 

Typedefs

typedef struct _USBDDriver USBDDriver
 USB device driver structure, holding a list of descriptors identifying the device as well as the driver current state. More...
 
typedef struct _USBDDriverDescriptors USBDDriverDescriptors
 List of all descriptors used by a USB device driver. Each descriptor can be provided in two versions: full-speed and high-speed. Devices which are not high-speed capable do not need to provided high-speed descriptors and the full-speed qualifier & other speed descriptors. More...
 

Functions

USBDDriverUSBD_GetDriver (void)
 
void USBDDriver_clearOTGFeatures (USBDDriver *pDriver)
 
USBConfigurationDescriptor * USBDDriver_GetCfgDescriptors (USBDDriver *pDriver, uint8_t cfgNum)
 
void USBDDriver_Initialize (USBDDriver *pDriver, const USBDDriverDescriptors *pDescriptors, uint8_t *pInterfaces)
 
uint8_t USBDDriver_IsRemoteWakeUpEnabled (const USBDDriver *pDriver)
 
void USBDDriver_RequestHandler (USBDDriver *pDriver, const USBGenericRequest *pRequest)
 
uint8_t USBDDriver_returnOTGFeatures (const 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.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:07