usbpsu: Examples

| usbpsu Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Examples

You can refer to the below stated example applications for more details which gives an idea of how the USB and its driver can be used for Bulk and Interrupt transfers.

# xusb_ch9.c

Contains the USB Chapter 9 specific code for the use of examples.

For details, see xusb_ch9.c

# xusb_cp9.h

This headerfile contains the constants, typedefs, variables and functions prototypes related to the USB Chapter 9 related code.

For details, see xusb_ch9.h

# xusb_ch9_storage.c

This file contains the implementation of the Mass Storage Class specific chapter 9 functions.

For details, see xusb_ch9_storage.c

# xusb_ch9_storage.h

This headerfile contains the constants, typedefs, variables and functions prototypes related to the USB Mass Storage Class Chapter 9 related code.

For details, see xusb_ch9_storage.h

# xusb_class_storage.c

This file contains the Mass Storage Class specific functions.

For details, see xusb_class_storage.c

# xusb_class_storage.h

This headerfile contains the constants, type definitions, variables and function prototypes used in the Mass Storage Class related code.

For details, see xusb_class_storage.h

# xusb_intr_example.c

This example contains Mass Storage device application which provides a reference to create a new Bulk Transfer related application. For details, see xusb_intr_example.c

# xusb_ch9_dfu.c

This is the USB DFU example which contains USB DFU Class related Chapter 9 functions.

For details, see xusb_ch9_dfu.c

# xusb_ch9_dfu.h

This headerfile contains the constants, type definitions, variables and function prototypes used in the USB DFU Class related Chapter 9 code.

For details, see xusb_ch9_dfu.h

# xusb_class_dfu.c

This is the USB DFU example which contains USB DFU Class related functions.

For details, see xusb_class_dfu.c

# xusb_class_dfu.h

This headerfile contains the constants, type definitions, variables and function prototypes used in the USB DFU Class related code.

For details, see xusb_class_dfu.h

# xusb_dfu_example.c

This example contains the DFU application code which demonstrates the usage of control transfers.

For details, see xusb_dfu_example.c

# xusb_freertos_ch9_composite.c

This file contains the usb chapter 9 related code which is used by freertos composite application.

For details, see xusb_freertos_ch9_composite.c

# xusb_freertos_ch9_composite.h

This headerfile contains the constants, type definitions, variables and function prototypes related to Chapter 9 code used in the usb freertos composite gadget.

For details, see xusb_freertos_ch9_composite.h

# xusb_freertos_class_composite.c

This file contains the usb class specific code related to freertos composite gadget.

For details, see xusb_freertos_class_composite.c

# xusb_freertos_class_composite.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb class specific code used in the usb freertos composite gadget.

# xusb_freertos_composite.c

This example contains the code for demonstrating the freertos specific usb composite device application which has Mass Storage, HID, Audio and DFU class gadgets.

For details, see xusb_freertos_composite.c

# xusb_ch9_composite.c

This file contains the usb chapter 9 related code which is used by freertos composite application.

For details, see xusb_ch9_composite.c

# xusb_class_composite.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb class specific code used in the usb composite gadget.

For details, see xusb_class_composite.h

# xusb_composite_example.c

This example contains the code for demonstrating the usb composite device application which has Mass Storage, HID, Audio and DFU class gadgets.

For details, see xusb_composite_example.c

# xusb_freertos_ch9_storage.c

This file has the functions related to usb chapter 9 specific to freertos Mass Storage gadget example.

For details, see xusb_freertos_ch9_storage.c

# xusb_freertos_ch9_storage.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb chapter 9 specific code used in the freertos Mass Storage gadget example.

For details, see xusb_freertos_ch9_storage.h

# xusb_freertos_class_storage.c

This file has the functions related to usb class specific code used in freertos storage example.

For details, see xusb_freertos_class_storage.c

# xusb_freertos_class_storage.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb class specific code used in the freertos Mass Storage gadget example.

For details, see xusb_freertos_class_storage.h

# xusb_freertos_massstorage.c

This file contains the code for demonstrating the freertos specific Mass Storage usb gadget example.

For details, see xusb_freertos_massstorage.c

# xusb_freertos_ch9_keyboard.h

This file contains the usb chapter 9 code related to freertos specific Keyboard HID gadget application.

For details, see xusb_freertos_ch9_keyboard.c

# xusb_freertos_ch9_keyboard.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb chapter 9 specific code used in the freertos keyboard HID gadget example.

For details, see xusb_freertos_ch9_keyboard.h

# xusb_freertos_class_keyboard.c

This file contains the usb class code related to freertos specific keyboard HID gadget example.

For details, see xusb_freertos_class_keyboard.c

# xusb_freertos_class_keyboard.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb class specific code used in the freertos keyboard HID gadget example.

For details, see xusb_freertos_class_keyboard.h

# xusb_freertos_keyboard.c

This example contains the code for demonstrating freertos specific keyboard HID gadget.

For details, see xusb_freertos_keyboard.c

# xusb_freertos_ch9_audio.c

This file contains the usb ch9 code related to freertos specific audio example.

For details, see xusb_freertos_ch9_audio.c

# xusb_freertos_ch9_audio.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb chapter 9 specific code used in the freertos Audio gadget example.

For details, see xusb_freertos_ch9_audio.h

# xusb_freertos_class_audio.c

This file contains the usb class code related to freertos specific Audio gadget example.

For details, see xusb_freertos_class_audio.c

# xusb_freertos_class_audio.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb class specific code used in the freertos Audio gadget example.

For details, see xusb_freertos_class_audio.h

# xusb_freertos_audio.c

This example contains the code for demonstrating freertos specific usb Audio class gadget.

For details, see xusb_freertos_audio.c

# xusb_freertos_dfu.c

This example contains the code for demonstrating freertos specific usb DFU Class gadget.

For details, see xusb_freertos_dfu.c

# xusb_audio_dfu_example.c

This example contains the code for demonstrating Audio + DFU class composite gadget example.

For details, see xusb_audio_dfu_example.c

# xusb_ch9_audio_dfu.c

This file contains the usb chapter 9 code related to Audio + DFU class composite gadget.

For details, see xusb_ch9_audio_dfu.c

# xusb_ch9_audio_dfu.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb chapter 9 specific code used in the Audio + DFU class composite gadget example.

For details, see xusb_ch9_audio_dfu.h

# xusb_class_audio_dfu.c

This file contains the usb class code related to the Audio + DFU class composite gadget example.

For details, see xusb_class_audio_dfu.c

# xusb_class_audio_dfu.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb class specific code used in the Audio + DFU class composite gadget example.

For details, see xusb_class_audio_dfu.h

# xusb_wrapper.c

This file contains the wrapper functions which are called by the applications for communicating with the usbpsu driver.

For details, see xusb_wrapper.c

# xusb_wrapper.h

This headerfile contains the constants, type definitions, variables and function prototypes related to usb wrapper code used for communicating with the usbpsu driver.

For details, see xusb_wrapper.h

# xusb_poll_example.c

This example demonstartes the usage of usb BULK and Control transfers using polled mode.

For details, see xusb_poll_example.c

## Notes

- These examples are independent from one another. All the examples should include the xusb_ch9.c, xusb_ch9.h, xusb_wrapper.c, and xusb_wrapper.h files.
- For Mass Storage example, storage disk will mounted on the host and user can use "dd" command or can create a file system to transfer the data on the mounted storage disk.