This file contains the constants, type definitions, variables and function prototypes used in the usb microphone application.
- Note
- None.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a hvm 12/20/10 First release
4.02a bss 02/20/12 Modified to include Little Endian and
Big Endian descriptors.
|
void | InitUsbInterface (XUsb *InstancePtr) |
| This is the USB initialization function. More...
|
|
void | UsbIfIntrHandler (void *CallBackRef, u32 IntrStatus) |
| This function is the interrupt handler for the USB mass storage device application. More...
|
|
void | Ep0IntrHandler (void *CallBackRef, u8 EpNum, u32 IntrStatus) |
| This function is the interrupt handler for the USB End point Zero events. More...
|
|
void | Ep1IntrHandler (void *CallBackRef, u8 EpNum, u32 IntrStatus) |
| This function is the interrupt handler for the USB End point one events. More...
|
|
void InitUsbInterface |
( |
XUsb * |
InstancePtr | ) |
|
This is the USB initialization function.
This example initializes the device for Mass Storage Application. The following configuration is done.
- EP0 : CONTROL end point, Bidirectional, Packet size 64 bytes.
- EP1 : NON_ISOCHRONOUS, BULK_IN, packet size 512 bytes.
- EP2 : NON_ISOCHRONOUS, BULK_OUT, packet size 512 bytes
- Parameters
-
InstancePtr | is a pointer to the XUsb instance. |
- Returns
- None.
- Note
- None.
This is the USB initialization function.
The following is the configuration.
- EP0 : CONTROL end point, Bidirectional, Packet size 64 bytes.
- EP1 : NON_ISOCHRONOUS, INTERRUPT_IN, packet size of 16 bytes.
- Parameters
-
InstancePtr | is a pointer to the XUsb instance. |
- Returns
- None.
- Note
- None.
This example initializes the device for Microphone Application. The following configuration is done.
- EP0 : CONTROL end point, Bidirectional, Packet size 64 bytes.
- EP1 : ISOCHRONOUS, BULK_IN, packet size 1024 bytes.
- Parameters
-
InstancePtr | is a pointer to the XUsb instance. |
- Returns
- None.
- Note
- None.
This example initializes the USB device for USB mouse example. The following configuration is done.
- EP0 : CONTROL end point, Bidirectional, Packet size 64 bytes.
- EP1 : NON_ISOCHRONOUS, INTERRUPT_IN, packet size of 16 bytes.
- Parameters
-
InstancePtr | is a pointer to the XUsb instance. |
- Returns
- None.
- Note
- None.
void UsbIfIntrHandler |
( |
void * |
CallBackRef, |
|
|
u32 |
IntrStatus |
|
) |
| |
This function is the interrupt handler for the USB mass storage device application.
- Parameters
-
CallBackRef | is the callback reference passed from the interrupt handler, which in our case is a pointer to the driver instance. |
IntrStatus | is a bit mask indicating pending interrupts. |
- Returns
- None.
- Note
- None.
This function is the interrupt handler for the USB mass storage device application.
- Parameters
-
CallBackRef | is the callback reference passed from the interrupt handler, which in our case is a pointer to the driver instance. |
IntrStatus | is a bit mask indicating pending interrupts. |
- Returns
- None.
- Note
- Each interrupt source is disabled upon reception. This is to avoid the repetitive occurrence of the same event. This is done because these event conditions exist for few milliseconds.
This function is the interrupt handler for the USB mass storage device application.
- Parameters
-
CallBackRef | is the callback reference passed from the interrupt handler, which in our case is a pointer to the driver instance. |
IntrStatus | is a bit mask indicating pending interrupts. |
- Returns
- None.
- Note
- None.
This function is the interrupt handler for the USB mass storage device application.
- Parameters
-
CallBackRef | is the callback reference passed from to the function, which in our case is a pointer to the driver instance. |
IntrStatus | is a bit mask indicating pending interrupts. |
- Returns
- None.
- Note
- None.