usb
Xilinx SDK Drivers API Documentation
xusb_phy_read_write.c File Reference

Overview

This file contains PHY register access related example.

Note
This example only shows reading and writing to the ULPI PHY SCRATCH register.The user can access any other register as per their requirement.
MODIFICATION HISTORY:
Ver   Who  Date     Changes

1.00a hvm 12/3/10 First release
 

Functions

void UsbIfPhyIntrHandler (void *CallBackRef, u32 IntrStatus)
 This function is the ULPI PHY interrupt handler. More...
 
int main ()
 This main function starts the USB application. More...
 

Function Documentation

◆ main()

int main ( void  )

This main function starts the USB application.

Parameters
None.
Returns
  • XST_SUCCESS if successful.
  • XST_FAILURE if test fails.
Note
None.

References XUsb_LookupConfig().

◆ UsbIfPhyIntrHandler()

void UsbIfPhyIntrHandler ( void *  CallBackRef,
u32  IntrStatus 
)

This function is the ULPI PHY interrupt handler.

Parameters
CallBackRefis the callback reference passed from the interrupt handler, which in our case is a pointer to the driver instance.
IntrStatusis a bit mask indicating pending interrupts.
Returns
None.
Note
None.