| usb Vitis Drivers API Documentation

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

Functions
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
    5.6   pm   07/05/23 Removed powerpc support.
    5.6   pm   07/05/23 Added support for system device-tree flow.

## 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

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_Config::BaseAddress, UsbIfPhyIntrHandler(), XUsb_CfgInitialize(), XUsb_IntrEnable(), XUsb_IntrHandler(), XUsb_LookupConfig(), XUsb_Start(), XUSB_STATUS_GLOBAL_INTR_MASK, XUSB_STATUS_PHY_ACCESS_MASK, XUsb_UlpiIntrSetHandler(), XUsb_UlpiPhyReadRegister(), and XUsb_UlpiPhyWriteRegister().

void UsbIfPhyIntrHandler | ( | void * | CallBackRef,
|  | u32 | IntrStatus
| ) |  |

This function is the ULPI PHY interrupt handler.

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.

References XUSB_STATUS_PHY_ACCESS_MASK.

Referenced by main().