Macros | Functions
usbulpi.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ULPI_CFG_HS   0x00000000
 
#define ULPI_CFG_FS   0x00000001
 
#define ULPI_CFG_LS   0x00000002
 
#define ULPI_CFG_AUTORESUME   0x00001000
 
#define ULPI_CFG_INVVBUSIND   0x00002000
 
#define ULPI_CFG_PASSTHRUIND   0x00004000
 
#define ULPI_CFG_EXTVBUSDRV   0x00400000
 
#define ULPI_CFG_EXTVBUSIND   0x00800000
 

Functions

void ULPIConfigSet (uint32_t ui32Base, uint32_t ui32Config)
 
void ULPIPowerTransceiver (uint32_t ui32Base, bool bEnable)
 

Macro Definition Documentation

§ ULPI_CFG_HS

#define ULPI_CFG_HS   0x00000000

§ ULPI_CFG_FS

#define ULPI_CFG_FS   0x00000001

§ ULPI_CFG_LS

#define ULPI_CFG_LS   0x00000002

§ ULPI_CFG_AUTORESUME

#define ULPI_CFG_AUTORESUME   0x00001000

§ ULPI_CFG_INVVBUSIND

#define ULPI_CFG_INVVBUSIND   0x00002000

§ ULPI_CFG_PASSTHRUIND

#define ULPI_CFG_PASSTHRUIND   0x00004000

§ ULPI_CFG_EXTVBUSDRV

#define ULPI_CFG_EXTVBUSDRV   0x00400000

§ ULPI_CFG_EXTVBUSIND

#define ULPI_CFG_EXTVBUSIND   0x00800000

Function Documentation

§ ULPIConfigSet()

void ULPIConfigSet ( uint32_t  ui32Base,
uint32_t  ui32Config 
)

Sets the configuration of an external USB Phy.

Parameters
ui32Basespecifies the USB module base address.
ui32Configspecifies the configuration options for the external Phy.

This function sets the configuration options for an externally connected USB Phy that is connected using the ULPI interface. The ui32Config parameter holds all of the configuration options defined by the UPLI_CFG_ values. The values are grouped as follows:

Connection speed, using one of the following:

  • UPLI_CFG_HS enables high speed operation.
  • UPLI_CFG_FS enables full speed operation.
  • UPLI_CFG_HS enables low speed operation.

Any of the following can be included:

  • UPLI_CFG_AUTORESUME enable automatic transmission of resume signaling from the Phy.
  • UPLI_CFG_INVVBUSIND inverts the external VBUS indicator if it is selected.
  • UPLI_CFG_PASSTHRUIND passes the external VBUS indicator through without using the Phy's VBUS comparator.
  • ULPI_CFG_EXTVBUSDRV enables an external VBUS drive source.
  • ULPI_CFG_EXTVBUSIND enables an external signal for VBUS valid.
Returns
None.

References ULPI_FCTL, ULPI_FCTL_XCVR_M, ULPI_ICTL, ULPI_ICTL_AUTORESUME, ULPI_ICTL_INDINV, ULPI_ICTL_INDPASSTHRU, ULPI_OTGCTL, ULPI_OTGCTL_VBUSEXT_EN, ULPI_OTGCTL_VBUSEXT_IND, and ULPI_OTGCTL_VBUSINT_EN.

§ ULPIPowerTransceiver()

void ULPIPowerTransceiver ( uint32_t  ui32Base,
bool  bEnable 
)

Enables or disables power to the external USB Phy.

Parameters
ui32Basespecifies the USB module base address.
bEnablespecifies if the Phy is fully powered or in suspend mode.

This function sets the current power configuration for the external ULPI connected Phy. When bEnable is true the Phy is fully powered and when false the USB Phy is in suspend mode.

Returns
None.

References ULPI_FCTL_CLEAR, ULPI_FCTL_OPMODE_SUSPEND, and ULPI_FCTL_SET.

Copyright 2018, Texas Instruments Incorporated