usbpsu
Vitis Drivers API Documentation
xusb_class_audio_dfu.c File Reference

Overview

This file contains the implementation of the AUDIO-DFU composite device specific class code for the example.

  MODIFICATION HISTORY:
  Ver   Who  Date     Changes


1.0 rb 22/02/18 First release 1.5 vak 13/02/19 Added support for versal 1.5 vak 03/25/19 Fixed incorrect data_alignment pragma directive for IAR

*

Functions

s32 Usb_DfuSetState (struct dfu_if *DFU, u8 dfu_state)
 This function handles setting of DFU state. More...
 
void USB_DfuSetDwloadState (struct dfu_if *DFU, u8 *status)
 This function updates the current state while downloading a file. More...
 
void USB_DfuGetStatus (struct dfu_if *DFU, u8 *status)
 This function handles getting of DFU status. More...
 
void Usb_DisconnectHandler (struct Usb_DevData *InstancePtr)
 This function handles USB disconnect, called from driver. More...
 
void Usb_ResetHandler (struct Usb_DevData *InstancePtr)
 This function handles USB reset, called from driver. More...
 
void Usb_SetIntf (struct Usb_DevData *InstancePtr, SetupPacket *SetupData)
 This function handles set interface request. More...
 

Function Documentation

void USB_DfuGetStatus ( struct dfu_if *  DFU,
u8 *  status 
)

This function handles getting of DFU status.

Parameters
DFUis a pointer to DFU instance of the controller
statusis the pointer of the DFU status
Returns
None
Note
None.

Referenced by Usb_DfuClassReq().

void USB_DfuSetDwloadState ( struct dfu_if *  DFU,
u8 *  status 
)

This function updates the current state while downloading a file.

Parameters
DFUis a pointer to DFU instance of the controller
statusis a pointer of the DFU status
Note
None.

Referenced by USB_DfuGetStatus().

s32 Usb_DfuSetState ( struct dfu_if *  DFU,
u8  dfu_state 
)

This function handles setting of DFU state.

Parameters
DFUis a pointer to DFU instance of the controller
dfu_stateis a value of the DFU state to be set
Returns
- XST_SUCCESS if the function is successful.
  • XST_FAILURE if an Error occurred.
Note
None.

Referenced by Usb_DfuClassReq(), Usb_DfuSetIntf(), and Usb_SetIntf().

void Usb_DisconnectHandler ( struct Usb_DevData InstancePtr)

This function handles USB disconnect, called from driver.

Parameters
InstancePtris a pointer to Usb_DevData instance of the controller
Returns
None.
Note
None.
void Usb_ResetHandler ( struct Usb_DevData InstancePtr)

This function handles USB reset, called from driver.

Parameters
InstancePtris a pointer to Usb_DevData instance of the controller
Returns
None.
Note
None.
void Usb_SetIntf ( struct Usb_DevData InstancePtr,
SetupPacket *  SetupData 
)

This function handles set interface request.

Parameters
InstancePtris a pointer to Usb_DevData instance of the controller
SetupDatais a pointer to setup token of control transfer
Returns
None.
Note
None.