USB Component  
MDK Middleware for USB Device and Host Communication
 
Loading...
Searching...
No Matches
USBD_ADC: Audio Device Class Functions

Events generated by USB Device - Audio Device Class functions. More...

Functions

__STATIC_INLINE void EvrUSBD_ADC_Initialize (uint8_t instance)
 Event on internal library operation ADC initialize start (Operation)
 
__STATIC_INLINE void EvrUSBD_ADC_InitializeFailed (uint8_t instance, usbStatus error)
 Event on internal library operation ADC initialize failed (Error)
 
__STATIC_INLINE void EvrUSBD_ADC_Uninitialize (uint8_t instance)
 Event on internal library operation ADC uninitialize start (Operation)
 
__STATIC_INLINE void EvrUSBD_ADC_UninitializeFailed (uint8_t instance, usbStatus error)
 Event on internal library operation ADC uninitialize failed (Error)
 
__STATIC_INLINE void EvrUSBD_ADC_Reset (uint8_t instance)
 Event on internal library operation ADC reset start (Operation)
 
__STATIC_INLINE void EvrUSBD_ADC_ResetFailed (uint8_t instance, usbStatus error)
 Event on internal library operation ADC reset failed (Error)
 
__STATIC_INLINE void EvrUSBD_ADC_OnInitialize (uint8_t n)
 Event on USBD_ADCn_Initialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnUninitialize (uint8_t n)
 Event on USBD_ADCn_Uninitialize user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnPlayStart (uint8_t n)
 Event on USBD_ADCn_PlayStart user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnPlayStop (uint8_t n)
 Event on USBD_ADCn_PlayStop user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnSetSpeakerMute (uint8_t n, uint8_t ch, bool on)
 Event on USBD_ADCn_SetSpeakerMute user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnSetSpeakerVolume (uint8_t n, uint8_t ch, uint16_t vol)
 Event on USBD_ADCn_SetSpeakerVolume user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnRecordStart (uint8_t n)
 Event on USBD_ADCn_RecordStart user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnRecordStop (uint8_t n)
 Event on USBD_ADCn_RecordStop user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnSetMicrophoneMute (uint8_t n, uint8_t ch, bool on)
 Event on USBD_ADCn_SetMicrophoneMute user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnSetMicrophoneVolume (uint8_t n, uint8_t ch, uint16_t vol)
 Event on USBD_ADCn_SetMicrophoneVolume user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_OnReceivedSamples (uint8_t n)
 Event on USBD_ADCn_ReceivedSamples user callback function start (API)
 
__STATIC_INLINE void EvrUSBD_ADC_SetSpeakerVolumeRange (uint8_t instance, uint8_t ch, uint16_t min, uint16_t max, uint16_t res, uint16_t cur)
 Event on USBD_ADC_SetSpeakerVolumeRange finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_ADC_SetSpeakerVolumeRangeFailed (uint8_t instance, uint8_t ch, uint16_t min, uint16_t max, uint16_t res, uint16_t cur, usbStatus error)
 Event on USBD_ADC_SetSpeakerVolumeRange failed (Error)
 
__STATIC_INLINE void EvrUSBD_ADC_SetMicrophoneVolumeRange (uint8_t instance, uint8_t ch, uint16_t min, uint16_t max, uint16_t res, uint16_t cur)
 Event on USBD_ADC_SetMicrophoneVolumeRange finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_ADC_SetMicrophoneVolumeRangeFailed (uint8_t instance, uint8_t ch, uint16_t min, uint16_t max, uint16_t res, uint16_t cur, usbStatus error)
 Event on USBD_ADC_SetMicrophoneVolumeRange failed (Error)
 
__STATIC_INLINE void EvrUSBD_ADC_ReceivedSamplesAvailable (uint8_t instance, uint32_t result)
 Event on USBD_ADC_ReceivedSamplesAvailable finished (API)
 
__STATIC_INLINE void EvrUSBD_ADC_WrittenSamplesPending (uint8_t instance, uint32_t result)
 Event on USBD_ADC_WrittenSamplesPending finished (API)
 
__STATIC_INLINE void EvrUSBD_ADC_ReadSamples (uint8_t instance, int32_t result)
 Event on USBD_ADC_ReadSamples finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_ADC_ReadSamplesFailed (uint8_t instance, usbStatus error)
 Event on USBD_ADC_ReadSamples failed (Error)
 
__STATIC_INLINE void EvrUSBD_ADC_WriteSamples (uint8_t instance, int32_t result)
 Event on USBD_ADC_WriteSamples finished successfully (API)
 
__STATIC_INLINE void EvrUSBD_ADC_WriteSamplesFailed (uint8_t instance, usbStatus error)
 Event on USBD_ADC_WriteSamples failed (Error)
 

Description

Events generated by USB Device - Audio Device Class functions.

Function Documentation

◆ EvrUSBD_ADC_Initialize()

__STATIC_INLINE void EvrUSBD_ADC_Initialize ( uint8_t  instance)

Event on internal library operation ADC initialize start (Operation)

Parameters
instanceinstance of ADC class

◆ EvrUSBD_ADC_InitializeFailed()

__STATIC_INLINE void EvrUSBD_ADC_InitializeFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal library operation ADC initialize failed (Error)

Parameters
instanceinstance of ADC class
errorerror code usbStatus

◆ EvrUSBD_ADC_OnInitialize()

__STATIC_INLINE void EvrUSBD_ADC_OnInitialize ( uint8_t  n)

Event on USBD_ADCn_Initialize user callback function start (API)

Parameters
ninstance of ADC class

◆ EvrUSBD_ADC_OnPlayStart()

__STATIC_INLINE void EvrUSBD_ADC_OnPlayStart ( uint8_t  n)

Event on USBD_ADCn_PlayStart user callback function start (API)

Parameters
ninstance of ADC class

◆ EvrUSBD_ADC_OnPlayStop()

__STATIC_INLINE void EvrUSBD_ADC_OnPlayStop ( uint8_t  n)

Event on USBD_ADCn_PlayStop user callback function start (API)

Parameters
ninstance of ADC class

◆ EvrUSBD_ADC_OnReceivedSamples()

__STATIC_INLINE void EvrUSBD_ADC_OnReceivedSamples ( uint8_t  n)

Event on USBD_ADCn_ReceivedSamples user callback function start (API)

Parameters
ninstance of ADC class

◆ EvrUSBD_ADC_OnRecordStart()

__STATIC_INLINE void EvrUSBD_ADC_OnRecordStart ( uint8_t  n)

Event on USBD_ADCn_RecordStart user callback function start (API)

Parameters
ninstance of ADC class

◆ EvrUSBD_ADC_OnRecordStop()

__STATIC_INLINE void EvrUSBD_ADC_OnRecordStop ( uint8_t  n)

Event on USBD_ADCn_RecordStop user callback function start (API)

Parameters
ninstance of ADC class

◆ EvrUSBD_ADC_OnSetMicrophoneMute()

__STATIC_INLINE void EvrUSBD_ADC_OnSetMicrophoneMute ( uint8_t  n,
uint8_t  ch,
bool  on 
)

Event on USBD_ADCn_SetMicrophoneMute user callback function start (API)

Parameters
ninstance of ADC class
chchannel index
  • value 0: master channel
  • value 1: left microphone (in stereo mode)
  • value 2: right microphone (in stereo mode)
oncurrent mute setting
  • false : mute off
  • true : mute on

◆ EvrUSBD_ADC_OnSetMicrophoneVolume()

__STATIC_INLINE void EvrUSBD_ADC_OnSetMicrophoneVolume ( uint8_t  n,
uint8_t  ch,
uint16_t  vol 
)

Event on USBD_ADCn_SetMicrophoneVolume user callback function start (API)

Parameters
ninstance of ADC class
chchannel index
  • value 0: master channel
  • value 1: left microphone (in stereo mode)
  • value 2: right microphone (in stereo mode)
volcurrent volume setting

◆ EvrUSBD_ADC_OnSetSpeakerMute()

__STATIC_INLINE void EvrUSBD_ADC_OnSetSpeakerMute ( uint8_t  n,
uint8_t  ch,
bool  on 
)

Event on USBD_ADCn_SetSpeakerMute user callback function start (API)

Parameters
ninstance of ADC class
chchannel index
  • value 0: master channel
  • value 1: left speaker (in stereo mode)
  • value 2: right speaker (in stereo mode)
oncurrent mute setting
  • false : mute off
  • true : mute on

◆ EvrUSBD_ADC_OnSetSpeakerVolume()

__STATIC_INLINE void EvrUSBD_ADC_OnSetSpeakerVolume ( uint8_t  n,
uint8_t  ch,
uint16_t  vol 
)

Event on USBD_ADCn_SetSpeakerVolume user callback function start (API)

Parameters
ninstance of ADC class
chchannel index
  • value 0: master channel
  • value 1: left speaker (in stereo mode)
  • value 2: right speaker (in stereo mode)
volcurrent volume setting

◆ EvrUSBD_ADC_OnUninitialize()

__STATIC_INLINE void EvrUSBD_ADC_OnUninitialize ( uint8_t  n)

Event on USBD_ADCn_Uninitialize user callback function start (API)

Parameters
ninstance of ADC class

◆ EvrUSBD_ADC_ReadSamples()

__STATIC_INLINE void EvrUSBD_ADC_ReadSamples ( uint8_t  instance,
int32_t  result 
)

Event on USBD_ADC_ReadSamples finished successfully (API)

Parameters
instanceinstance of ADC class
resultnumber of samples read

◆ EvrUSBD_ADC_ReadSamplesFailed()

__STATIC_INLINE void EvrUSBD_ADC_ReadSamplesFailed ( uint8_t  instance,
usbStatus  error 
)

Event on USBD_ADC_ReadSamples failed (Error)

Parameters
instanceinstance of ADC class
errorerror code usbStatus

◆ EvrUSBD_ADC_ReceivedSamplesAvailable()

__STATIC_INLINE void EvrUSBD_ADC_ReceivedSamplesAvailable ( uint8_t  instance,
uint32_t  result 
)

Event on USBD_ADC_ReceivedSamplesAvailable finished (API)

Parameters
instanceinstance of ADC class
resultnumber of samples available to be read

◆ EvrUSBD_ADC_Reset()

__STATIC_INLINE void EvrUSBD_ADC_Reset ( uint8_t  instance)

Event on internal library operation ADC reset start (Operation)

Parameters
instanceinstance of ADC class

◆ EvrUSBD_ADC_ResetFailed()

__STATIC_INLINE void EvrUSBD_ADC_ResetFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal library operation ADC reset failed (Error)

Parameters
instanceinstance of ADC class
errorerror code usbStatus

◆ EvrUSBD_ADC_SetMicrophoneVolumeRange()

__STATIC_INLINE void EvrUSBD_ADC_SetMicrophoneVolumeRange ( uint8_t  instance,
uint8_t  ch,
uint16_t  min,
uint16_t  max,
uint16_t  res,
uint16_t  cur 
)

Event on USBD_ADC_SetMicrophoneVolumeRange finished successfully (API)

Parameters
instanceinstance of ADC class
chchannel index
  • value 0: master channel
  • value 1: left microphone (in stereo mode)
  • value 2: right microphone (in stereo mode)
minminimum volume value
maxmaximum volume value
resvolume resolution
curcurrent volume value

◆ EvrUSBD_ADC_SetMicrophoneVolumeRangeFailed()

__STATIC_INLINE void EvrUSBD_ADC_SetMicrophoneVolumeRangeFailed ( uint8_t  instance,
uint8_t  ch,
uint16_t  min,
uint16_t  max,
uint16_t  res,
uint16_t  cur,
usbStatus  error 
)

Event on USBD_ADC_SetMicrophoneVolumeRange failed (Error)

Parameters
instanceinstance of ADC class
chchannel index
  • value 0: master channel
  • value 1: left microphone (in stereo mode)
  • value 2: right microphone (in stereo mode)
minminimum volume value
maxmaximum volume value
resvolume resolution
curcurrent volume value
errorerror code usbStatus

◆ EvrUSBD_ADC_SetSpeakerVolumeRange()

__STATIC_INLINE void EvrUSBD_ADC_SetSpeakerVolumeRange ( uint8_t  instance,
uint8_t  ch,
uint16_t  min,
uint16_t  max,
uint16_t  res,
uint16_t  cur 
)

Event on USBD_ADC_SetSpeakerVolumeRange finished successfully (API)

Parameters
instanceinstance of ADC class
chchannel index
  • value 0: master channel
  • value 1: left speaker (in stereo mode)
  • value 2: right speaker (in stereo mode)
minminimum volume value
maxmaximum volume value
resvolume resolution
curcurrent volume value

◆ EvrUSBD_ADC_SetSpeakerVolumeRangeFailed()

__STATIC_INLINE void EvrUSBD_ADC_SetSpeakerVolumeRangeFailed ( uint8_t  instance,
uint8_t  ch,
uint16_t  min,
uint16_t  max,
uint16_t  res,
uint16_t  cur,
usbStatus  error 
)

Event on USBD_ADC_SetSpeakerVolumeRange failed (Error)

Parameters
instanceinstance of ADC class
chchannel index
  • value 0: master channel
  • value 1: left speaker (in stereo mode)
  • value 2: right speaker (in stereo mode)
minminimum volume value
maxmaximum volume value
resvolume resolution
curcurrent volume value
errorerror code usbStatus

◆ EvrUSBD_ADC_Uninitialize()

__STATIC_INLINE void EvrUSBD_ADC_Uninitialize ( uint8_t  instance)

Event on internal library operation ADC uninitialize start (Operation)

Parameters
instanceinstance of ADC class

◆ EvrUSBD_ADC_UninitializeFailed()

__STATIC_INLINE void EvrUSBD_ADC_UninitializeFailed ( uint8_t  instance,
usbStatus  error 
)

Event on internal library operation ADC uninitialize failed (Error)

Parameters
instanceinstance of ADC class
errorerror code usbStatus

◆ EvrUSBD_ADC_WriteSamples()

__STATIC_INLINE void EvrUSBD_ADC_WriteSamples ( uint8_t  instance,
int32_t  result 
)

Event on USBD_ADC_WriteSamples finished successfully (API)

Parameters
instanceinstance of ADC class
resultnumber of samples written for sending

◆ EvrUSBD_ADC_WriteSamplesFailed()

__STATIC_INLINE void EvrUSBD_ADC_WriteSamplesFailed ( uint8_t  instance,
usbStatus  error 
)

Event on USBD_ADC_WriteSamples failed (Error)

Parameters
instanceinstance of ADC class
errorerror code usbStatus

◆ EvrUSBD_ADC_WrittenSamplesPending()

__STATIC_INLINE void EvrUSBD_ADC_WrittenSamplesPending ( uint8_t  instance,
uint32_t  result 
)

Event on USBD_ADC_WrittenSamplesPending finished (API)

Parameters
instanceinstance of ADC class
resultnumber of samples ready to be sent