![]() |
usbpsu
Xilinx SDK Drivers API Documentation
|
This file contains the implementation of the DFU class specific code for the example.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 vak 30/11/16 Addded DFU support *
Functions | |
void | XUsbPsu_DfuDisconnect (struct XUsbPsu *InstancePtr) |
This function handles DFU disconnect, called from driver. More... | |
void | XUsbPsu_DfuReset (struct XUsbPsu *InstancePtr) |
This function handles DFU reset, called from driver. More... | |
void | dfu_init_data (USBCH9_DATA *data) |
This function initializes CH9 data in DFU interface. More... | |
int | dfu_if_init (struct XUsbPsu *UsbInstance) |
This function handles a DFU interface initialization part . More... | |
int | dfu_set_state (struct dfu_if *DFU, int dfu_state) |
This function handles setting of DFU state. More... | |
void | dfu_set_dwloadstate (struct dfu_if *DFU, char *status) |
This function updates the current state while downloading a file. More... | |
int | dfu_get_status (struct dfu_if *DFU, char *status) |
This function handles getting of DFU status. More... | |
void | XUsbPsu_DfuSetIntf (struct XUsbPsu *InstancePtr, SetupPacket *SetupData) |
This function handles DFU set interface. More... | |
void | XUsbPsu_DfuClassReq (struct XUsbPsu *InstancePtr, SetupPacket *SetupData) |
This function handles DFU heart and soul of DFU state machine. More... | |
int dfu_get_status | ( | struct dfu_if * | DFU, |
char * | status | ||
) |
This function handles getting of DFU status.
DFU | is a pointer to DFU instance of the controller |
status | is the pointer of the DFU status |
References dfu_set_dwloadstate().
int dfu_if_init | ( | struct XUsbPsu * | UsbInstance | ) |
This function handles a DFU interface initialization part .
DFU | is a pointer to DFU instance of the controller |
UsbInstancePtr | is a pointer to XUsbPsu instance of the controller. |
void dfu_init_data | ( | USBCH9_DATA * | data | ) |
This function initializes CH9 data in DFU interface.
Pointer | to the DFU data that has to be initialized. |
References XUsbPsu_Ch9SetupBosDescReply(), XUsbPsu_Ch9SetupCfgDescReply(), XUsbPsu_Ch9SetupDevDescReply(), XUsbPsu_Ch9SetupStrDescReply(), XUsbPsu_DfuClassReq(), XUsbPsu_DfuSetIntf(), XUsbPsu_SetConfiguration(), and XUsbPsu_SetConfigurationApp().
void dfu_set_dwloadstate | ( | struct dfu_if * | DFU, |
char * | status | ||
) |
This function updates the current state while downloading a file.
DFU | is a pointer to DFU instance of the controller |
status | is a pointer of the DFU status |
Referenced by dfu_get_status().
int dfu_set_state | ( | struct dfu_if * | DFU, |
int | dfu_state | ||
) |
This function handles setting of DFU state.
DFU | is a pointer to DFU instance of the controller |
dfu_state | is a value of the DFU state to be set |
void XUsbPsu_DfuClassReq | ( | struct XUsbPsu * | InstancePtr, |
SetupPacket * | SetupData | ||
) |
This function handles DFU heart and soul of DFU state machine.
InstancePtr | is a pointer to USB instance of the controller |
SetupData | is a pointer to setup token of control transfer |
Referenced by dfu_init_data().
void XUsbPsu_DfuDisconnect | ( | struct XUsbPsu * | InstancePtr | ) |
This function handles DFU disconnect, called from driver.
InstancePtr | is a pointer to USB instance of the controller |
void XUsbPsu_DfuReset | ( | struct XUsbPsu * | InstancePtr | ) |
This function handles DFU reset, called from driver.
InstancePtr | is a pointer to USB instance of the controller |
void XUsbPsu_DfuSetIntf | ( | struct XUsbPsu * | InstancePtr, |
SetupPacket * | SetupData | ||
) |
This function handles DFU set interface.
InstancePtr | is a pointer to USB instance of the controller |
SetupData | is a pointer to setup token of control transfer |
Referenced by dfu_init_data().