USB Component  
MDK Middleware for USB Device and Host Communication
 
Loading...
Searching...
No Matches
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)
 
__STATIC_INLINE void EvrUSBH_CC_GetStatus (uint8_t instance, uint8_t status)
 Event on USBH_CustomClass_GetStatus finished (API)
 
__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)
 
__STATIC_INLINE void EvrUSBH_CC_OnUnconfigure (uint8_t instance, usbStatus status)
 Event on USBH_CustomClass_Unconfigure user callback function finished (API)
 
__STATIC_INLINE void EvrUSBH_CC_OnInitialize (uint8_t instance, usbStatus status)
 Event on USBH_CustomClass_Initialize user callback function finished (API)
 
__STATIC_INLINE void EvrUSBH_CC_OnUninitialize (uint8_t instance, usbStatus status)
 Event on USBH_CustomClass_Uninitialize user callback function finished (API)
 

Description

Events generated by USB Host - Custom Class functions.

Function Documentation

◆ EvrUSBH_CC_GetDevice()

__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

◆ EvrUSBH_CC_GetStatus()

__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

◆ EvrUSBH_CC_OnConfigure()

__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

◆ EvrUSBH_CC_OnInitialize()

__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

◆ EvrUSBH_CC_OnUnconfigure()

__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

◆ EvrUSBH_CC_OnUninitialize()

__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