Data Fields
usbClassAction Struct Reference

Gadget action object structure which compiles a list of actions that can be performed on any USB function or pGadget. These functions would be called by the gadget driver. More...

#include <usb_dev_object.h>

Data Fields

uint32_t(* pFnInit )(struct usbGadgetObj *pGadget)
 
uint32_t(* pFnStart )(struct usbGadgetObj *pGadget)
 
uint32_t(* pFnReset )(struct usbGadgetObj *pGadget)
 
uint32_t(* pFnSuspend )(struct usbGadgetObj *pGadget)
 
uint32_t(* pFnResume )(struct usbGadgetObj *pGadget)
 
uint32_t(* pFnStop )(struct usbGadgetObj *pGadget)
 
void(* ep0Handler )(struct usbGadgetObj *pGadgetObject, usbEndpt0event_t endptEvent, usbSetupPkt_t *setup)
 
void(* epHandler )(struct usbGadgetObj *pGadgetObject, usbGenericEvent_t endptEvent, uint32_t length)
 
void(* enumComplete )(struct usbGadgetObj *pGadgetObject)
 

Detailed Description

Gadget action object structure which compiles a list of actions that can be performed on any USB function or pGadget. These functions would be called by the gadget driver.

Field Documentation

void(* usbClassAction::enumComplete) (struct usbGadgetObj *pGadgetObject)

Function pointer to inform the class driver that the enumeration has completed

void(* usbClassAction::ep0Handler) (struct usbGadgetObj *pGadgetObject, usbEndpt0event_t endptEvent, usbSetupPkt_t *setup)

Call back function which handles EP0 events.

void(* usbClassAction::epHandler) (struct usbGadgetObj *pGadgetObject, usbGenericEvent_t endptEvent, uint32_t length)

Call back function which handles generic endpoint events

uint32_t(* usbClassAction::pFnInit) (struct usbGadgetObj *pGadget)

Function Pointer to function which initialses the Gadget .

uint32_t(* usbClassAction::pFnReset) (struct usbGadgetObj *pGadget)

Function Pointer to function which clears the gadget specific data structures and issues a device controller reset.

uint32_t(* usbClassAction::pFnResume) (struct usbGadgetObj *pGadget)

Function Pointer to function which initiates gadget resume.

uint32_t(* usbClassAction::pFnStart) (struct usbGadgetObj *pGadget)

Function Pointer to function which starts the gadget and initiates a connect on to the bus.

uint32_t(* usbClassAction::pFnStop) (struct usbGadgetObj *pGadget)

Function Pointer to function which stops the device and flushes the required data stuructures.

uint32_t(* usbClassAction::pFnSuspend) (struct usbGadgetObj *pGadget)

Function Pointer to function which suspends the device - part of the power manger feature.


The documentation for this struct was generated from the following file:

Copyright 2016, Texas Instruments Incorporated