USB Component  Version 6.13.6
MDK Middleware for USB Device and Host Communication
 All Data Structures Functions Variables Enumerations Enumerator Groups Pages
USBH_CustomClass: Custom Class Functions

Events generated by USB Host - Custom Class functions. More...

Functions

__STATIC_INLINE void EvrUSBH_CC_GetDevice (uint8_t instance, uint8_t device)
 Event on USBH_CustomClass_GetDevice finished (API) More...
 
__STATIC_INLINE void EvrUSBH_CC_GetStatus (uint8_t instance, uint8_t status)
 Event on USBH_CustomClass_GetStatus finished (API) More...
 
__STATIC_INLINE void EvrUSBH_CC_OnConfigure (uint8_t device, uint8_t class, uint8_t sub_class, uint16_t vid, uint16_t pid, uint8_t instance)
 Event on USBH_CustomClass_Configure user callback function finished (API) More...
 
__STATIC_INLINE void EvrUSBH_CC_OnUnconfigure (uint8_t instance, usbStatus status)
 Event on USBH_CustomClass_Unconfigure user callback function finished (API) More...
 
__STATIC_INLINE void EvrUSBH_CC_OnInitialize (uint8_t instance, usbStatus status)
 Event on USBH_CustomClass_Initialize user callback function finished (API) More...
 
__STATIC_INLINE void EvrUSBH_CC_OnUninitialize (uint8_t instance, usbStatus status)
 Event on USBH_CustomClass_Uninitialize user callback function finished (API) More...
 

Description

Events generated by USB Host - Custom Class functions.

Function Documentation

__STATIC_INLINE void EvrUSBH_CC_GetDevice ( uint8_t  instance,
uint8_t  device 
)

Event on USBH_CustomClass_GetDevice finished (API)

Parameters
instanceinstance of custom class device
devicedevice index
  • value <= 127: index of Device
  • value == 255: non-existing Device index
__STATIC_INLINE void EvrUSBH_CC_GetStatus ( uint8_t  instance,
uint8_t  status 
)

Event on USBH_CustomClass_GetStatus finished (API)

Parameters
instanceinstance of custom class device
statusdevice status usbStatus
__STATIC_INLINE void EvrUSBH_CC_OnConfigure ( uint8_t  device,
uint8_t  class,
uint8_t  sub_class,
uint16_t  vid,
uint16_t  pid,
uint8_t  instance 
)

Event on USBH_CustomClass_Configure user callback function finished (API)

Parameters
devicedevice index
classdevice class
sub_classdevice subclass
vidvendor ID
pidproduct ID
instanceconfigured custom class device instance
  • value <= 127: index of configured custom class device instance
  • value == 255: configuration failed
__STATIC_INLINE void EvrUSBH_CC_OnInitialize ( uint8_t  instance,
usbStatus  status 
)

Event on USBH_CustomClass_Initialize user callback function finished (API)

Parameters
instancecustom class device instance
statusstatus code usbStatus
__STATIC_INLINE void EvrUSBH_CC_OnUnconfigure ( uint8_t  instance,
usbStatus  status 
)

Event on USBH_CustomClass_Unconfigure user callback function finished (API)

Parameters
instancecustom class device instance
statusstatus code usbStatus
__STATIC_INLINE void EvrUSBH_CC_OnUninitialize ( uint8_t  instance,
usbStatus  status 
)

Event on USBH_CustomClass_Uninitialize user callback function finished (API)

Parameters
instancecustom class device instance
statusstatus code usbStatus