Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : gusbcfg

Description

USB Configuration Register

Register Layout

Bits Access Reset Description
[2:0] RW 0x0 ALT_USB_GLOB_GUSBCFG_TOUTCAL
[3] R 0x0 ALT_USB_GLOB_GUSBCFG_PHYIF
[4] R 0x1 ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL
[5] R 0x0 ALT_USB_GLOB_GUSBCFG_FSINTF
[6] R 0x0 ALT_USB_GLOB_GUSBCFG_PHYSEL
[7] RW 0x0 ALT_USB_GLOB_GUSBCFG_DDRSEL
[8] RW 0x0 ALT_USB_GLOB_GUSBCFG_SRPCAP
[9] RW 0x0 ALT_USB_GLOB_GUSBCFG_HNPCAP
[13:10] RW 0x5 ALT_USB_GLOB_GUSBCFG_USBTRDTIM
[17:14] ??? 0x0 UNDEFINED
[18] RW 0x0 ALT_USB_GLOB_GUSBCFG_ULPIAUTORES
[19] RW 0x0 ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM
[20] RW 0x0 ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV
[21] RW 0x0 ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR
[22] RW 0x0 ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE
[23] RW 0x0 ALT_USB_GLOB_GUSBCFG_COMPLEMENT
[24] RW 0x0 ALT_USB_GLOB_GUSBCFG_INDICATOR
[25] RW 0x0 ALT_USB_GLOB_GUSBCFG_ULPI
[26] R 0x0 ALT_USB_GLOB_GUSBCFG_IC_USBCAP
[27] ??? 0x0 UNDEFINED
[28] RW 0x0 ALT_USB_GLOB_GUSBCFG_TXENDDELAY
[29] RW 0x0 ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD
[30] RW 0x0 ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD
[31] W 0x0 ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT

Field : toutcal

Mode:Host and Device

HS/FS Timeout Calibration (TOutCal)

The number of PHY clocks that the application programs in this

field is added to the high-speed/full-speed interpacket timeout

duration in the core to account For any additional delays

introduced by the PHY. This can be required, because the delay

introduced by the PHY in generating the linestate condition can

vary from one PHY to another.

The USB standard timeout value For high-speed operation is 736

to 816 (inclusive) bit times. The USB standard timeout value For

full-speed operation is 16 to 18 (inclusive) bit times. The

application must program this field based on the speed of

enumeration. The number of bit times added per PHY clock are:

High-speed operation:

One 30-MHz PHY clock = 16 bit times

One 60-MHz PHY clock = 8 bit times

Full-speed operation:

One 30-MHz PHY clock = 0.4 bit times

One 60-MHz PHY clock = 0.2 bit times

One 48-MHz PHY clock = 0.25 bit times

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_LSB   0
 
#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_MSB   2
 
#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_WIDTH   3
 
#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_SET_MSK   0x00000007
 
#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_CLR_MSK   0xfffffff8
 
#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_GET(value)   (((value) & 0x00000007) >> 0)
 
#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_SET(value)   (((value) << 0) & 0x00000007)
 

Field : phyif

Mode:Host and Device

PHY Interface (PHYIf)

The application uses this bit to configure the core To support a

UTMI+ PHY with an 8- or 16-bit interface. When a ULPI PHY is

chosen, this must be Set to 8-bit mode.

1'b0: 8 bits

1'b1: 16 bits

This bit is writable only If UTMI+ and ULPI were selected

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_PHYIF_E_BITS8 0x0 PHY 8bit Mode

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_PHYIF_E_BITS8   0x0
 
#define ALT_USB_GLOB_GUSBCFG_PHYIF_LSB   3
 
#define ALT_USB_GLOB_GUSBCFG_PHYIF_MSB   3
 
#define ALT_USB_GLOB_GUSBCFG_PHYIF_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_PHYIF_SET_MSK   0x00000008
 
#define ALT_USB_GLOB_GUSBCFG_PHYIF_CLR_MSK   0xfffffff7
 
#define ALT_USB_GLOB_GUSBCFG_PHYIF_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_PHYIF_GET(value)   (((value) & 0x00000008) >> 3)
 
#define ALT_USB_GLOB_GUSBCFG_PHYIF_SET(value)   (((value) << 3) & 0x00000008)
 

Field : ulpi_utmi_sel

Mode:Host and Device

ULPI or UTMI+ Select (ULPI_UTMI_Sel)

The application uses this bit to select either a UTMI+ interface or

ULPI Interface.

1'b0: UTMI+ Interface

1'b1: ULPI Interface

This bit is writable only If UTMI+ and ULPI was specified For

High-Speed PHY Interface(s).

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_E_ULPI 0x0 ULPI PHY

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_E_ULPI   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_LSB   4
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_MSB   4
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_SET_MSK   0x00000010
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_CLR_MSK   0xffffffef
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_RESET   0x1
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_GET(value)   (((value) & 0x00000010) >> 4)
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_SET(value)   (((value) << 4) & 0x00000010)
 

Field : fsintf

Mode:Host and Device

Full-Speed Serial Interface Select (FSIntf)

The application uses this bit to select either a unidirectional or

bidirectional USB 1.1 full-speed serial transceiver interface.

1'b0: 6-pin unidirectional full-speed serial interface

1'b1: 3-pin bidirectional full-speed serial interface

If a USB 1.1 Full-Speed Serial Transceiver interface was not

selected, this bit is always 0, with Write

Only access. If a USB 1.1 FS interface was selected, Then the

application can Set this bit to select between the 3- and 6-pin

interfaces, and access is Read and Write.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_FSINTF_E_FS6PIN 0x0 6-pin unidirectional full-speed serial interface
ALT_USB_GLOB_GUSBCFG_FSINTF_E_FS3PIN 0x1 3-pin bidirectional full-speed serial interface

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_FSINTF_E_FS6PIN   0x0
 
#define ALT_USB_GLOB_GUSBCFG_FSINTF_E_FS3PIN   0x1
 
#define ALT_USB_GLOB_GUSBCFG_FSINTF_LSB   5
 
#define ALT_USB_GLOB_GUSBCFG_FSINTF_MSB   5
 
#define ALT_USB_GLOB_GUSBCFG_FSINTF_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_FSINTF_SET_MSK   0x00000020
 
#define ALT_USB_GLOB_GUSBCFG_FSINTF_CLR_MSK   0xffffffdf
 
#define ALT_USB_GLOB_GUSBCFG_FSINTF_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_FSINTF_GET(value)   (((value) & 0x00000020) >> 5)
 
#define ALT_USB_GLOB_GUSBCFG_FSINTF_SET(value)   (((value) << 5) & 0x00000020)
 

Field : physel

Mode:Host and Device

USB 2.0 High-Speed PHY or USB 1.1 Full-Speed Serial

Transceiver Select (PHYSel)

The application uses this bit to select either a high-speed UTMI+

or ULPI PHY, or a full-speed transceiver.

1'b0: USB 2.0 high-speed UTMI+ or ULPI PHY

1'b1: USB 1.1 full-speed serial transceiver

If a USB 1.1 Full-Speed Serial Transceiver interface was not

selected in, this bit is always 0, with Write Only access.

If a high-speed PHY interface was not selected in,

this bit is always 1, with Write Only access.

If both interface types were selected (parameters have non-zero values),

the application uses this bit to select which interface is active,

and access is Read and Write.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_PHYSEL_E_USB20 0x0 USB 2.0 high-speed ULPI

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_E_USB20   0x0
 
#define ALT_USB_GLOB_GUSBCFG_PHYSEL_LSB   6
 
#define ALT_USB_GLOB_GUSBCFG_PHYSEL_MSB   6
 
#define ALT_USB_GLOB_GUSBCFG_PHYSEL_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_PHYSEL_SET_MSK   0x00000040
 
#define ALT_USB_GLOB_GUSBCFG_PHYSEL_CLR_MSK   0xffffffbf
 
#define ALT_USB_GLOB_GUSBCFG_PHYSEL_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_PHYSEL_GET(value)   (((value) & 0x00000040) >> 6)
 
#define ALT_USB_GLOB_GUSBCFG_PHYSEL_SET(value)   (((value) << 6) & 0x00000040)
 

Field : ddrsel

Mode:Host and Device

ULPI DDR Select (DDRSel)

The application uses this bit to select a Single Data Rate (SDR)

or Double Data Rate (DDR) or ULPI interface.

1'b0: Single Data Rate ULPI Interface, with 8-bit-wide data

bus

1'b1: Double Data Rate ULPI Interface, with 4-bit-wide data

bus

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_DDRSEL_E_SDR 0x0 Single Data Rate ULPI Interfacewith 8-bit-wide
: data bus
ALT_USB_GLOB_GUSBCFG_DDRSEL_E_DDR 0x1 Double Data Rate ULPI Interface, with 4-bit-wide
: data bus

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_E_SDR   0x0
 
#define ALT_USB_GLOB_GUSBCFG_DDRSEL_E_DDR   0x1
 
#define ALT_USB_GLOB_GUSBCFG_DDRSEL_LSB   7
 
#define ALT_USB_GLOB_GUSBCFG_DDRSEL_MSB   7
 
#define ALT_USB_GLOB_GUSBCFG_DDRSEL_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_DDRSEL_SET_MSK   0x00000080
 
#define ALT_USB_GLOB_GUSBCFG_DDRSEL_CLR_MSK   0xffffff7f
 
#define ALT_USB_GLOB_GUSBCFG_DDRSEL_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_DDRSEL_GET(value)   (((value) & 0x00000080) >> 7)
 
#define ALT_USB_GLOB_GUSBCFG_DDRSEL_SET(value)   (((value) << 7) & 0x00000080)
 

Field : srpcap

Mode:Host and Device

SRP-Capable (SRPCap)

The application uses this bit to control the DWC_otg core SRP

capabilities. If the core operates as a non-SRP-capable

B-device, it cannot request the connected A-device (host) to

activate VBUS and start a session.

1'b0: SRP capability is not enabled.

1'b1: SRP capability is enabled.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_SRPCAP_E_DISD 0x0 SRP capability is not enabled
ALT_USB_GLOB_GUSBCFG_SRPCAP_E_END 0x1 SRP capability is enabled

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_E_DISD   0x0
 
#define ALT_USB_GLOB_GUSBCFG_SRPCAP_E_END   0x1
 
#define ALT_USB_GLOB_GUSBCFG_SRPCAP_LSB   8
 
#define ALT_USB_GLOB_GUSBCFG_SRPCAP_MSB   8
 
#define ALT_USB_GLOB_GUSBCFG_SRPCAP_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_SRPCAP_SET_MSK   0x00000100
 
#define ALT_USB_GLOB_GUSBCFG_SRPCAP_CLR_MSK   0xfffffeff
 
#define ALT_USB_GLOB_GUSBCFG_SRPCAP_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_SRPCAP_GET(value)   (((value) & 0x00000100) >> 8)
 
#define ALT_USB_GLOB_GUSBCFG_SRPCAP_SET(value)   (((value) << 8) & 0x00000100)
 

Field : hnpcap

Mode:Host and Device

HNP-Capable (HNPCap)

The application uses this bit to control the DWC_otg core's HNP

capabilities.

1'b0: HNP capability is not enabled.

1'b1: HNP capability is enabled.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_HNPCAP_E_DISD 0x0 HNP capability is not enabled.
ALT_USB_GLOB_GUSBCFG_HNPCAP_E_END 0x1 HNP capability is enabled

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_E_DISD   0x0
 
#define ALT_USB_GLOB_GUSBCFG_HNPCAP_E_END   0x1
 
#define ALT_USB_GLOB_GUSBCFG_HNPCAP_LSB   9
 
#define ALT_USB_GLOB_GUSBCFG_HNPCAP_MSB   9
 
#define ALT_USB_GLOB_GUSBCFG_HNPCAP_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_HNPCAP_SET_MSK   0x00000200
 
#define ALT_USB_GLOB_GUSBCFG_HNPCAP_CLR_MSK   0xfffffdff
 
#define ALT_USB_GLOB_GUSBCFG_HNPCAP_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_HNPCAP_GET(value)   (((value) & 0x00000200) >> 9)
 
#define ALT_USB_GLOB_GUSBCFG_HNPCAP_SET(value)   (((value) << 9) & 0x00000200)
 

Field : usbtrdtim

Mode: Device only

USB Turnaround Time (USBTrdTim)

Sets the turnaround time in PHY clocks.

Specifies the response time For a MAC request to the Packet

FIFO Controller (PFC) to fetch data from the DFIFO (SPRAM).

This must be programmed to

4'h5: When the MAC interface is 16-bit UTMI+ .

4'h9: When the MAC interface is 8-bit UTMI+ .

Note: The values above are calculated For the minimum AHB

frequency of 30 MHz. USB turnaround time is critical For

certification where long cables and 5-Hubs are used, so If you

need the AHB to run at less than 30 MHz, and If USB turnaround

time is not critical, these bits can be programmed to a larger

value.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_USBTRDTIM_E_TURNTIME 0x9 MAC interface is 8-bit UTMI+.

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_E_TURNTIME   0x9
 
#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_LSB   10
 
#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_MSB   13
 
#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_WIDTH   4
 
#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_SET_MSK   0x00003c00
 
#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_CLR_MSK   0xffffc3ff
 
#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_RESET   0x5
 
#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_GET(value)   (((value) & 0x00003c00) >> 10)
 
#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_SET(value)   (((value) << 10) & 0x00003c00)
 

Field : ulpiautores

Mode:Host and Device

ULPI Auto Resume (ULPIAutoRes)

This bit sets the AutoResume bit in the Interface Control register

on the ULPI PHY.

1'b0: PHY does not use AutoResume feature.

1'b1: PHY uses AutoResume feature.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_E_DISD 0x0 PHY does not use AutoResume feature
ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_E_END 0x1 PHY uses AutoResume feature

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_E_DISD   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_E_END   0x1
 
#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_LSB   18
 
#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_MSB   18
 
#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_SET_MSK   0x00040000
 
#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_CLR_MSK   0xfffbffff
 
#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_GET(value)   (((value) & 0x00040000) >> 18)
 
#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_SET(value)   (((value) << 18) & 0x00040000)
 

Field : ulpiclksusm

Mode:Host and Device

ULPI Clock SuspendM (ULPIClkSusM)

This bit sets the ClockSuspendM bit in the Interface Control

register on the ULPI PHY. This bit applies only in serial or carkit

modes.

1'b0: PHY powers down internal clock during suspend.

1'b1: PHY does not power down internal clock.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_E_PWDCLK 0x0 PHY powers down internal clock during suspend
ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_E_NONPWDCLK 0x1 PHY does not power down internal clock

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_E_PWDCLK   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_E_NONPWDCLK   0x1
 
#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_LSB   19
 
#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_MSB   19
 
#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_SET_MSK   0x00080000
 
#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_CLR_MSK   0xfff7ffff
 
#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_GET(value)   (((value) & 0x00080000) >> 19)
 
#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_SET(value)   (((value) << 19) & 0x00080000)
 

Field : ulpiextvbusdrv

Mode:Host only

ULPI External VBUS Drive (ULPIExtVbusDrv)

This bit selects between internal or external supply to drive 5V

on VBUS, in ULPI PHY.

1'b0: PHY drives VBUS using internal charge pump (Default).

1'b1: PHY drives VBUS using external supply.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_E_INTERN 0x0 PHY drives VBUS using internal charge pump
ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_E_EXTERN 0x1 PHY drives VBUS using external supply

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_E_INTERN   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_E_EXTERN   0x1
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_LSB   20
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_MSB   20
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_SET_MSK   0x00100000
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_CLR_MSK   0xffefffff
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_GET(value)   (((value) & 0x00100000) >> 20)
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_SET(value)   (((value) << 20) & 0x00100000)
 

Field : ulpiextvbusindicator

Mode:Host only

ULPI External VBUS Indicator (ULPIExtVbusIndicator)

This bit indicates to the ULPI PHY to use an external VBUS overcurrent

indicator.

1'b0: PHY uses internal VBUS valid comparator.

1'b1: PHY uses external VBUS valid comparator.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_E_INTERN 0x0 PHY uses internal VBUS valid comparator
ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_E_EXTERN 0x1 PHY uses external VBUS valid comparator

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_E_INTERN   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_E_EXTERN   0x1
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_LSB   21
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_MSB   21
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_SET_MSK   0x00200000
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_CLR_MSK   0xffdfffff
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_GET(value)   (((value) & 0x00200000) >> 21)
 
#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_SET(value)   (((value) << 21) & 0x00200000)
 

Field : termseldlpulse

Mode:Device only

TermSel DLine Pulsing Selection (TermSelDLPulse)

This bit selects utmi_termselect to drive data line pulse during

SRP.

1'b0: Data line pulsing using utmi_txvalid (Default).

1'b1: Data line pulsing using utmi_termsel.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_E_TXVALID 0x0 Data line pulsing using utmi_txvalid
ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_E_TERMSEL 0x1 Data line pulsing using utmi_termsel

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_E_TXVALID   0x0
 
#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_E_TERMSEL   0x1
 
#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_LSB   22
 
#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_MSB   22
 
#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_SET_MSK   0x00400000
 
#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_CLR_MSK   0xffbfffff
 
#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_GET(value)   (((value) & 0x00400000) >> 22)
 
#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_SET(value)   (((value) << 22) & 0x00400000)
 

Field : complement

Mode:Host only

Indicator Complement

Controls the PHY to invert the ExternalVbusIndicator input

signal, generating the Complement

Output. Please refer to the ULPI Spec For more detail

1'b0: PHY does not invert ExternalVbusIndicator signal

1'b1: PHY does invert ExternalVbusIndicator signal

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_COMPLEMENT_E_NONINVERT 0x0 PHY does not invert ExternalVbusIndicator signal
ALT_USB_GLOB_GUSBCFG_COMPLEMENT_E_INVERT 0x1 PHY does invert ExternalVbusIndicator signal

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_E_NONINVERT   0x0
 
#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_E_INVERT   0x1
 
#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_LSB   23
 
#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_MSB   23
 
#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_SET_MSK   0x00800000
 
#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_CLR_MSK   0xff7fffff
 
#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_GET(value)   (((value) & 0x00800000) >> 23)
 
#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_SET(value)   (((value) << 23) & 0x00800000)
 

Field : indicator

Mode:Host only

Indicator Pass Through

Controls wether the Complement Output is qualified with the

Internal Vbus Valid comparator before being used

in the Vbus State in the RX CMD. Please refer to the ULPI Spec

for more detail.

1'b0: Complement Output signal is qualified with the Internal

VbusValid comparator.

1'b1: Complement Output signal is not qualified with the

Internal VbusValid comparator.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_INDICATOR_E_QUALIFIED 0x0 Complement Output signal is qualified with the
: Internal VbusValid comparator
ALT_USB_GLOB_GUSBCFG_INDICATOR_E_NONQUALIFIED 0x1 Complement Output signal is not qualified with
: the Internal VbusValid comparator

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_E_QUALIFIED   0x0
 
#define ALT_USB_GLOB_GUSBCFG_INDICATOR_E_NONQUALIFIED   0x1
 
#define ALT_USB_GLOB_GUSBCFG_INDICATOR_LSB   24
 
#define ALT_USB_GLOB_GUSBCFG_INDICATOR_MSB   24
 
#define ALT_USB_GLOB_GUSBCFG_INDICATOR_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_INDICATOR_SET_MSK   0x01000000
 
#define ALT_USB_GLOB_GUSBCFG_INDICATOR_CLR_MSK   0xfeffffff
 
#define ALT_USB_GLOB_GUSBCFG_INDICATOR_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_INDICATOR_GET(value)   (((value) & 0x01000000) >> 24)
 
#define ALT_USB_GLOB_GUSBCFG_INDICATOR_SET(value)   (((value) << 24) & 0x01000000)
 

Field : ulpi

Mode:Host only

ULPI Interface Protect Disable

Controls circuitry built into the PHY For protecting the ULPI

interface when the link tri-states STP and data.

Any pull-ups or pull-downs employed by this feature can be

disabled. Please refer to the ULPI Specification For more detail.

1'b0: Enables the interface protect circuit

1'b1: Disables the interface protect circuit

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_ULPI_E_END 0x0 Enables the interface protect circuit
ALT_USB_GLOB_GUSBCFG_ULPI_E_DISD 0x1 Disables the interface protect circuit

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_ULPI_E_END   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_E_DISD   0x1
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_LSB   25
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_MSB   25
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_SET_MSK   0x02000000
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_CLR_MSK   0xfdffffff
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_GET(value)   (((value) & 0x02000000) >> 25)
 
#define ALT_USB_GLOB_GUSBCFG_ULPI_SET(value)   (((value) << 25) & 0x02000000)
 

Field : ic_usbcap

IC_USB-Capable (IC_USBCap)

The application uses this bit to control the DWC_otg core's IC_USB

capabilities.

1'b0: IC_USB PHY Interface is not selected.

1'b1: IC_USB PHY Interface is selected.

This bit is writable only if IC_USB is selected

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_LSB   26
 
#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_MSB   26
 
#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_SET_MSK   0x04000000
 
#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_CLR_MSK   0xfbffffff
 
#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_GET(value)   (((value) & 0x04000000) >> 26)
 
#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_SET(value)   (((value) << 26) & 0x04000000)
 

Field : txenddelay

Mode: Device only

Tx End Delay (TxEndDelay)

Writing 1'b1 to this bit enables the core to follow the TxEndDelay timings as per UTMI+ specification 1.05 section 4.1.5 for opmode signal during remote wakeup.

1'b0 : Normal Mode.

1'b1 : Tx End delay.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_TXENDDELAY_E_DISD 0x0 Normal Mode

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_E_DISD   0x0
 
#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_LSB   28
 
#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_MSB   28
 
#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_SET_MSK   0x10000000
 
#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_CLR_MSK   0xefffffff
 
#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_GET(value)   (((value) & 0x10000000) >> 28)
 
#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_SET(value)   (((value) << 28) & 0x10000000)
 

Field : forcehstmode

Mode:Host and device

Force Host Mode (ForceHstMode)

Writing a 1 to this bit forces the core to host mode irrespective of

utmiotg_iddig input pin.

1'b0 : Normal Mode.

1'b1 : Force Host Mode.

After setting the force bit, the application must wait at least 25 ms before

the change to take effect. When the simulation is in scale down mode,

waiting for 500 micro sec is sufficient.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_E_DISD 0x0 Normal Mode
ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_E_END 0x1 Force Host Mode

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_E_DISD   0x0
 
#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_E_END   0x1
 
#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_LSB   29
 
#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_MSB   29
 
#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_SET_MSK   0x20000000
 
#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_CLR_MSK   0xdfffffff
 
#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_GET(value)   (((value) & 0x20000000) >> 29)
 
#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_SET(value)   (((value) << 29) & 0x20000000)
 

Field : forcedevmode

Mode:Host and device

Force Device Mode (ForceDevMode)

Writing a 1 to this bit forces the core to device mode irrespective

of utmiotg_iddig input pin.

1'b0 : Normal Mode.

1'b1 : Force Device Mode.

After setting the force bit, the application must wait at least 25 ms before

the change to take effect. When the simulation is in scale down mode,

waiting for 500 micro sec is sufficient.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_E_DISD 0x0 Normal Mode
ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_E_END 0x1 Force Device Mode

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_E_DISD   0x0
 
#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_E_END   0x1
 
#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_LSB   30
 
#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_MSB   30
 
#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_SET_MSK   0x40000000
 
#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_CLR_MSK   0xbfffffff
 
#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_GET(value)   (((value) & 0x40000000) >> 30)
 
#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_SET(value)   (((value) << 30) & 0x40000000)
 

Field : corrupttxpkt

Mode:Host and device

Corrupt Tx packet

This bit is FOr debug purposes only. Never Set this bit to 1.The application should always write 1'b0 to this bit.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_E_NODBG 0x0 Normal Mode
ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_E_DBG 0x1 Debug Mode

Field Access Macros:

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_E_NODBG   0x0
 
#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_E_DBG   0x1
 
#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_LSB   31
 
#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_MSB   31
 
#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_WIDTH   1
 
#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_SET_MSK   0x80000000
 
#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_CLR_MSK   0x7fffffff
 
#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_RESET   0x0
 
#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_GET(value)   (((value) & 0x80000000) >> 31)
 
#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_SET(value)   (((value) << 31) & 0x80000000)
 

Data Structures

struct  ALT_USB_GLOB_GUSBCFG_s
 

Macros

#define ALT_USB_GLOB_GUSBCFG_RESET   0x00001410
 
#define ALT_USB_GLOB_GUSBCFG_OFST   0xc
 
#define ALT_USB_GLOB_GUSBCFG_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_GLOB_GUSBCFG_OFST))
 

Typedefs

typedef struct
ALT_USB_GLOB_GUSBCFG_s 
ALT_USB_GLOB_GUSBCFG_t
 

Data Structure Documentation

struct ALT_USB_GLOB_GUSBCFG_s

WARNING: The C register and register group struct declarations are provided for convenience and illustrative purposes. They should, however, be used with caution as the C language standard provides no guarantees about the alignment or atomicity of device memory accesses. The recommended practice for writing hardware drivers is to use the SoCAL access macros and alt_read_word() and alt_write_word() functions.

The struct declaration for register ALT_USB_GLOB_GUSBCFG.

Data Fields
uint32_t toutcal: 3 ALT_USB_GLOB_GUSBCFG_TOUTCAL
const uint32_t phyif: 1 ALT_USB_GLOB_GUSBCFG_PHYIF
const uint32_t ulpi_utmi_sel: 1 ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL
const uint32_t fsintf: 1 ALT_USB_GLOB_GUSBCFG_FSINTF
const uint32_t physel: 1 ALT_USB_GLOB_GUSBCFG_PHYSEL
uint32_t ddrsel: 1 ALT_USB_GLOB_GUSBCFG_DDRSEL
uint32_t srpcap: 1 ALT_USB_GLOB_GUSBCFG_SRPCAP
uint32_t hnpcap: 1 ALT_USB_GLOB_GUSBCFG_HNPCAP
uint32_t usbtrdtim: 4 ALT_USB_GLOB_GUSBCFG_USBTRDTIM
uint32_t __pad0__: 4 UNDEFINED
uint32_t ulpiautores: 1 ALT_USB_GLOB_GUSBCFG_ULPIAUTORES
uint32_t ulpiclksusm: 1 ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM
uint32_t ulpiextvbusdrv: 1 ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV
uint32_t ulpiextvbusindicator: 1 ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR
uint32_t termseldlpulse: 1 ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE
uint32_t complement: 1 ALT_USB_GLOB_GUSBCFG_COMPLEMENT
uint32_t indicator: 1 ALT_USB_GLOB_GUSBCFG_INDICATOR
uint32_t ulpi: 1 ALT_USB_GLOB_GUSBCFG_ULPI
const uint32_t ic_usbcap: 1 ALT_USB_GLOB_GUSBCFG_IC_USBCAP
uint32_t __pad1__: 1 UNDEFINED
uint32_t txenddelay: 1 ALT_USB_GLOB_GUSBCFG_TXENDDELAY
uint32_t forcehstmode: 1 ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD
uint32_t forcedevmode: 1 ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD
uint32_t corrupttxpkt: 1 ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT

Macro Definitions

#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_LSB   0

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_TOUTCAL register field.

#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_MSB   2

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_TOUTCAL register field.

#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_WIDTH   3

The width in bits of the ALT_USB_GLOB_GUSBCFG_TOUTCAL register field.

#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_SET_MSK   0x00000007

The mask used to set the ALT_USB_GLOB_GUSBCFG_TOUTCAL register field value.

#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_CLR_MSK   0xfffffff8

The mask used to clear the ALT_USB_GLOB_GUSBCFG_TOUTCAL register field value.

#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_TOUTCAL register field.

#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_GET (   value)    (((value) & 0x00000007) >> 0)

Extracts the ALT_USB_GLOB_GUSBCFG_TOUTCAL field value from a register.

#define ALT_USB_GLOB_GUSBCFG_TOUTCAL_SET (   value)    (((value) << 0) & 0x00000007)

Produces a ALT_USB_GLOB_GUSBCFG_TOUTCAL register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_PHYIF_E_BITS8   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_PHYIF

PHY 8bit Mode

#define ALT_USB_GLOB_GUSBCFG_PHYIF_LSB   3

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_PHYIF register field.

#define ALT_USB_GLOB_GUSBCFG_PHYIF_MSB   3

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_PHYIF register field.

#define ALT_USB_GLOB_GUSBCFG_PHYIF_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_PHYIF register field.

#define ALT_USB_GLOB_GUSBCFG_PHYIF_SET_MSK   0x00000008

The mask used to set the ALT_USB_GLOB_GUSBCFG_PHYIF register field value.

#define ALT_USB_GLOB_GUSBCFG_PHYIF_CLR_MSK   0xfffffff7

The mask used to clear the ALT_USB_GLOB_GUSBCFG_PHYIF register field value.

#define ALT_USB_GLOB_GUSBCFG_PHYIF_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_PHYIF register field.

#define ALT_USB_GLOB_GUSBCFG_PHYIF_GET (   value)    (((value) & 0x00000008) >> 3)

Extracts the ALT_USB_GLOB_GUSBCFG_PHYIF field value from a register.

#define ALT_USB_GLOB_GUSBCFG_PHYIF_SET (   value)    (((value) << 3) & 0x00000008)

Produces a ALT_USB_GLOB_GUSBCFG_PHYIF register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_E_ULPI   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL

ULPI PHY

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_LSB   4

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL register field.

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_MSB   4

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL register field.

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL register field.

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_SET_MSK   0x00000010

The mask used to set the ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_CLR_MSK   0xffffffef

The mask used to clear the ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_RESET   0x1

The reset value of the ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL register field.

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_GET (   value)    (((value) & 0x00000010) >> 4)

Extracts the ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL field value from a register.

#define ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL_SET (   value)    (((value) << 4) & 0x00000010)

Produces a ALT_USB_GLOB_GUSBCFG_ULPI_UTMI_SEL register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_FSINTF_E_FS6PIN   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_FSINTF

6-pin unidirectional full-speed serial interface

#define ALT_USB_GLOB_GUSBCFG_FSINTF_E_FS3PIN   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_FSINTF

3-pin bidirectional full-speed serial interface

#define ALT_USB_GLOB_GUSBCFG_FSINTF_LSB   5

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_FSINTF register field.

#define ALT_USB_GLOB_GUSBCFG_FSINTF_MSB   5

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_FSINTF register field.

#define ALT_USB_GLOB_GUSBCFG_FSINTF_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_FSINTF register field.

#define ALT_USB_GLOB_GUSBCFG_FSINTF_SET_MSK   0x00000020

The mask used to set the ALT_USB_GLOB_GUSBCFG_FSINTF register field value.

#define ALT_USB_GLOB_GUSBCFG_FSINTF_CLR_MSK   0xffffffdf

The mask used to clear the ALT_USB_GLOB_GUSBCFG_FSINTF register field value.

#define ALT_USB_GLOB_GUSBCFG_FSINTF_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_FSINTF register field.

#define ALT_USB_GLOB_GUSBCFG_FSINTF_GET (   value)    (((value) & 0x00000020) >> 5)

Extracts the ALT_USB_GLOB_GUSBCFG_FSINTF field value from a register.

#define ALT_USB_GLOB_GUSBCFG_FSINTF_SET (   value)    (((value) << 5) & 0x00000020)

Produces a ALT_USB_GLOB_GUSBCFG_FSINTF register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_E_USB20   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_PHYSEL

USB 2.0 high-speed ULPI

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_LSB   6

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_PHYSEL register field.

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_MSB   6

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_PHYSEL register field.

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_PHYSEL register field.

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_SET_MSK   0x00000040

The mask used to set the ALT_USB_GLOB_GUSBCFG_PHYSEL register field value.

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_CLR_MSK   0xffffffbf

The mask used to clear the ALT_USB_GLOB_GUSBCFG_PHYSEL register field value.

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_PHYSEL register field.

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_GET (   value)    (((value) & 0x00000040) >> 6)

Extracts the ALT_USB_GLOB_GUSBCFG_PHYSEL field value from a register.

#define ALT_USB_GLOB_GUSBCFG_PHYSEL_SET (   value)    (((value) << 6) & 0x00000040)

Produces a ALT_USB_GLOB_GUSBCFG_PHYSEL register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_E_SDR   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_DDRSEL

Single Data Rate ULPI Interfacewith 8-bit-wide data bus

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_E_DDR   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_DDRSEL

Double Data Rate ULPI Interface, with 4-bit-wide data bus

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_LSB   7

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_DDRSEL register field.

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_MSB   7

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_DDRSEL register field.

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_DDRSEL register field.

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_SET_MSK   0x00000080

The mask used to set the ALT_USB_GLOB_GUSBCFG_DDRSEL register field value.

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_CLR_MSK   0xffffff7f

The mask used to clear the ALT_USB_GLOB_GUSBCFG_DDRSEL register field value.

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_DDRSEL register field.

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_GET (   value)    (((value) & 0x00000080) >> 7)

Extracts the ALT_USB_GLOB_GUSBCFG_DDRSEL field value from a register.

#define ALT_USB_GLOB_GUSBCFG_DDRSEL_SET (   value)    (((value) << 7) & 0x00000080)

Produces a ALT_USB_GLOB_GUSBCFG_DDRSEL register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_SRPCAP

SRP capability is not enabled

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_SRPCAP

SRP capability is enabled

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_LSB   8

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_SRPCAP register field.

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_MSB   8

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_SRPCAP register field.

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_SRPCAP register field.

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_SET_MSK   0x00000100

The mask used to set the ALT_USB_GLOB_GUSBCFG_SRPCAP register field value.

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_CLR_MSK   0xfffffeff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_SRPCAP register field value.

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_SRPCAP register field.

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_GET (   value)    (((value) & 0x00000100) >> 8)

Extracts the ALT_USB_GLOB_GUSBCFG_SRPCAP field value from a register.

#define ALT_USB_GLOB_GUSBCFG_SRPCAP_SET (   value)    (((value) << 8) & 0x00000100)

Produces a ALT_USB_GLOB_GUSBCFG_SRPCAP register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_HNPCAP

HNP capability is not enabled.

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_HNPCAP

HNP capability is enabled

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_LSB   9

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_HNPCAP register field.

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_MSB   9

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_HNPCAP register field.

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_HNPCAP register field.

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_SET_MSK   0x00000200

The mask used to set the ALT_USB_GLOB_GUSBCFG_HNPCAP register field value.

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_CLR_MSK   0xfffffdff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_HNPCAP register field value.

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_HNPCAP register field.

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_GET (   value)    (((value) & 0x00000200) >> 9)

Extracts the ALT_USB_GLOB_GUSBCFG_HNPCAP field value from a register.

#define ALT_USB_GLOB_GUSBCFG_HNPCAP_SET (   value)    (((value) << 9) & 0x00000200)

Produces a ALT_USB_GLOB_GUSBCFG_HNPCAP register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_E_TURNTIME   0x9

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_USBTRDTIM

MAC interface is 8-bit UTMI+.

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_LSB   10

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_USBTRDTIM register field.

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_MSB   13

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_USBTRDTIM register field.

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_WIDTH   4

The width in bits of the ALT_USB_GLOB_GUSBCFG_USBTRDTIM register field.

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_SET_MSK   0x00003c00

The mask used to set the ALT_USB_GLOB_GUSBCFG_USBTRDTIM register field value.

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_CLR_MSK   0xffffc3ff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_USBTRDTIM register field value.

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_RESET   0x5

The reset value of the ALT_USB_GLOB_GUSBCFG_USBTRDTIM register field.

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_GET (   value)    (((value) & 0x00003c00) >> 10)

Extracts the ALT_USB_GLOB_GUSBCFG_USBTRDTIM field value from a register.

#define ALT_USB_GLOB_GUSBCFG_USBTRDTIM_SET (   value)    (((value) << 10) & 0x00003c00)

Produces a ALT_USB_GLOB_GUSBCFG_USBTRDTIM register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPIAUTORES

PHY does not use AutoResume feature

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPIAUTORES

PHY uses AutoResume feature

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_LSB   18

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_ULPIAUTORES register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_MSB   18

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_ULPIAUTORES register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_ULPIAUTORES register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_SET_MSK   0x00040000

The mask used to set the ALT_USB_GLOB_GUSBCFG_ULPIAUTORES register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_CLR_MSK   0xfffbffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_ULPIAUTORES register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_ULPIAUTORES register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_GET (   value)    (((value) & 0x00040000) >> 18)

Extracts the ALT_USB_GLOB_GUSBCFG_ULPIAUTORES field value from a register.

#define ALT_USB_GLOB_GUSBCFG_ULPIAUTORES_SET (   value)    (((value) << 18) & 0x00040000)

Produces a ALT_USB_GLOB_GUSBCFG_ULPIAUTORES register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_E_PWDCLK   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM

PHY powers down internal clock during suspend

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_E_NONPWDCLK   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM

PHY does not power down internal clock

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_LSB   19

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM register field.

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_MSB   19

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM register field.

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM register field.

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_SET_MSK   0x00080000

The mask used to set the ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_CLR_MSK   0xfff7ffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM register field.

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_GET (   value)    (((value) & 0x00080000) >> 19)

Extracts the ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM field value from a register.

#define ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM_SET (   value)    (((value) << 19) & 0x00080000)

Produces a ALT_USB_GLOB_GUSBCFG_ULPICLKSUSM register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_E_INTERN   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV

PHY drives VBUS using internal charge pump

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_E_EXTERN   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV

PHY drives VBUS using external supply

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_LSB   20

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_MSB   20

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_SET_MSK   0x00100000

The mask used to set the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_CLR_MSK   0xffefffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_GET (   value)    (((value) & 0x00100000) >> 20)

Extracts the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV field value from a register.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV_SET (   value)    (((value) << 20) & 0x00100000)

Produces a ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSDRV register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_E_INTERN   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR

PHY uses internal VBUS valid comparator

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_E_EXTERN   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR

PHY uses external VBUS valid comparator

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_LSB   21

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_MSB   21

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_SET_MSK   0x00200000

The mask used to set the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_CLR_MSK   0xffdfffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR register field.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_GET (   value)    (((value) & 0x00200000) >> 21)

Extracts the ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR field value from a register.

#define ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR_SET (   value)    (((value) << 21) & 0x00200000)

Produces a ALT_USB_GLOB_GUSBCFG_ULPIEXTVBUSINDICATOR register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_E_TXVALID   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE

Data line pulsing using utmi_txvalid

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_E_TERMSEL   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE

Data line pulsing using utmi_termsel

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_LSB   22

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE register field.

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_MSB   22

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE register field.

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE register field.

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_SET_MSK   0x00400000

The mask used to set the ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE register field value.

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_CLR_MSK   0xffbfffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE register field value.

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE register field.

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_GET (   value)    (((value) & 0x00400000) >> 22)

Extracts the ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE field value from a register.

#define ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE_SET (   value)    (((value) << 22) & 0x00400000)

Produces a ALT_USB_GLOB_GUSBCFG_TERMSELDLPULSE register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_E_NONINVERT   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_COMPLEMENT

PHY does not invert ExternalVbusIndicator signal

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_E_INVERT   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_COMPLEMENT

PHY does invert ExternalVbusIndicator signal

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_LSB   23

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_COMPLEMENT register field.

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_MSB   23

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_COMPLEMENT register field.

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_COMPLEMENT register field.

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_SET_MSK   0x00800000

The mask used to set the ALT_USB_GLOB_GUSBCFG_COMPLEMENT register field value.

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_CLR_MSK   0xff7fffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_COMPLEMENT register field value.

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_COMPLEMENT register field.

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_GET (   value)    (((value) & 0x00800000) >> 23)

Extracts the ALT_USB_GLOB_GUSBCFG_COMPLEMENT field value from a register.

#define ALT_USB_GLOB_GUSBCFG_COMPLEMENT_SET (   value)    (((value) << 23) & 0x00800000)

Produces a ALT_USB_GLOB_GUSBCFG_COMPLEMENT register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_E_QUALIFIED   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_INDICATOR

Complement Output signal is qualified with the Internal VbusValid comparator

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_E_NONQUALIFIED   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_INDICATOR

Complement Output signal is not qualified with the Internal VbusValid comparator

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_LSB   24

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_INDICATOR register field.

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_MSB   24

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_INDICATOR register field.

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_INDICATOR register field.

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_SET_MSK   0x01000000

The mask used to set the ALT_USB_GLOB_GUSBCFG_INDICATOR register field value.

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_CLR_MSK   0xfeffffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_INDICATOR register field value.

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_INDICATOR register field.

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_GET (   value)    (((value) & 0x01000000) >> 24)

Extracts the ALT_USB_GLOB_GUSBCFG_INDICATOR field value from a register.

#define ALT_USB_GLOB_GUSBCFG_INDICATOR_SET (   value)    (((value) << 24) & 0x01000000)

Produces a ALT_USB_GLOB_GUSBCFG_INDICATOR register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_ULPI_E_END   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPI

Enables the interface protect circuit

#define ALT_USB_GLOB_GUSBCFG_ULPI_E_DISD   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_ULPI

Disables the interface protect circuit

#define ALT_USB_GLOB_GUSBCFG_ULPI_LSB   25

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_ULPI register field.

#define ALT_USB_GLOB_GUSBCFG_ULPI_MSB   25

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_ULPI register field.

#define ALT_USB_GLOB_GUSBCFG_ULPI_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_ULPI register field.

#define ALT_USB_GLOB_GUSBCFG_ULPI_SET_MSK   0x02000000

The mask used to set the ALT_USB_GLOB_GUSBCFG_ULPI register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPI_CLR_MSK   0xfdffffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_ULPI register field value.

#define ALT_USB_GLOB_GUSBCFG_ULPI_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_ULPI register field.

#define ALT_USB_GLOB_GUSBCFG_ULPI_GET (   value)    (((value) & 0x02000000) >> 25)

Extracts the ALT_USB_GLOB_GUSBCFG_ULPI field value from a register.

#define ALT_USB_GLOB_GUSBCFG_ULPI_SET (   value)    (((value) << 25) & 0x02000000)

Produces a ALT_USB_GLOB_GUSBCFG_ULPI register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_LSB   26

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_IC_USBCAP register field.

#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_MSB   26

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_IC_USBCAP register field.

#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_IC_USBCAP register field.

#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_SET_MSK   0x04000000

The mask used to set the ALT_USB_GLOB_GUSBCFG_IC_USBCAP register field value.

#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_CLR_MSK   0xfbffffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_IC_USBCAP register field value.

#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_IC_USBCAP register field.

#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_GET (   value)    (((value) & 0x04000000) >> 26)

Extracts the ALT_USB_GLOB_GUSBCFG_IC_USBCAP field value from a register.

#define ALT_USB_GLOB_GUSBCFG_IC_USBCAP_SET (   value)    (((value) << 26) & 0x04000000)

Produces a ALT_USB_GLOB_GUSBCFG_IC_USBCAP register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_TXENDDELAY

Normal Mode

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_LSB   28

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_TXENDDELAY register field.

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_MSB   28

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_TXENDDELAY register field.

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_TXENDDELAY register field.

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_SET_MSK   0x10000000

The mask used to set the ALT_USB_GLOB_GUSBCFG_TXENDDELAY register field value.

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_CLR_MSK   0xefffffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_TXENDDELAY register field value.

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_TXENDDELAY register field.

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_GET (   value)    (((value) & 0x10000000) >> 28)

Extracts the ALT_USB_GLOB_GUSBCFG_TXENDDELAY field value from a register.

#define ALT_USB_GLOB_GUSBCFG_TXENDDELAY_SET (   value)    (((value) << 28) & 0x10000000)

Produces a ALT_USB_GLOB_GUSBCFG_TXENDDELAY register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD

Normal Mode

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD

Force Host Mode

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_LSB   29

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD register field.

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_MSB   29

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD register field.

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD register field.

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_SET_MSK   0x20000000

The mask used to set the ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD register field value.

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_CLR_MSK   0xdfffffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD register field value.

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD register field.

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_GET (   value)    (((value) & 0x20000000) >> 29)

Extracts the ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD field value from a register.

#define ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD_SET (   value)    (((value) << 29) & 0x20000000)

Produces a ALT_USB_GLOB_GUSBCFG_FORCEHSTMOD register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD

Normal Mode

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD

Force Device Mode

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_LSB   30

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD register field.

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_MSB   30

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD register field.

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD register field.

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_SET_MSK   0x40000000

The mask used to set the ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD register field value.

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_CLR_MSK   0xbfffffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD register field value.

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD register field.

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_GET (   value)    (((value) & 0x40000000) >> 30)

Extracts the ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD field value from a register.

#define ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD_SET (   value)    (((value) << 30) & 0x40000000)

Produces a ALT_USB_GLOB_GUSBCFG_FORCEDEVMOD register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_E_NODBG   0x0

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT

Normal Mode

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_E_DBG   0x1

Enumerated value for register field ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT

Debug Mode

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_LSB   31

The Least Significant Bit (LSB) position of the ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT register field.

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_MSB   31

The Most Significant Bit (MSB) position of the ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT register field.

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_WIDTH   1

The width in bits of the ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT register field.

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_SET_MSK   0x80000000

The mask used to set the ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT register field value.

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_CLR_MSK   0x7fffffff

The mask used to clear the ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT register field value.

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_RESET   0x0

The reset value of the ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT register field.

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_GET (   value)    (((value) & 0x80000000) >> 31)

Extracts the ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT field value from a register.

#define ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT_SET (   value)    (((value) << 31) & 0x80000000)

Produces a ALT_USB_GLOB_GUSBCFG_CORRUPTTXPKT register field value suitable for setting the register.

#define ALT_USB_GLOB_GUSBCFG_RESET   0x00001410

The reset value of the ALT_USB_GLOB_GUSBCFG register.

#define ALT_USB_GLOB_GUSBCFG_OFST   0xc

The byte offset of the ALT_USB_GLOB_GUSBCFG register from the beginning of the component.

#define ALT_USB_GLOB_GUSBCFG_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_GLOB_GUSBCFG_OFST))

The address of the ALT_USB_GLOB_GUSBCFG register.

Typedef Documentation

The typedef declaration for register ALT_USB_GLOB_GUSBCFG.