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

Description

OTG Control and Status Register

Register Layout

Bits Access Reset Description
[0] R 0x0 ALT_USB_GLOB_GOTGCTL_SESREQSCS
[1] RW 0x0 ALT_USB_GLOB_GOTGCTL_SESREQ
[2] RW 0x0 ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN
[3] RW 0x0 ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL
[4] RW 0x0 ALT_USB_GLOB_GOTGCTL_AVALIDOVEN
[5] RW 0x0 ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL
[6] RW 0x0 ALT_USB_GLOB_GOTGCTL_BVALIDOVEN
[7] RW 0x0 ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL
[8] R 0x0 ALT_USB_GLOB_GOTGCTL_HSTNEGSCS
[9] RW 0x0 ALT_USB_GLOB_GOTGCTL_HNPREQ
[10] RW 0x0 ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN
[11] RW 0x0 ALT_USB_GLOB_GOTGCTL_DEVHNPEN
[13:12] ??? 0x0 UNDEFINED
[14] RW 0x0 ALT_USB_GLOB_GOTGCTL_EHEN
[15] ??? 0x0 UNDEFINED
[16] R 0x1 ALT_USB_GLOB_GOTGCTL_CONIDSTS
[17] R 0x0 ALT_USB_GLOB_GOTGCTL_DBNCTIME
[18] R 0x0 ALT_USB_GLOB_GOTGCTL_ASESVLD
[19] R 0x0 ALT_USB_GLOB_GOTGCTL_BSESVLD
[20] RW 0x0 ALT_USB_GLOB_GOTGCTL_OTGVER
[21] R 0x0 ALT_USB_GLOB_GOTGCTL_CURMOD
[31:22] ??? 0x0 UNDEFINED

Field : sesreqscs

Mode: Device only

Session Request Success (SesReqScs)

The core sets this bit when a session request initiation is

successful.

1'b0: Session request failure

1'b1: Session request success

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_SESREQSCS_E_FAIL 0x0 Session request failure
ALT_USB_GLOB_GOTGCTL_SESREQSCS_E_SUCCESS 0x1 Session request success

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_E_FAIL   0x0
 
#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_E_SUCCESS   0x1
 
#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_LSB   0
 
#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_MSB   0
 
#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_SET_MSK   0x00000001
 
#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_CLR_MSK   0xfffffffe
 
#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_GET(value)   (((value) & 0x00000001) >> 0)
 
#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_SET(value)   (((value) << 0) & 0x00000001)
 

Field : sesreq

Mode: Device only

Session Request (SesReq)

The application sets this bit to initiate a session request on the

USB. The application can clear this bit by writing a 0 when the

Host Negotiation Success Status Change bit in the OTG

Interrupt register (GOTGINT.HstNegSucStsChng) is SET. The

core clears this bit when the HstNegSucStsChng bit is cleared.

If you use the USB 1.1 Full-Speed Serial Transceiver interface to

initiate the session request, the application must wait until the

VBUS discharges to 0.2 V, after the B-Session Valid bit in this

register (GOTGCTL.BSesVld) is cleared. This discharge time

varies between different PHYs and can be obtained from the

PHY vendor.

1'b0: No session request

1'b1: Session request

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_SESREQ_E_NOREQUEST 0x0 No session request
ALT_USB_GLOB_GOTGCTL_SESREQ_E_REQUEST 0x1 Session request

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_SESREQ_E_NOREQUEST   0x0
 
#define ALT_USB_GLOB_GOTGCTL_SESREQ_E_REQUEST   0x1
 
#define ALT_USB_GLOB_GOTGCTL_SESREQ_LSB   1
 
#define ALT_USB_GLOB_GOTGCTL_SESREQ_MSB   1
 
#define ALT_USB_GLOB_GOTGCTL_SESREQ_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_SESREQ_SET_MSK   0x00000002
 
#define ALT_USB_GLOB_GOTGCTL_SESREQ_CLR_MSK   0xfffffffd
 
#define ALT_USB_GLOB_GOTGCTL_SESREQ_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_SESREQ_GET(value)   (((value) & 0x00000002) >> 1)
 
#define ALT_USB_GLOB_GOTGCTL_SESREQ_SET(value)   (((value) << 1) & 0x00000002)
 

Field : vbvalidoven

VBUS Valid Override Enable (VbvalidOvEn)

This bit is used to enable/disable the software to

override the Bvalid signal using the GOTGCTL.VbvalidOvVal.

1'b1 : Internally Bvalid received from the PHY is overridden with GOTGCTL.VbvalidOvVal.

1'b0 : Override is disabled and bvalid signal from the respective PHY selected is used

internally by the core

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_E_DISD 0x0 Override is disabled and bvalid signal from the
: respective PHY selected is used internally by
: the force
ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_E_END 0x1 The vbus-valid signal received from the PHY is
: overridden with GOTGCTL.vbvalidOvVal

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_E_DISD   0x0
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_E_END   0x1
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_LSB   2
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_MSB   2
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_SET_MSK   0x00000004
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_CLR_MSK   0xfffffffb
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_GET(value)   (((value) & 0x00000004) >> 2)
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_SET(value)   (((value) << 2) & 0x00000004)
 

Field : vbvalidovval

VBUS Valid OverrideValue (VbvalidOvVal)

This bit is used to set Override value for vbusvalid

signal when GOTGCTL.VbvalidOvEn is set.

1'b0 : vbusvalid value is 1'b0 when GOTGCTL.VbvalidOvEn =1

1'b1 : vbusvalid value is 1'b1 when GOTGCTL.VbvalidOvEn =1

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_E_SET0 0x0 vbusvalid value when GOTGCTL.VbvalidOvEn = 1
ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_E_SET1 0x1 vbusvalid value when GOTGCTL.VbvalidOvEn is 1

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_E_SET0   0x0
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_E_SET1   0x1
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_LSB   3
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_MSB   3
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_SET_MSK   0x00000008
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_CLR_MSK   0xfffffff7
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_GET(value)   (((value) & 0x00000008) >> 3)
 
#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_SET(value)   (((value) << 3) & 0x00000008)
 

Field : avalidoven

A-Peripheral Session Valid Override Enable (AvalidOvEn)

This bit is used to enable/disable the software to

override the Avalid signal using the GOTGCTL.AvalidOvVal.

1'b1 : Internally Avalid received from the PHY is overridden with GOTGCTL.AvalidOvVal.

1'b0 : Override is disabled and avalid signal from the respective PHY selected is used

internally by the core

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_E_DISD 0x0 Override is disabled and Avalid signal from the
: respective PHY is used internally by the core.
ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_E_END 0x1 Internally Avalid received from the PHY is
: overridden with GOTGCTL.AvalidOvVa

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_E_DISD   0x0
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_E_END   0x1
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_LSB   4
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_MSB   4
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_SET_MSK   0x00000010
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_CLR_MSK   0xffffffef
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_GET(value)   (((value) & 0x00000010) >> 4)
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_SET(value)   (((value) << 4) & 0x00000010)
 

Field : avalidovval

A-Peripheral Session Valid OverrideValue (AvalidOvVal)

This bit is used to set Override value for Avalid signal

when GOTGCTL.AvalidOvEn is set.

1'b0 : Avalid value is 1'b0 when GOTGCTL.AvalidOvEn =1

1'b1 : Avalid value is 1'b1 when GOTGCTL.AvalidOvEn =1

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_E_VALUE0 0x0 Avalid value is 1'b0 when GOTGCTL.BvalidOvEn =1
ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_E_VALUE1 0x1 Avalid value is 1'b1 when GOTGCTL.BvalidOvEn =1

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_E_VALUE0   0x0
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_E_VALUE1   0x1
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_LSB   5
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_MSB   5
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_SET_MSK   0x00000020
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_CLR_MSK   0xffffffdf
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_GET(value)   (((value) & 0x00000020) >> 5)
 
#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_SET(value)   (((value) << 5) & 0x00000020)
 

Field : bvalidoven

B-Peripheral Session Valid Override Enable (BvalidOvEn)

This bit is used to enable/disable the software to

override the Bvalid signal using the GOTGCTL.BvalidOvVal.

1'b1 : Internally Bvalid received from the PHY is overridden with GOTGCTL.BvalidOvVal.

1'b0 : Override is disabled and bvalid signal from the respective PHY selected is used

internally by the force

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_E_DISD 0x0 Override is disabled and bvalid signal from the
: respective PHY selected is used internally by
: the core
ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_E_END 0x1 Internally Bvalid received from the PHY is
: overridden with GOTGCTL.BvalidOvVal

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_E_DISD   0x0
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_E_END   0x1
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_LSB   6
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_MSB   6
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_SET_MSK   0x00000040
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_CLR_MSK   0xffffffbf
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_GET(value)   (((value) & 0x00000040) >> 6)
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_SET(value)   (((value) << 6) & 0x00000040)
 

Field : bvalidovval

B-Peripheral Session Valid OverrideValue (BvalidOvVal)

This bit is used to set Override value for Bvalid

signal when GOTGCTL.BvalidOvEn is set.

1'b0 : Bvalid value is 1'b0 when GOTGCTL.BvalidOvEn =1

1'b1 : Bvalid value is 1'b1 when GOTGCTL.BvalidOvEn =1

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_E_VALUE0 0x0 Bvalid value when GOTGCTL.AvalidOvEn =1
ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_E_VALUE1 0x1 Bvalid value when GOTGCTL.AvalidOvEn =1

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_E_VALUE0   0x0
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_E_VALUE1   0x1
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_LSB   7
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_MSB   7
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_SET_MSK   0x00000080
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_CLR_MSK   0xffffff7f
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_GET(value)   (((value) & 0x00000080) >> 7)
 
#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_SET(value)   (((value) << 7) & 0x00000080)
 

Field : hstnegscs

Mode: Device only

Host Negotiation Success (HstNegScs)

The core sets this bit when host negotiation is successful. The

core clears this bit when the HNP Request (HNPReq) bit in this

register is SET.

1'b0: Host negotiation failure

1'b1: Host negotiation success

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_E_FAIL 0x0 Host negotiation failure
ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_E_SUCCESS 0x1 Host negotiation success

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_E_FAIL   0x0
 
#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_E_SUCCESS   0x1
 
#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_LSB   8
 
#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_MSB   8
 
#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_SET_MSK   0x00000100
 
#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_CLR_MSK   0xfffffeff
 
#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_GET(value)   (((value) & 0x00000100) >> 8)
 
#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_SET(value)   (((value) << 8) & 0x00000100)
 

Field : hnpreq

Mode: Device only

HNP Request (HNPReq)

The application sets this bit to initiate an HNP request to the

connected USB host. The application can clear this bit by writing

a 0 when the Host Negotiation Success Status Change bit in the

OTG Interrupt register (GOTGINT.HstNegSucStsChng) is SET.

The core clears this bit when the HstNegSucStsChng bit is

cleared.

1'b0: No HNP request

1'b1: HNP request

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_HNPREQ_E_DISD 0x0 No HNP request
ALT_USB_GLOB_GOTGCTL_HNPREQ_E_END 0x1 HNP request

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_HNPREQ_E_DISD   0x0
 
#define ALT_USB_GLOB_GOTGCTL_HNPREQ_E_END   0x1
 
#define ALT_USB_GLOB_GOTGCTL_HNPREQ_LSB   9
 
#define ALT_USB_GLOB_GOTGCTL_HNPREQ_MSB   9
 
#define ALT_USB_GLOB_GOTGCTL_HNPREQ_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_HNPREQ_SET_MSK   0x00000200
 
#define ALT_USB_GLOB_GOTGCTL_HNPREQ_CLR_MSK   0xfffffdff
 
#define ALT_USB_GLOB_GOTGCTL_HNPREQ_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_HNPREQ_GET(value)   (((value) & 0x00000200) >> 9)
 
#define ALT_USB_GLOB_GOTGCTL_HNPREQ_SET(value)   (((value) << 9) & 0x00000200)
 

Field : hstsethnpen

Mode: Host only

Host Set HNP Enable (HstSetHNPEn)

The application sets this bit when it has successfully enabled

HNP (using the SetFeature.SetHNPEnable command) on the

connected device.

1'b0: Host Set HNP is not enabled

1'b1: Host Set HNP is enabled

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_E_DISD 0x0 Host Set HNP is not enabled
ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_E_END 0x1 Host Set HNP is enabled

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_E_DISD   0x0
 
#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_E_END   0x1
 
#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_LSB   10
 
#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_MSB   10
 
#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_SET_MSK   0x00000400
 
#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_CLR_MSK   0xfffffbff
 
#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_GET(value)   (((value) & 0x00000400) >> 10)
 
#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_SET(value)   (((value) << 10) & 0x00000400)
 

Field : devhnpen

Mode: Device only

Device HNP Enabled (DevHNPEn)

The application sets this bit when it successfully receives a

SetFeature.SetHNPEnable command from the connected USB

host.

1'b0: HNP is not enabled in the application

1'b1: HNP is enabled in the application

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_DEVHNPEN_E_DISD 0x0 HNP is not enabled in the application
ALT_USB_GLOB_GOTGCTL_DEVHNPEN_E_END 0x1 HNP Enabled

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_E_DISD   0x0
 
#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_E_END   0x1
 
#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_LSB   11
 
#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_MSB   11
 
#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_SET_MSK   0x00000800
 
#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_CLR_MSK   0xfffff7ff
 
#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_GET(value)   (((value) & 0x00000800) >> 11)
 
#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_SET(value)   (((value) << 11) & 0x00000800)
 

Field : ehen

Mode: SRP Capable Host

Embedded Host Enable (EHEn)

1’b1 : Enable Embedded Host Mode.

1’b0: Disable Embedded Host Mode.

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_EHEN_LSB   14
 
#define ALT_USB_GLOB_GOTGCTL_EHEN_MSB   14
 
#define ALT_USB_GLOB_GOTGCTL_EHEN_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_EHEN_SET_MSK   0x00004000
 
#define ALT_USB_GLOB_GOTGCTL_EHEN_CLR_MSK   0xffffbfff
 
#define ALT_USB_GLOB_GOTGCTL_EHEN_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_EHEN_GET(value)   (((value) & 0x00004000) >> 14)
 
#define ALT_USB_GLOB_GOTGCTL_EHEN_SET(value)   (((value) << 14) & 0x00004000)
 

Field : conidsts

Mode: Host and Device

Connector ID Status (ConIDSts)

Indicates the connector ID status on a connect event.

1'b0: The DWC_otg core is in A-Device mode

1'b1: The DWC_otg core is in B-Device mode

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_CONIDSTS_E_MODA 0x0 The DWC_otg core is in A-Device mode
ALT_USB_GLOB_GOTGCTL_CONIDSTS_E_MODB 0x1 The otg core is in B-Device mode

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_E_MODA   0x0
 
#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_E_MODB   0x1
 
#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_LSB   16
 
#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_MSB   16
 
#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_SET_MSK   0x00010000
 
#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_CLR_MSK   0xfffeffff
 
#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_RESET   0x1
 
#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_GET(value)   (((value) & 0x00010000) >> 16)
 
#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_SET(value)   (((value) << 16) & 0x00010000)
 

Field : dbnctime

Mode: Host only

Long/Short Debounce Time (DbncTime)

Indicates the debounce time of a detected connection.

1'b0: Long debounce time, used FOR physical connections

(100 ms + 2.5 micro-sec)

1'b1: Short debounce time, used FOR soft connections (2.5 micro-sec)

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_DBNCTIME_E_LONG 0x0 Long debounce time, used FOR physical
: connections (100 ms + 2.5 s)
ALT_USB_GLOB_GOTGCTL_DBNCTIME_E_SHORT 0x1 Short debounce time, used FOR soft connections
: (2.5 s

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_E_LONG   0x0
 
#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_E_SHORT   0x1
 
#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_LSB   17
 
#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_MSB   17
 
#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_SET_MSK   0x00020000
 
#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_CLR_MSK   0xfffdffff
 
#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_GET(value)   (((value) & 0x00020000) >> 17)
 
#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_SET(value)   (((value) << 17) & 0x00020000)
 

Field : asesvld

Mode: Host only

A-Session Valid (ASesVld)

Indicates the Host mode transceiver status.

1'b0: A-session is not valid

1'b1: A-session is valid

Note: If you do not enabled OTG features (such as SRP and HNP), the

read reset value will be 1.The vbus assigns the values internally for non-

SRP or non-HNP configurations.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_ASESVLD_E_VALID 0x0 A-session is not valid
ALT_USB_GLOB_GOTGCTL_ASESVLD_E_NOTVALID 0x1 A-session is valid

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_ASESVLD_E_VALID   0x0
 
#define ALT_USB_GLOB_GOTGCTL_ASESVLD_E_NOTVALID   0x1
 
#define ALT_USB_GLOB_GOTGCTL_ASESVLD_LSB   18
 
#define ALT_USB_GLOB_GOTGCTL_ASESVLD_MSB   18
 
#define ALT_USB_GLOB_GOTGCTL_ASESVLD_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_ASESVLD_SET_MSK   0x00040000
 
#define ALT_USB_GLOB_GOTGCTL_ASESVLD_CLR_MSK   0xfffbffff
 
#define ALT_USB_GLOB_GOTGCTL_ASESVLD_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_ASESVLD_GET(value)   (((value) & 0x00040000) >> 18)
 
#define ALT_USB_GLOB_GOTGCTL_ASESVLD_SET(value)   (((value) << 18) & 0x00040000)
 

Field : bsesvld

Mode: Device only

B-Session Valid (BSesVld)

Indicates the Device mode transceiver status.

1'b0: B-session is not valid.

1'b1: B-session is valid.

In OTG mode, you can use this bit to determine IF the device is

connected or disconnected.

Note: If you do not enabled OTG features (such as SRP and HNP), the

read reset value will be 1.The vbus assigns the values internally for non-

SRP or non-HNP configurations.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_BSESVLD_E_NOTVALID 0x0 B-session is not valid
ALT_USB_GLOB_GOTGCTL_BSESVLD_E_VALID 0x1 B-session is valid

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_BSESVLD_E_NOTVALID   0x0
 
#define ALT_USB_GLOB_GOTGCTL_BSESVLD_E_VALID   0x1
 
#define ALT_USB_GLOB_GOTGCTL_BSESVLD_LSB   19
 
#define ALT_USB_GLOB_GOTGCTL_BSESVLD_MSB   19
 
#define ALT_USB_GLOB_GOTGCTL_BSESVLD_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_BSESVLD_SET_MSK   0x00080000
 
#define ALT_USB_GLOB_GOTGCTL_BSESVLD_CLR_MSK   0xfff7ffff
 
#define ALT_USB_GLOB_GOTGCTL_BSESVLD_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_BSESVLD_GET(value)   (((value) & 0x00080000) >> 19)
 
#define ALT_USB_GLOB_GOTGCTL_BSESVLD_SET(value)   (((value) << 19) & 0x00080000)
 

Field : otgver

OTG Version (OTGVer)

Indicates the OTG revision.

1'b0: OTG Version 1.3. In this version the core supports Data line

pulsing and VBus pulsing for SRP.

1'b1: OTG Version 2.0. In this version the core supports only Data

line pulsing for SRP.

Field Enumeration Values:

Enum Value Description
ALT_USB_GLOB_GOTGCTL_OTGVER_E_VER13 0x0 OTG Version 1.3. In this version the core
: supports Data line
ALT_USB_GLOB_GOTGCTL_OTGVER_E_VER20 0x1 OTG Version 2.0. In this version the core
: supports only Data line pulsing for SRP

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_OTGVER_E_VER13   0x0
 
#define ALT_USB_GLOB_GOTGCTL_OTGVER_E_VER20   0x1
 
#define ALT_USB_GLOB_GOTGCTL_OTGVER_LSB   20
 
#define ALT_USB_GLOB_GOTGCTL_OTGVER_MSB   20
 
#define ALT_USB_GLOB_GOTGCTL_OTGVER_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_OTGVER_SET_MSK   0x00100000
 
#define ALT_USB_GLOB_GOTGCTL_OTGVER_CLR_MSK   0xffefffff
 
#define ALT_USB_GLOB_GOTGCTL_OTGVER_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_OTGVER_GET(value)   (((value) & 0x00100000) >> 20)
 
#define ALT_USB_GLOB_GOTGCTL_OTGVER_SET(value)   (((value) << 20) & 0x00100000)
 

Field : curmod

Mode: Host and Device

Current Mode of Operation (CurMod)

Indicates the current mode.

1'b0: Device mode

1'b1: Host mode

Field Access Macros:

#define ALT_USB_GLOB_GOTGCTL_CURMOD_LSB   21
 
#define ALT_USB_GLOB_GOTGCTL_CURMOD_MSB   21
 
#define ALT_USB_GLOB_GOTGCTL_CURMOD_WIDTH   1
 
#define ALT_USB_GLOB_GOTGCTL_CURMOD_SET_MSK   0x00200000
 
#define ALT_USB_GLOB_GOTGCTL_CURMOD_CLR_MSK   0xffdfffff
 
#define ALT_USB_GLOB_GOTGCTL_CURMOD_RESET   0x0
 
#define ALT_USB_GLOB_GOTGCTL_CURMOD_GET(value)   (((value) & 0x00200000) >> 21)
 
#define ALT_USB_GLOB_GOTGCTL_CURMOD_SET(value)   (((value) << 21) & 0x00200000)
 

Data Structures

struct  ALT_USB_GLOB_GOTGCTL_s
 

Macros

#define ALT_USB_GLOB_GOTGCTL_RESET   0x00010000
 
#define ALT_USB_GLOB_GOTGCTL_OFST   0x0
 
#define ALT_USB_GLOB_GOTGCTL_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_GLOB_GOTGCTL_OFST))
 

Typedefs

typedef struct
ALT_USB_GLOB_GOTGCTL_s 
ALT_USB_GLOB_GOTGCTL_t
 

Data Structure Documentation

struct ALT_USB_GLOB_GOTGCTL_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_GOTGCTL.

Data Fields
const uint32_t sesreqscs: 1 ALT_USB_GLOB_GOTGCTL_SESREQSCS
uint32_t sesreq: 1 ALT_USB_GLOB_GOTGCTL_SESREQ
uint32_t vbvalidoven: 1 ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN
uint32_t vbvalidovval: 1 ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL
uint32_t avalidoven: 1 ALT_USB_GLOB_GOTGCTL_AVALIDOVEN
uint32_t avalidovval: 1 ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL
uint32_t bvalidoven: 1 ALT_USB_GLOB_GOTGCTL_BVALIDOVEN
uint32_t bvalidovval: 1 ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL
const uint32_t hstnegscs: 1 ALT_USB_GLOB_GOTGCTL_HSTNEGSCS
uint32_t hnpreq: 1 ALT_USB_GLOB_GOTGCTL_HNPREQ
uint32_t hstsethnpen: 1 ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN
uint32_t devhnpen: 1 ALT_USB_GLOB_GOTGCTL_DEVHNPEN
uint32_t __pad0__: 2 UNDEFINED
uint32_t ehen: 1 ALT_USB_GLOB_GOTGCTL_EHEN
uint32_t __pad1__: 1 UNDEFINED
const uint32_t conidsts: 1 ALT_USB_GLOB_GOTGCTL_CONIDSTS
const uint32_t dbnctime: 1 ALT_USB_GLOB_GOTGCTL_DBNCTIME
const uint32_t asesvld: 1 ALT_USB_GLOB_GOTGCTL_ASESVLD
const uint32_t bsesvld: 1 ALT_USB_GLOB_GOTGCTL_BSESVLD
uint32_t otgver: 1 ALT_USB_GLOB_GOTGCTL_OTGVER
const uint32_t curmod: 1 ALT_USB_GLOB_GOTGCTL_CURMOD
uint32_t __pad2__: 10 UNDEFINED

Macro Definitions

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_E_FAIL   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_SESREQSCS

Session request failure

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_E_SUCCESS   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_SESREQSCS

Session request success

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_LSB   0

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

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_MSB   0

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

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_SESREQSCS register field.

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_SET_MSK   0x00000001

The mask used to set the ALT_USB_GLOB_GOTGCTL_SESREQSCS register field value.

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_CLR_MSK   0xfffffffe

The mask used to clear the ALT_USB_GLOB_GOTGCTL_SESREQSCS register field value.

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_SESREQSCS register field.

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_GET (   value)    (((value) & 0x00000001) >> 0)

Extracts the ALT_USB_GLOB_GOTGCTL_SESREQSCS field value from a register.

#define ALT_USB_GLOB_GOTGCTL_SESREQSCS_SET (   value)    (((value) << 0) & 0x00000001)

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

#define ALT_USB_GLOB_GOTGCTL_SESREQ_E_NOREQUEST   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_SESREQ

No session request

#define ALT_USB_GLOB_GOTGCTL_SESREQ_E_REQUEST   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_SESREQ

Session request

#define ALT_USB_GLOB_GOTGCTL_SESREQ_LSB   1

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

#define ALT_USB_GLOB_GOTGCTL_SESREQ_MSB   1

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

#define ALT_USB_GLOB_GOTGCTL_SESREQ_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_SESREQ register field.

#define ALT_USB_GLOB_GOTGCTL_SESREQ_SET_MSK   0x00000002

The mask used to set the ALT_USB_GLOB_GOTGCTL_SESREQ register field value.

#define ALT_USB_GLOB_GOTGCTL_SESREQ_CLR_MSK   0xfffffffd

The mask used to clear the ALT_USB_GLOB_GOTGCTL_SESREQ register field value.

#define ALT_USB_GLOB_GOTGCTL_SESREQ_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_SESREQ register field.

#define ALT_USB_GLOB_GOTGCTL_SESREQ_GET (   value)    (((value) & 0x00000002) >> 1)

Extracts the ALT_USB_GLOB_GOTGCTL_SESREQ field value from a register.

#define ALT_USB_GLOB_GOTGCTL_SESREQ_SET (   value)    (((value) << 1) & 0x00000002)

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

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN

Override is disabled and bvalid signal from the respective PHY selected is used internally by the force

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN

The vbus-valid signal received from the PHY is overridden with GOTGCTL.vbvalidOvVal

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_LSB   2

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

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_MSB   2

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

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN register field.

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_SET_MSK   0x00000004

The mask used to set the ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN register field value.

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_CLR_MSK   0xfffffffb

The mask used to clear the ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN register field value.

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN register field.

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_GET (   value)    (((value) & 0x00000004) >> 2)

Extracts the ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN field value from a register.

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVEN_SET (   value)    (((value) << 2) & 0x00000004)

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

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_E_SET0   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL

vbusvalid value when GOTGCTL.VbvalidOvEn = 1

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_E_SET1   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL

vbusvalid value when GOTGCTL.VbvalidOvEn is 1

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_LSB   3

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

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_MSB   3

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

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL register field.

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_SET_MSK   0x00000008

The mask used to set the ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL register field value.

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_CLR_MSK   0xfffffff7

The mask used to clear the ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL register field value.

#define ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_VBVALIDOVVAL field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_AVALIDOVEN

Override is disabled and Avalid signal from the respective PHY is used internally by the core.

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_AVALIDOVEN

Internally Avalid received from the PHY is overridden with GOTGCTL.AvalidOvVa

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_LSB   4

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

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_MSB   4

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

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_AVALIDOVEN register field.

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_SET_MSK   0x00000010

The mask used to set the ALT_USB_GLOB_GOTGCTL_AVALIDOVEN register field value.

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_CLR_MSK   0xffffffef

The mask used to clear the ALT_USB_GLOB_GOTGCTL_AVALIDOVEN register field value.

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVEN_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_AVALIDOVEN register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_AVALIDOVEN field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_E_VALUE0   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL

Avalid value is 1'b0 when GOTGCTL.BvalidOvEn =1

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_E_VALUE1   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL

Avalid value is 1'b1 when GOTGCTL.BvalidOvEn =1

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_LSB   5

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

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_MSB   5

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

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL register field.

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_SET_MSK   0x00000020

The mask used to set the ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL register field value.

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_CLR_MSK   0xffffffdf

The mask used to clear the ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL register field value.

#define ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_AVALIDOVVAL field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_BVALIDOVEN

Override is disabled and bvalid signal from the respective PHY selected is used internally by the core

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_BVALIDOVEN

Internally Bvalid received from the PHY is overridden with GOTGCTL.BvalidOvVal

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_LSB   6

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

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_MSB   6

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

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_BVALIDOVEN register field.

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_SET_MSK   0x00000040

The mask used to set the ALT_USB_GLOB_GOTGCTL_BVALIDOVEN register field value.

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_CLR_MSK   0xffffffbf

The mask used to clear the ALT_USB_GLOB_GOTGCTL_BVALIDOVEN register field value.

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVEN_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_BVALIDOVEN register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_BVALIDOVEN field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_E_VALUE0   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL

Bvalid value when GOTGCTL.AvalidOvEn =1

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_E_VALUE1   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL

Bvalid value when GOTGCTL.AvalidOvEn =1

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_LSB   7

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

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_MSB   7

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

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL register field.

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_SET_MSK   0x00000080

The mask used to set the ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL register field value.

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_CLR_MSK   0xffffff7f

The mask used to clear the ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL register field value.

#define ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_BVALIDOVVAL field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_E_FAIL   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_HSTNEGSCS

Host negotiation failure

#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_E_SUCCESS   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_HSTNEGSCS

Host negotiation success

#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_LSB   8

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

#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_MSB   8

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

#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_HSTNEGSCS register field.

#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_SET_MSK   0x00000100

The mask used to set the ALT_USB_GLOB_GOTGCTL_HSTNEGSCS register field value.

#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_CLR_MSK   0xfffffeff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_HSTNEGSCS register field value.

#define ALT_USB_GLOB_GOTGCTL_HSTNEGSCS_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_HSTNEGSCS register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_HSTNEGSCS field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_HNPREQ_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_HNPREQ

No HNP request

#define ALT_USB_GLOB_GOTGCTL_HNPREQ_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_HNPREQ

HNP request

#define ALT_USB_GLOB_GOTGCTL_HNPREQ_LSB   9

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

#define ALT_USB_GLOB_GOTGCTL_HNPREQ_MSB   9

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

#define ALT_USB_GLOB_GOTGCTL_HNPREQ_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_HNPREQ register field.

#define ALT_USB_GLOB_GOTGCTL_HNPREQ_SET_MSK   0x00000200

The mask used to set the ALT_USB_GLOB_GOTGCTL_HNPREQ register field value.

#define ALT_USB_GLOB_GOTGCTL_HNPREQ_CLR_MSK   0xfffffdff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_HNPREQ register field value.

#define ALT_USB_GLOB_GOTGCTL_HNPREQ_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_HNPREQ register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_HNPREQ field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN

Host Set HNP is not enabled

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN

Host Set HNP is enabled

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_LSB   10

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

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_MSB   10

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

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN register field.

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_SET_MSK   0x00000400

The mask used to set the ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN register field value.

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_CLR_MSK   0xfffffbff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN register field value.

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN register field.

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_GET (   value)    (((value) & 0x00000400) >> 10)

Extracts the ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN field value from a register.

#define ALT_USB_GLOB_GOTGCTL_HSTSETHNPEN_SET (   value)    (((value) << 10) & 0x00000400)

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

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_E_DISD   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_DEVHNPEN

HNP is not enabled in the application

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_E_END   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_DEVHNPEN

HNP Enabled

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_LSB   11

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

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_MSB   11

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

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_DEVHNPEN register field.

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_SET_MSK   0x00000800

The mask used to set the ALT_USB_GLOB_GOTGCTL_DEVHNPEN register field value.

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_CLR_MSK   0xfffff7ff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_DEVHNPEN register field value.

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_DEVHNPEN register field.

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_GET (   value)    (((value) & 0x00000800) >> 11)

Extracts the ALT_USB_GLOB_GOTGCTL_DEVHNPEN field value from a register.

#define ALT_USB_GLOB_GOTGCTL_DEVHNPEN_SET (   value)    (((value) << 11) & 0x00000800)

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

#define ALT_USB_GLOB_GOTGCTL_EHEN_LSB   14

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

#define ALT_USB_GLOB_GOTGCTL_EHEN_MSB   14

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

#define ALT_USB_GLOB_GOTGCTL_EHEN_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_EHEN register field.

#define ALT_USB_GLOB_GOTGCTL_EHEN_SET_MSK   0x00004000

The mask used to set the ALT_USB_GLOB_GOTGCTL_EHEN register field value.

#define ALT_USB_GLOB_GOTGCTL_EHEN_CLR_MSK   0xffffbfff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_EHEN register field value.

#define ALT_USB_GLOB_GOTGCTL_EHEN_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_EHEN register field.

#define ALT_USB_GLOB_GOTGCTL_EHEN_GET (   value)    (((value) & 0x00004000) >> 14)

Extracts the ALT_USB_GLOB_GOTGCTL_EHEN field value from a register.

#define ALT_USB_GLOB_GOTGCTL_EHEN_SET (   value)    (((value) << 14) & 0x00004000)

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

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_E_MODA   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_CONIDSTS

The DWC_otg core is in A-Device mode

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_E_MODB   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_CONIDSTS

The otg core is in B-Device mode

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_LSB   16

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

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_MSB   16

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

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_CONIDSTS register field.

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_SET_MSK   0x00010000

The mask used to set the ALT_USB_GLOB_GOTGCTL_CONIDSTS register field value.

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_CLR_MSK   0xfffeffff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_CONIDSTS register field value.

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_RESET   0x1

The reset value of the ALT_USB_GLOB_GOTGCTL_CONIDSTS register field.

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_GET (   value)    (((value) & 0x00010000) >> 16)

Extracts the ALT_USB_GLOB_GOTGCTL_CONIDSTS field value from a register.

#define ALT_USB_GLOB_GOTGCTL_CONIDSTS_SET (   value)    (((value) << 16) & 0x00010000)

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

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_E_LONG   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_DBNCTIME

Long debounce time, used FOR physical connections (100 ms + 2.5 s)

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_E_SHORT   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_DBNCTIME

Short debounce time, used FOR soft connections (2.5 s

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_LSB   17

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

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_MSB   17

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

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_DBNCTIME register field.

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_SET_MSK   0x00020000

The mask used to set the ALT_USB_GLOB_GOTGCTL_DBNCTIME register field value.

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_CLR_MSK   0xfffdffff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_DBNCTIME register field value.

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_DBNCTIME register field.

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_GET (   value)    (((value) & 0x00020000) >> 17)

Extracts the ALT_USB_GLOB_GOTGCTL_DBNCTIME field value from a register.

#define ALT_USB_GLOB_GOTGCTL_DBNCTIME_SET (   value)    (((value) << 17) & 0x00020000)

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

#define ALT_USB_GLOB_GOTGCTL_ASESVLD_E_VALID   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_ASESVLD

A-session is not valid

#define ALT_USB_GLOB_GOTGCTL_ASESVLD_E_NOTVALID   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_ASESVLD

A-session is valid

#define ALT_USB_GLOB_GOTGCTL_ASESVLD_LSB   18

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

#define ALT_USB_GLOB_GOTGCTL_ASESVLD_MSB   18

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

#define ALT_USB_GLOB_GOTGCTL_ASESVLD_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_ASESVLD register field.

#define ALT_USB_GLOB_GOTGCTL_ASESVLD_SET_MSK   0x00040000

The mask used to set the ALT_USB_GLOB_GOTGCTL_ASESVLD register field value.

#define ALT_USB_GLOB_GOTGCTL_ASESVLD_CLR_MSK   0xfffbffff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_ASESVLD register field value.

#define ALT_USB_GLOB_GOTGCTL_ASESVLD_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_ASESVLD register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_ASESVLD field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_BSESVLD_E_NOTVALID   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_BSESVLD

B-session is not valid

#define ALT_USB_GLOB_GOTGCTL_BSESVLD_E_VALID   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_BSESVLD

B-session is valid

#define ALT_USB_GLOB_GOTGCTL_BSESVLD_LSB   19

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

#define ALT_USB_GLOB_GOTGCTL_BSESVLD_MSB   19

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

#define ALT_USB_GLOB_GOTGCTL_BSESVLD_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_BSESVLD register field.

#define ALT_USB_GLOB_GOTGCTL_BSESVLD_SET_MSK   0x00080000

The mask used to set the ALT_USB_GLOB_GOTGCTL_BSESVLD register field value.

#define ALT_USB_GLOB_GOTGCTL_BSESVLD_CLR_MSK   0xfff7ffff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_BSESVLD register field value.

#define ALT_USB_GLOB_GOTGCTL_BSESVLD_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_BSESVLD register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_BSESVLD field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_OTGVER_E_VER13   0x0

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_OTGVER

OTG Version 1.3. In this version the core supports Data line

#define ALT_USB_GLOB_GOTGCTL_OTGVER_E_VER20   0x1

Enumerated value for register field ALT_USB_GLOB_GOTGCTL_OTGVER

OTG Version 2.0. In this version the core supports only Data line pulsing for SRP

#define ALT_USB_GLOB_GOTGCTL_OTGVER_LSB   20

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

#define ALT_USB_GLOB_GOTGCTL_OTGVER_MSB   20

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

#define ALT_USB_GLOB_GOTGCTL_OTGVER_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_OTGVER register field.

#define ALT_USB_GLOB_GOTGCTL_OTGVER_SET_MSK   0x00100000

The mask used to set the ALT_USB_GLOB_GOTGCTL_OTGVER register field value.

#define ALT_USB_GLOB_GOTGCTL_OTGVER_CLR_MSK   0xffefffff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_OTGVER register field value.

#define ALT_USB_GLOB_GOTGCTL_OTGVER_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_OTGVER register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_OTGVER field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_CURMOD_LSB   21

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

#define ALT_USB_GLOB_GOTGCTL_CURMOD_MSB   21

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

#define ALT_USB_GLOB_GOTGCTL_CURMOD_WIDTH   1

The width in bits of the ALT_USB_GLOB_GOTGCTL_CURMOD register field.

#define ALT_USB_GLOB_GOTGCTL_CURMOD_SET_MSK   0x00200000

The mask used to set the ALT_USB_GLOB_GOTGCTL_CURMOD register field value.

#define ALT_USB_GLOB_GOTGCTL_CURMOD_CLR_MSK   0xffdfffff

The mask used to clear the ALT_USB_GLOB_GOTGCTL_CURMOD register field value.

#define ALT_USB_GLOB_GOTGCTL_CURMOD_RESET   0x0

The reset value of the ALT_USB_GLOB_GOTGCTL_CURMOD register field.

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

Extracts the ALT_USB_GLOB_GOTGCTL_CURMOD field value from a register.

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

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

#define ALT_USB_GLOB_GOTGCTL_RESET   0x00010000

The reset value of the ALT_USB_GLOB_GOTGCTL register.

#define ALT_USB_GLOB_GOTGCTL_OFST   0x0

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

#define ALT_USB_GLOB_GOTGCTL_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_GLOB_GOTGCTL_OFST))

The address of the ALT_USB_GLOB_GOTGCTL register.

Typedef Documentation

The typedef declaration for register ALT_USB_GLOB_GOTGCTL.