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

Description

The OTG Control and Status register controls the behavior and reflects the status of the OTG function.

Register Layout

Bits Access Reset Description
[0] R 0x0 Session Request Success
[1] RW 0x0 Session Request
[2] RW 0x0 VBUS Valid Override Enable
[3] RW 0x0 VBUS Valid Override Value
[4] RW 0x0 A-Peripheral Session Valid Override Enable
[5] RW 0x0 A-Peripheral Session Valid OverrideValue
[6] RW 0x0 B-Peripheral Session Valid Override Enable
[7] RW 0x0 B-Peripheral Session Valid OverrideValue
[8] R 0x0 Host Negotiation Success
[9] RW 0x0 HNP Request
[10] RW 0x0 Host Set HNP Enable
[11] RW 0x0 Device HNP Enabled
[15:12] ??? 0x0 UNDEFINED
[16] R 0x1 Connector ID Status
[17] R 0x0 Long Short Debounce Time
[18] R 0x0 A-Session Valid
[19] R 0x0 B-Session Valid
[20] RW 0x0 OTG Version
[31:21] ??? 0x0 UNDEFINED

Field : Session Request Success - sesreqscs

This bit is set when a session request initiation is successful. This bit is valid only For Device Only configuration when OTG_MODE == 3 or OTG_MODE == 4. Applies for device only.

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 : 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.

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 : VBUS Valid Override Enable - vbvalidoven

This bit is used to enable/disable the software to override the vbus-valid signal using the GOTGCTL.vbvalidOvVal..

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 : VBUS Valid Override Value - vbvalidovval

This bit is used to set Override value for vbus valid signal when GOTGCTL.VbvalidOvEn is set.

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 : 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.

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 : A-Peripheral Session Valid OverrideValue - avalidovval

This bit is used to set Override value for Avalid signal when GOTGCTL.BvalidOvEn is set.

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 : 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.

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 : B-Peripheral Session Valid OverrideValue - bvalidovval

This bit is used to set Override value for Bvalid signalwhen GOTGCTL.BvalidOvEn is set.

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 : Host Negotiation Success - 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.

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 : HNP Request - hnpreq

Mode: Device only. 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 iscleared.

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 : Host Set HNP Enable - hstsethnpen

Mode: Host only. The application sets this bit when it has successfully enabled HNP (using the SetFeature.SetHNPEnable command) on the connected device.

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 : Device HNP Enabled - devhnpen

Mode: Device only. The application sets this bit when it successfully receives a SetFeature.SetHNPEnable command from the connected USB host.

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 : Connector ID Status - conidsts

Mode: Host and Device. Indicates the connector ID status on a connect event.This bit is valid only for Host and 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 : Long Short Debounce Time - dbnctime

Mode: Host only. Indicates the debounce time of a detected connection.

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 : A-Session Valid - asesvld

Mode: Host only. Indicates the Host mode transceiver status. 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 : B-Session Valid - bsesvld

Mode: Device only. Indicates the Device mode transceiver status. In OTG mode, you can use this bit to determine IF the device is connected or disconnected. If you do not enable 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 : OTG Version - otgver

Indicates the OTG revision. In OTG Version 1.3. the core supports Data line pulsing and VBus pulsing for SRP. In OTG Version 2.0 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)
 

Data Structures

struct  ALT_USB_GLOB_GOTGCTL_s
 

Macros

#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 Session Request Success
uint32_t sesreq: 1 Session Request
uint32_t vbvalidoven: 1 VBUS Valid Override Enable
uint32_t vbvalidovval: 1 VBUS Valid Override Value
uint32_t avalidoven: 1 A-Peripheral Session Valid Override Enable
uint32_t avalidovval: 1 A-Peripheral Session Valid OverrideValue
uint32_t bvalidoven: 1 B-Peripheral Session Valid Override Enable
uint32_t bvalidovval: 1 B-Peripheral Session Valid OverrideValue
const uint32_t hstnegscs: 1 Host Negotiation Success
uint32_t hnpreq: 1 HNP Request
uint32_t hstsethnpen: 1 Host Set HNP Enable
uint32_t devhnpen: 1 Device HNP Enabled
uint32_t __pad0__: 4 UNDEFINED
const uint32_t conidsts: 1 Connector ID Status
const uint32_t dbnctime: 1 Long Short Debounce Time
const uint32_t asesvld: 1 A-Session Valid
const uint32_t bsesvld: 1 B-Session Valid
uint32_t otgver: 1 OTG Version
uint32_t __pad1__: 11 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_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_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.