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

Description

This register is available only in Host mode. Currently, the OTG Host supports only one port. A single register holds USB port-related information such as USB reset, enable, suspend, resume, connect status, and test mode for each port.The R_SS_WC bits in this register can trigger an interrupt to the application through the Host Port Interrupt bit of the Core Interrupt register (GINTSTS.PrtInt). On a Port Interrupt, the application must read this register and clear the bit that caused the interrupt. for the R_SS_WC bits, the application must write a 1 to the bit to clear the interrupt

Register Layout

Bits Access Reset Description
[0] R 0x0 Port Connect Status
[1] R 0x0 Port Connect Detected
[2] R 0x0 Port Enabl
[3] R 0x0 Port Enable Disable Change
[4] R 0x0 Port Overcurrent Active
[5] R 0x0 Port Overcurrent Change
[6] RW 0x0 Port Resume
[7] R 0x0 Port Suspend
[8] RW 0x0 Port Reset
[9] ??? 0x0 UNDEFINED
[11:10] R 0x0 Port Line Status
[12] RW 0x0 Port Power
[16:13] RW 0x0 Port Test Control
[18:17] R 0x0 Port Speed
[31:19] ??? 0x0 UNDEFINED

Field : Port Connect Status - prtconnsts

Defines whether port is attached.

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTCONNSTS_E_NOTATTACHED 0x0 No device is attached to the port
ALT_USB_HOST_HPRT_PRTCONNSTS_E_ATTACHED 0x1 A device is attached to the port

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTCONNSTS_E_NOTATTACHED   0x0
 
#define ALT_USB_HOST_HPRT_PRTCONNSTS_E_ATTACHED   0x1
 
#define ALT_USB_HOST_HPRT_PRTCONNSTS_LSB   0
 
#define ALT_USB_HOST_HPRT_PRTCONNSTS_MSB   0
 
#define ALT_USB_HOST_HPRT_PRTCONNSTS_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTCONNSTS_SET_MSK   0x00000001
 
#define ALT_USB_HOST_HPRT_PRTCONNSTS_CLR_MSK   0xfffffffe
 
#define ALT_USB_HOST_HPRT_PRTCONNSTS_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTCONNSTS_GET(value)   (((value) & 0x00000001) >> 0)
 
#define ALT_USB_HOST_HPRT_PRTCONNSTS_SET(value)   (((value) << 0) & 0x00000001)
 

Field : Port Connect Detected - PrtConnDet

The core sets this bit when a device connection is detected to trigger an interrupt to the application using the Host Port Interrupt bit of the Core Interrupt register (GINTSTS.PrtInt). This bit can be set only by the core and the application should write 1 to clear it.The application must write a 1 to this bit to clear the interrupt.

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTCONNDET_E_ACT 0x0 Device connection detected
ALT_USB_HOST_HPRT_PRTCONNDET_E_INACT 0x1 No device connection detected

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTCONNDET_E_ACT   0x0
 
#define ALT_USB_HOST_HPRT_PRTCONNDET_E_INACT   0x1
 
#define ALT_USB_HOST_HPRT_PRTCONNDET_LSB   1
 
#define ALT_USB_HOST_HPRT_PRTCONNDET_MSB   1
 
#define ALT_USB_HOST_HPRT_PRTCONNDET_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTCONNDET_SET_MSK   0x00000002
 
#define ALT_USB_HOST_HPRT_PRTCONNDET_CLR_MSK   0xfffffffd
 
#define ALT_USB_HOST_HPRT_PRTCONNDET_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTCONNDET_GET(value)   (((value) & 0x00000002) >> 1)
 
#define ALT_USB_HOST_HPRT_PRTCONNDET_SET(value)   (((value) << 1) & 0x00000002)
 

Field : Port Enabl - prtena

A port is enabled only by the core after a reset sequence, and is disabled by an overcurrent condition, a disconnect condition, or by the application clearing this bit. The application cannot Set this bit by a register write. It can only clear it to disable the port by writing 1. This bit does not trigger any interrupt to the application.

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTENA_E_DISD 0x0 Port disabled
ALT_USB_HOST_HPRT_PRTENA_E_END 0x1 Port enabled

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTENA_E_DISD   0x0
 
#define ALT_USB_HOST_HPRT_PRTENA_E_END   0x1
 
#define ALT_USB_HOST_HPRT_PRTENA_LSB   2
 
#define ALT_USB_HOST_HPRT_PRTENA_MSB   2
 
#define ALT_USB_HOST_HPRT_PRTENA_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTENA_SET_MSK   0x00000004
 
#define ALT_USB_HOST_HPRT_PRTENA_CLR_MSK   0xfffffffb
 
#define ALT_USB_HOST_HPRT_PRTENA_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTENA_GET(value)   (((value) & 0x00000004) >> 2)
 
#define ALT_USB_HOST_HPRT_PRTENA_SET(value)   (((value) << 2) & 0x00000004)
 

Field : Port Enable Disable Change - prtenchng

The core sets this bit when the status of the Port Enable bit [2] of this register changes. This bit can be set only by the core and the application should write 1 to clear it.

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTENCHNG_E_INACT 0x0 Port Enable bit 2 no change
ALT_USB_HOST_HPRT_PRTENCHNG_E_ACT 0x1 Port Enable bit 2 changed

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTENCHNG_E_INACT   0x0
 
#define ALT_USB_HOST_HPRT_PRTENCHNG_E_ACT   0x1
 
#define ALT_USB_HOST_HPRT_PRTENCHNG_LSB   3
 
#define ALT_USB_HOST_HPRT_PRTENCHNG_MSB   3
 
#define ALT_USB_HOST_HPRT_PRTENCHNG_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTENCHNG_SET_MSK   0x00000008
 
#define ALT_USB_HOST_HPRT_PRTENCHNG_CLR_MSK   0xfffffff7
 
#define ALT_USB_HOST_HPRT_PRTENCHNG_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTENCHNG_GET(value)   (((value) & 0x00000008) >> 3)
 
#define ALT_USB_HOST_HPRT_PRTENCHNG_SET(value)   (((value) << 3) & 0x00000008)
 

Field : Port Overcurrent Active - prtovrcurract

Indicates the overcurrent condition of the port. 0x0: No overcurrent condition 0x1: Overcurrent condition

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTOVRCURRACT_E_INACT 0x0 No overcurrent condition
ALT_USB_HOST_HPRT_PRTOVRCURRACT_E_ACT 0x1 Overcurrent condition

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_E_INACT   0x0
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_E_ACT   0x1
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_LSB   4
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_MSB   4
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_SET_MSK   0x00000010
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_CLR_MSK   0xffffffef
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_GET(value)   (((value) & 0x00000010) >> 4)
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_SET(value)   (((value) << 4) & 0x00000010)
 

Field : Port Overcurrent Change - prtovrcurrchng

The core sets this bit when the status of the PortOvercurrent Active bit (bit 4) in this register changes.This bit can be set only by the core and the application should write 1 to clear it

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_E_INACT 0x0 Status of port overcurrent no change
ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_E_ACT 0x1 Status of port overcurrent changed

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_E_INACT   0x0
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_E_ACT   0x1
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_LSB   5
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_MSB   5
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_SET_MSK   0x00000020
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_CLR_MSK   0xffffffdf
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_GET(value)   (((value) & 0x00000020) >> 5)
 
#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_SET(value)   (((value) << 5) & 0x00000020)
 

Field : Port Resume - prtres

The application sets this bit to drive resume signaling on the port. The core continues to drive the resume signal until the application clears this bit. If the core detects a USB remote wakeup sequence, as indicated by the Port Resume/Remote Wakeup Detected Interrupt bit of the Core Interrupt register (GINTSTS.WkUpInt), the core starts driving resume signaling without application intervention and clears this bit when it detects a disconnect condition. The read value of this bit indicates whether the core is currently drivingresume signaling. When LPM is enabled and the core is in the L1 (Sleep) state, setting this bit results in the following behavior:

The core continues to drive the resume signal until a pre-determined time specified in the GLPMCFG.HIRD_Thres[3:0] field. If the core detects a USB remote wakeup sequence, as indicated by the Port L1 Resume/Remote L1 Wakeup Detected Interrupt bit of the Core Interrupt register (GINTSTS.L1WkUpInt), the core starts driving resume signaling without application intervention and clears this bit at the end of the resume. The read value of this bit indicates whether the core is currently driving resume signaling.

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTRES_E_NORESUME 0x0 No resume driven
ALT_USB_HOST_HPRT_PRTRES_E_RESUME 0x1 Resume driven

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTRES_E_NORESUME   0x0
 
#define ALT_USB_HOST_HPRT_PRTRES_E_RESUME   0x1
 
#define ALT_USB_HOST_HPRT_PRTRES_LSB   6
 
#define ALT_USB_HOST_HPRT_PRTRES_MSB   6
 
#define ALT_USB_HOST_HPRT_PRTRES_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTRES_SET_MSK   0x00000040
 
#define ALT_USB_HOST_HPRT_PRTRES_CLR_MSK   0xffffffbf
 
#define ALT_USB_HOST_HPRT_PRTRES_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTRES_GET(value)   (((value) & 0x00000040) >> 6)
 
#define ALT_USB_HOST_HPRT_PRTRES_SET(value)   (((value) << 6) & 0x00000040)
 

Field : Port Suspend - prtsusp

The application sets this bit to put this port in Suspend mode. The core only stops sending SOFs when this is Set. To stop the PHY clock, the application must Set the Port Clock Stop bit, which asserts the suspend input pin of the PHY. The read value of this bit reflects the current suspend status of the port. This bit is cleared by the core after a remote wakeup signal is detected or the application sets the Port Reset bit or Port Resume bit in this register or the Resume/Remote Wakeup Detected Interrupt bit or Disconnect Detected Interrupt bit in the Core Interrupt register (GINTSTS.WkUpInt or GINTSTS.DisconnInt, respectively). This bit is cleared by the core even if there is no device connected to the Host.

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTSUSP_E_INACT 0x0 Port not in Suspend mode
ALT_USB_HOST_HPRT_PRTSUSP_E_ACT 0x1 Port in Suspend mode

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTSUSP_E_INACT   0x0
 
#define ALT_USB_HOST_HPRT_PRTSUSP_E_ACT   0x1
 
#define ALT_USB_HOST_HPRT_PRTSUSP_LSB   7
 
#define ALT_USB_HOST_HPRT_PRTSUSP_MSB   7
 
#define ALT_USB_HOST_HPRT_PRTSUSP_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTSUSP_SET_MSK   0x00000080
 
#define ALT_USB_HOST_HPRT_PRTSUSP_CLR_MSK   0xffffff7f
 
#define ALT_USB_HOST_HPRT_PRTSUSP_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTSUSP_GET(value)   (((value) & 0x00000080) >> 7)
 
#define ALT_USB_HOST_HPRT_PRTSUSP_SET(value)   (((value) << 7) & 0x00000080)
 

Field : Port Reset - prtrst

When the application sets this bit, a reset sequence is started on this port. The application must time the reset period and clear this bit after the reset sequence is complete. The application must leave this bit Set for at least a minimum duration mentioned below to start a reset on the port. The application can leave it Set for another 10 ms in addition to the required minimum duration, before clearing the bit, even though there is no maximum limit set by theUSB standard. This bit is cleared by the core even if there is no device connected to the Host.

High speed: 50 ms

Full speed/Low speed: 10 ms

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTRST_E_DISD 0x0 Port not in reset
ALT_USB_HOST_HPRT_PRTRST_E_END 0x1 Port in reset

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTRST_E_DISD   0x0
 
#define ALT_USB_HOST_HPRT_PRTRST_E_END   0x1
 
#define ALT_USB_HOST_HPRT_PRTRST_LSB   8
 
#define ALT_USB_HOST_HPRT_PRTRST_MSB   8
 
#define ALT_USB_HOST_HPRT_PRTRST_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTRST_SET_MSK   0x00000100
 
#define ALT_USB_HOST_HPRT_PRTRST_CLR_MSK   0xfffffeff
 
#define ALT_USB_HOST_HPRT_PRTRST_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTRST_GET(value)   (((value) & 0x00000100) >> 8)
 
#define ALT_USB_HOST_HPRT_PRTRST_SET(value)   (((value) << 8) & 0x00000100)
 

Field : Port Line Status - prtlnsts

Indicates the current logic level USB data lines. Bit [10]: Logic level of D+ Bit [11]: Logic level of D-

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTLNSTS_E_PLUSD 0x1 Logic level of D+
ALT_USB_HOST_HPRT_PRTLNSTS_E_MINUSD 0x2 Logic level of D-

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTLNSTS_E_PLUSD   0x1
 
#define ALT_USB_HOST_HPRT_PRTLNSTS_E_MINUSD   0x2
 
#define ALT_USB_HOST_HPRT_PRTLNSTS_LSB   10
 
#define ALT_USB_HOST_HPRT_PRTLNSTS_MSB   11
 
#define ALT_USB_HOST_HPRT_PRTLNSTS_WIDTH   2
 
#define ALT_USB_HOST_HPRT_PRTLNSTS_SET_MSK   0x00000c00
 
#define ALT_USB_HOST_HPRT_PRTLNSTS_CLR_MSK   0xfffff3ff
 
#define ALT_USB_HOST_HPRT_PRTLNSTS_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTLNSTS_GET(value)   (((value) & 0x00000c00) >> 10)
 
#define ALT_USB_HOST_HPRT_PRTLNSTS_SET(value)   (((value) << 10) & 0x00000c00)
 

Field : Port Power - prtpwr

The application uses this field to control power to this port, and the core can clear this bit on an over current condition.

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTPWR_E_OFF 0x0 Power off
ALT_USB_HOST_HPRT_PRTPWR_E_ON 0x1 Power on

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTPWR_E_OFF   0x0
 
#define ALT_USB_HOST_HPRT_PRTPWR_E_ON   0x1
 
#define ALT_USB_HOST_HPRT_PRTPWR_LSB   12
 
#define ALT_USB_HOST_HPRT_PRTPWR_MSB   12
 
#define ALT_USB_HOST_HPRT_PRTPWR_WIDTH   1
 
#define ALT_USB_HOST_HPRT_PRTPWR_SET_MSK   0x00001000
 
#define ALT_USB_HOST_HPRT_PRTPWR_CLR_MSK   0xffffefff
 
#define ALT_USB_HOST_HPRT_PRTPWR_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTPWR_GET(value)   (((value) & 0x00001000) >> 12)
 
#define ALT_USB_HOST_HPRT_PRTPWR_SET(value)   (((value) << 12) & 0x00001000)
 

Field : Port Test Control - prttstctl

The application writes a nonzero value to this field to put the port into a Test mode, and the corresponding pattern is signaled on the port.

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTTSTCTL_E_DISD 0x0 Test mode disabled
ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTJ 0x1 Test_J mode
ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTK 0x2 Test_K mode
ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTSN 0x3 Test_SE0_NAK mode
ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTPM 0x4 Test_Packet mode
ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTFENB 0x5 Test_force_Enable

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_DISD   0x0
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTJ   0x1
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTK   0x2
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTSN   0x3
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTPM   0x4
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTFENB   0x5
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_LSB   13
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_MSB   16
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_WIDTH   4
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_SET_MSK   0x0001e000
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_CLR_MSK   0xfffe1fff
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_GET(value)   (((value) & 0x0001e000) >> 13)
 
#define ALT_USB_HOST_HPRT_PRTTSTCTL_SET(value)   (((value) << 13) & 0x0001e000)
 

Field : Port Speed - prtspd

Indicates the speed of the device attached to this port.

Field Enumeration Values:

Enum Value Description
ALT_USB_HOST_HPRT_PRTSPD_E_HIGHSPD 0x0 High speed
ALT_USB_HOST_HPRT_PRTSPD_E_FULLSPD 0x1 Full speed
ALT_USB_HOST_HPRT_PRTSPD_E_LOWSPD 0x2 Low speed
ALT_USB_HOST_HPRT_PRTSPD_E_RSVD 0x3 Reserved

Field Access Macros:

#define ALT_USB_HOST_HPRT_PRTSPD_E_HIGHSPD   0x0
 
#define ALT_USB_HOST_HPRT_PRTSPD_E_FULLSPD   0x1
 
#define ALT_USB_HOST_HPRT_PRTSPD_E_LOWSPD   0x2
 
#define ALT_USB_HOST_HPRT_PRTSPD_E_RSVD   0x3
 
#define ALT_USB_HOST_HPRT_PRTSPD_LSB   17
 
#define ALT_USB_HOST_HPRT_PRTSPD_MSB   18
 
#define ALT_USB_HOST_HPRT_PRTSPD_WIDTH   2
 
#define ALT_USB_HOST_HPRT_PRTSPD_SET_MSK   0x00060000
 
#define ALT_USB_HOST_HPRT_PRTSPD_CLR_MSK   0xfff9ffff
 
#define ALT_USB_HOST_HPRT_PRTSPD_RESET   0x0
 
#define ALT_USB_HOST_HPRT_PRTSPD_GET(value)   (((value) & 0x00060000) >> 17)
 
#define ALT_USB_HOST_HPRT_PRTSPD_SET(value)   (((value) << 17) & 0x00060000)
 

Data Structures

struct  ALT_USB_HOST_HPRT_s
 

Macros

#define ALT_USB_HOST_HPRT_OFST   0x40
 
#define ALT_USB_HOST_HPRT_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_HOST_HPRT_OFST))
 

Typedefs

typedef struct ALT_USB_HOST_HPRT_s ALT_USB_HOST_HPRT_t
 

Data Structure Documentation

struct ALT_USB_HOST_HPRT_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_HOST_HPRT.

Data Fields
const uint32_t prtconnsts: 1 Port Connect Status
const uint32_t PrtConnDet: 1 Port Connect Detected
const uint32_t prtena: 1 Port Enabl
const uint32_t prtenchng: 1 Port Enable Disable Change
const uint32_t prtovrcurract: 1 Port Overcurrent Active
const uint32_t prtovrcurrchng: 1 Port Overcurrent Change
uint32_t prtres: 1 Port Resume
const uint32_t prtsusp: 1 Port Suspend
uint32_t prtrst: 1 Port Reset
uint32_t __pad0__: 1 UNDEFINED
const uint32_t prtlnsts: 2 Port Line Status
uint32_t prtpwr: 1 Port Power
uint32_t prttstctl: 4 Port Test Control
const uint32_t prtspd: 2 Port Speed
uint32_t __pad1__: 13 UNDEFINED

Macro Definitions

#define ALT_USB_HOST_HPRT_PRTCONNSTS_E_NOTATTACHED   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTCONNSTS

No device is attached to the port

#define ALT_USB_HOST_HPRT_PRTCONNSTS_E_ATTACHED   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTCONNSTS

A device is attached to the port

#define ALT_USB_HOST_HPRT_PRTCONNSTS_LSB   0

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

#define ALT_USB_HOST_HPRT_PRTCONNSTS_MSB   0

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

#define ALT_USB_HOST_HPRT_PRTCONNSTS_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTCONNSTS register field.

#define ALT_USB_HOST_HPRT_PRTCONNSTS_SET_MSK   0x00000001

The mask used to set the ALT_USB_HOST_HPRT_PRTCONNSTS register field value.

#define ALT_USB_HOST_HPRT_PRTCONNSTS_CLR_MSK   0xfffffffe

The mask used to clear the ALT_USB_HOST_HPRT_PRTCONNSTS register field value.

#define ALT_USB_HOST_HPRT_PRTCONNSTS_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTCONNSTS register field.

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

Extracts the ALT_USB_HOST_HPRT_PRTCONNSTS field value from a register.

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

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

#define ALT_USB_HOST_HPRT_PRTCONNDET_E_ACT   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTCONNDET

Device connection detected

#define ALT_USB_HOST_HPRT_PRTCONNDET_E_INACT   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTCONNDET

No device connection detected

#define ALT_USB_HOST_HPRT_PRTCONNDET_LSB   1

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

#define ALT_USB_HOST_HPRT_PRTCONNDET_MSB   1

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

#define ALT_USB_HOST_HPRT_PRTCONNDET_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTCONNDET register field.

#define ALT_USB_HOST_HPRT_PRTCONNDET_SET_MSK   0x00000002

The mask used to set the ALT_USB_HOST_HPRT_PRTCONNDET register field value.

#define ALT_USB_HOST_HPRT_PRTCONNDET_CLR_MSK   0xfffffffd

The mask used to clear the ALT_USB_HOST_HPRT_PRTCONNDET register field value.

#define ALT_USB_HOST_HPRT_PRTCONNDET_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTCONNDET register field.

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

Extracts the ALT_USB_HOST_HPRT_PRTCONNDET field value from a register.

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

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

#define ALT_USB_HOST_HPRT_PRTENA_E_DISD   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTENA

Port disabled

#define ALT_USB_HOST_HPRT_PRTENA_E_END   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTENA

Port enabled

#define ALT_USB_HOST_HPRT_PRTENA_LSB   2

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

#define ALT_USB_HOST_HPRT_PRTENA_MSB   2

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

#define ALT_USB_HOST_HPRT_PRTENA_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTENA register field.

#define ALT_USB_HOST_HPRT_PRTENA_SET_MSK   0x00000004

The mask used to set the ALT_USB_HOST_HPRT_PRTENA register field value.

#define ALT_USB_HOST_HPRT_PRTENA_CLR_MSK   0xfffffffb

The mask used to clear the ALT_USB_HOST_HPRT_PRTENA register field value.

#define ALT_USB_HOST_HPRT_PRTENA_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTENA register field.

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

Extracts the ALT_USB_HOST_HPRT_PRTENA field value from a register.

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

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

#define ALT_USB_HOST_HPRT_PRTENCHNG_E_INACT   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTENCHNG

Port Enable bit 2 no change

#define ALT_USB_HOST_HPRT_PRTENCHNG_E_ACT   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTENCHNG

Port Enable bit 2 changed

#define ALT_USB_HOST_HPRT_PRTENCHNG_LSB   3

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

#define ALT_USB_HOST_HPRT_PRTENCHNG_MSB   3

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

#define ALT_USB_HOST_HPRT_PRTENCHNG_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTENCHNG register field.

#define ALT_USB_HOST_HPRT_PRTENCHNG_SET_MSK   0x00000008

The mask used to set the ALT_USB_HOST_HPRT_PRTENCHNG register field value.

#define ALT_USB_HOST_HPRT_PRTENCHNG_CLR_MSK   0xfffffff7

The mask used to clear the ALT_USB_HOST_HPRT_PRTENCHNG register field value.

#define ALT_USB_HOST_HPRT_PRTENCHNG_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTENCHNG register field.

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

Extracts the ALT_USB_HOST_HPRT_PRTENCHNG field value from a register.

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

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

#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_E_INACT   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTOVRCURRACT

No overcurrent condition

#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_E_ACT   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTOVRCURRACT

Overcurrent condition

#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_LSB   4

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

#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_MSB   4

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

#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTOVRCURRACT register field.

#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_SET_MSK   0x00000010

The mask used to set the ALT_USB_HOST_HPRT_PRTOVRCURRACT register field value.

#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_CLR_MSK   0xffffffef

The mask used to clear the ALT_USB_HOST_HPRT_PRTOVRCURRACT register field value.

#define ALT_USB_HOST_HPRT_PRTOVRCURRACT_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTOVRCURRACT register field.

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

Extracts the ALT_USB_HOST_HPRT_PRTOVRCURRACT field value from a register.

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

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

#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_E_INACT   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTOVRCURRCHNG

Status of port overcurrent no change

#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_E_ACT   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTOVRCURRCHNG

Status of port overcurrent changed

#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_LSB   5

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

#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_MSB   5

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

#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTOVRCURRCHNG register field.

#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_SET_MSK   0x00000020

The mask used to set the ALT_USB_HOST_HPRT_PRTOVRCURRCHNG register field value.

#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_CLR_MSK   0xffffffdf

The mask used to clear the ALT_USB_HOST_HPRT_PRTOVRCURRCHNG register field value.

#define ALT_USB_HOST_HPRT_PRTOVRCURRCHNG_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTOVRCURRCHNG register field.

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

Extracts the ALT_USB_HOST_HPRT_PRTOVRCURRCHNG field value from a register.

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

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

#define ALT_USB_HOST_HPRT_PRTRES_E_NORESUME   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTRES

No resume driven

#define ALT_USB_HOST_HPRT_PRTRES_E_RESUME   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTRES

Resume driven

#define ALT_USB_HOST_HPRT_PRTRES_LSB   6

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

#define ALT_USB_HOST_HPRT_PRTRES_MSB   6

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

#define ALT_USB_HOST_HPRT_PRTRES_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTRES register field.

#define ALT_USB_HOST_HPRT_PRTRES_SET_MSK   0x00000040

The mask used to set the ALT_USB_HOST_HPRT_PRTRES register field value.

#define ALT_USB_HOST_HPRT_PRTRES_CLR_MSK   0xffffffbf

The mask used to clear the ALT_USB_HOST_HPRT_PRTRES register field value.

#define ALT_USB_HOST_HPRT_PRTRES_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTRES register field.

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

Extracts the ALT_USB_HOST_HPRT_PRTRES field value from a register.

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

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

#define ALT_USB_HOST_HPRT_PRTSUSP_E_INACT   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTSUSP

Port not in Suspend mode

#define ALT_USB_HOST_HPRT_PRTSUSP_E_ACT   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTSUSP

Port in Suspend mode

#define ALT_USB_HOST_HPRT_PRTSUSP_LSB   7

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

#define ALT_USB_HOST_HPRT_PRTSUSP_MSB   7

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

#define ALT_USB_HOST_HPRT_PRTSUSP_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTSUSP register field.

#define ALT_USB_HOST_HPRT_PRTSUSP_SET_MSK   0x00000080

The mask used to set the ALT_USB_HOST_HPRT_PRTSUSP register field value.

#define ALT_USB_HOST_HPRT_PRTSUSP_CLR_MSK   0xffffff7f

The mask used to clear the ALT_USB_HOST_HPRT_PRTSUSP register field value.

#define ALT_USB_HOST_HPRT_PRTSUSP_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTSUSP register field.

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

Extracts the ALT_USB_HOST_HPRT_PRTSUSP field value from a register.

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

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

#define ALT_USB_HOST_HPRT_PRTRST_E_DISD   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTRST

Port not in reset

#define ALT_USB_HOST_HPRT_PRTRST_E_END   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTRST

Port in reset

#define ALT_USB_HOST_HPRT_PRTRST_LSB   8

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

#define ALT_USB_HOST_HPRT_PRTRST_MSB   8

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

#define ALT_USB_HOST_HPRT_PRTRST_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTRST register field.

#define ALT_USB_HOST_HPRT_PRTRST_SET_MSK   0x00000100

The mask used to set the ALT_USB_HOST_HPRT_PRTRST register field value.

#define ALT_USB_HOST_HPRT_PRTRST_CLR_MSK   0xfffffeff

The mask used to clear the ALT_USB_HOST_HPRT_PRTRST register field value.

#define ALT_USB_HOST_HPRT_PRTRST_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTRST register field.

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

Extracts the ALT_USB_HOST_HPRT_PRTRST field value from a register.

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

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

#define ALT_USB_HOST_HPRT_PRTLNSTS_E_PLUSD   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTLNSTS

Logic level of D+

#define ALT_USB_HOST_HPRT_PRTLNSTS_E_MINUSD   0x2

Enumerated value for register field ALT_USB_HOST_HPRT_PRTLNSTS

Logic level of D-

#define ALT_USB_HOST_HPRT_PRTLNSTS_LSB   10

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

#define ALT_USB_HOST_HPRT_PRTLNSTS_MSB   11

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

#define ALT_USB_HOST_HPRT_PRTLNSTS_WIDTH   2

The width in bits of the ALT_USB_HOST_HPRT_PRTLNSTS register field.

#define ALT_USB_HOST_HPRT_PRTLNSTS_SET_MSK   0x00000c00

The mask used to set the ALT_USB_HOST_HPRT_PRTLNSTS register field value.

#define ALT_USB_HOST_HPRT_PRTLNSTS_CLR_MSK   0xfffff3ff

The mask used to clear the ALT_USB_HOST_HPRT_PRTLNSTS register field value.

#define ALT_USB_HOST_HPRT_PRTLNSTS_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTLNSTS register field.

#define ALT_USB_HOST_HPRT_PRTLNSTS_GET (   value)    (((value) & 0x00000c00) >> 10)

Extracts the ALT_USB_HOST_HPRT_PRTLNSTS field value from a register.

#define ALT_USB_HOST_HPRT_PRTLNSTS_SET (   value)    (((value) << 10) & 0x00000c00)

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

#define ALT_USB_HOST_HPRT_PRTPWR_E_OFF   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTPWR

Power off

#define ALT_USB_HOST_HPRT_PRTPWR_E_ON   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTPWR

Power on

#define ALT_USB_HOST_HPRT_PRTPWR_LSB   12

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

#define ALT_USB_HOST_HPRT_PRTPWR_MSB   12

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

#define ALT_USB_HOST_HPRT_PRTPWR_WIDTH   1

The width in bits of the ALT_USB_HOST_HPRT_PRTPWR register field.

#define ALT_USB_HOST_HPRT_PRTPWR_SET_MSK   0x00001000

The mask used to set the ALT_USB_HOST_HPRT_PRTPWR register field value.

#define ALT_USB_HOST_HPRT_PRTPWR_CLR_MSK   0xffffefff

The mask used to clear the ALT_USB_HOST_HPRT_PRTPWR register field value.

#define ALT_USB_HOST_HPRT_PRTPWR_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTPWR register field.

#define ALT_USB_HOST_HPRT_PRTPWR_GET (   value)    (((value) & 0x00001000) >> 12)

Extracts the ALT_USB_HOST_HPRT_PRTPWR field value from a register.

#define ALT_USB_HOST_HPRT_PRTPWR_SET (   value)    (((value) << 12) & 0x00001000)

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

#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_DISD   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTTSTCTL

Test mode disabled

#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTJ   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTTSTCTL

Test_J mode

#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTK   0x2

Enumerated value for register field ALT_USB_HOST_HPRT_PRTTSTCTL

Test_K mode

#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTSN   0x3

Enumerated value for register field ALT_USB_HOST_HPRT_PRTTSTCTL

Test_SE0_NAK mode

#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTPM   0x4

Enumerated value for register field ALT_USB_HOST_HPRT_PRTTSTCTL

Test_Packet mode

#define ALT_USB_HOST_HPRT_PRTTSTCTL_E_TESTFENB   0x5

Enumerated value for register field ALT_USB_HOST_HPRT_PRTTSTCTL

Test_force_Enable

#define ALT_USB_HOST_HPRT_PRTTSTCTL_LSB   13

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

#define ALT_USB_HOST_HPRT_PRTTSTCTL_MSB   16

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

#define ALT_USB_HOST_HPRT_PRTTSTCTL_WIDTH   4

The width in bits of the ALT_USB_HOST_HPRT_PRTTSTCTL register field.

#define ALT_USB_HOST_HPRT_PRTTSTCTL_SET_MSK   0x0001e000

The mask used to set the ALT_USB_HOST_HPRT_PRTTSTCTL register field value.

#define ALT_USB_HOST_HPRT_PRTTSTCTL_CLR_MSK   0xfffe1fff

The mask used to clear the ALT_USB_HOST_HPRT_PRTTSTCTL register field value.

#define ALT_USB_HOST_HPRT_PRTTSTCTL_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTTSTCTL register field.

#define ALT_USB_HOST_HPRT_PRTTSTCTL_GET (   value)    (((value) & 0x0001e000) >> 13)

Extracts the ALT_USB_HOST_HPRT_PRTTSTCTL field value from a register.

#define ALT_USB_HOST_HPRT_PRTTSTCTL_SET (   value)    (((value) << 13) & 0x0001e000)

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

#define ALT_USB_HOST_HPRT_PRTSPD_E_HIGHSPD   0x0

Enumerated value for register field ALT_USB_HOST_HPRT_PRTSPD

High speed

#define ALT_USB_HOST_HPRT_PRTSPD_E_FULLSPD   0x1

Enumerated value for register field ALT_USB_HOST_HPRT_PRTSPD

Full speed

#define ALT_USB_HOST_HPRT_PRTSPD_E_LOWSPD   0x2

Enumerated value for register field ALT_USB_HOST_HPRT_PRTSPD

Low speed

#define ALT_USB_HOST_HPRT_PRTSPD_E_RSVD   0x3

Enumerated value for register field ALT_USB_HOST_HPRT_PRTSPD

Reserved

#define ALT_USB_HOST_HPRT_PRTSPD_LSB   17

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

#define ALT_USB_HOST_HPRT_PRTSPD_MSB   18

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

#define ALT_USB_HOST_HPRT_PRTSPD_WIDTH   2

The width in bits of the ALT_USB_HOST_HPRT_PRTSPD register field.

#define ALT_USB_HOST_HPRT_PRTSPD_SET_MSK   0x00060000

The mask used to set the ALT_USB_HOST_HPRT_PRTSPD register field value.

#define ALT_USB_HOST_HPRT_PRTSPD_CLR_MSK   0xfff9ffff

The mask used to clear the ALT_USB_HOST_HPRT_PRTSPD register field value.

#define ALT_USB_HOST_HPRT_PRTSPD_RESET   0x0

The reset value of the ALT_USB_HOST_HPRT_PRTSPD register field.

#define ALT_USB_HOST_HPRT_PRTSPD_GET (   value)    (((value) & 0x00060000) >> 17)

Extracts the ALT_USB_HOST_HPRT_PRTSPD field value from a register.

#define ALT_USB_HOST_HPRT_PRTSPD_SET (   value)    (((value) << 17) & 0x00060000)

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

#define ALT_USB_HOST_HPRT_OFST   0x40

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

#define ALT_USB_HOST_HPRT_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_USB_HOST_HPRT_OFST))

The address of the ALT_USB_HOST_HPRT register.

Typedef Documentation

The typedef declaration for register ALT_USB_HOST_HPRT.