USBLibAPIGuide  1.00.00.01
Data Fields
tCustomHandlers Struct Reference

#include <usblib.h>

Data Fields

tStdRequest pfnGetDescriptor
 
tStdRequest pfnRequestHandler
 
tInterfaceCallback pfnInterfaceChange
 
tInfoCallback pfnConfigChange
 
tInfoCallback pfnDataReceived
 
tInfoCallback pfnDataSent
 
tUSBIntHandler pfnResetHandler
 This callback is made when a USB reset is detected. More...
 
tUSBIntHandler pfnSuspendHandler
 
tUSBIntHandler pfnResumeHandler
 This is called when resume signaling is detected. More...
 
tUSBIntHandler pfnDisconnectHandler
 This callback is made when the device is disconnected from the USB bus. More...
 
tUSBEPIntHandler pfnEndpointHandler
 
tUSBDeviceHandler pfnDeviceHandler
 

Detailed Description

USB event handler functions used during enumeration and operation of the device stack.

Field Documentation

§ pfnGetDescriptor

tStdRequest tCustomHandlers::pfnGetDescriptor

This callback is made whenever the USB host requests a non-standard descriptor from the device.

§ pfnRequestHandler

tStdRequest tCustomHandlers::pfnRequestHandler

This callback is made whenever the USB host makes a non-standard request.

§ pfnInterfaceChange

tInterfaceCallback tCustomHandlers::pfnInterfaceChange

This callback is made in response to a SetInterface request from the host.

§ pfnConfigChange

tInfoCallback tCustomHandlers::pfnConfigChange

This callback is made in response to a SetConfiguration request from the host.

§ pfnDataReceived

tInfoCallback tCustomHandlers::pfnDataReceived

This callback is made when data has been received following to a call to USBDCDRequestDataEP0.

§ pfnDataSent

tInfoCallback tCustomHandlers::pfnDataSent

This callback is made when data has been transmitted following a call to USBDCDSendDataEP0.

§ pfnResetHandler

tUSBIntHandler tCustomHandlers::pfnResetHandler

This callback is made when a USB reset is detected.

Referenced by USBDeviceEnumResetHandler().

§ pfnSuspendHandler

tUSBIntHandler tCustomHandlers::pfnSuspendHandler

This callback is made when the bus has been inactive long enough to trigger a suspend condition.

Referenced by USBDeviceIntHandlerInternal().

§ pfnResumeHandler

tUSBIntHandler tCustomHandlers::pfnResumeHandler

This is called when resume signaling is detected.

Referenced by USBDeviceIntHandlerInternal(), and USBDeviceResumeTickHandler().

§ pfnDisconnectHandler

tUSBIntHandler tCustomHandlers::pfnDisconnectHandler

This callback is made when the device is disconnected from the USB bus.

Referenced by USBDeviceIntHandlerInternal().

§ pfnEndpointHandler

tUSBEPIntHandler tCustomHandlers::pfnEndpointHandler

This callback is made to inform the device of activity on all endpoints other than endpoint zero.

Referenced by USBDeviceIntHandlerInternal().

§ pfnDeviceHandler

tUSBDeviceHandler tCustomHandlers::pfnDeviceHandler

This generic handler is provided to allow requests based on a given instance to be passed into a device. This is commonly used by a top level composite device that is using multiple instances of a class.

Referenced by USBDeviceIntHandlerInternal().


The documentation for this struct was generated from the following file:
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale