RP2040_SVD.USBCTRL_REGS

Entities

Record Types

Subtypes

Variables

Description

------------- Registers -- -------------

ADDR_ENDP_ADDRESS_Field

subtype ADDR_ENDP_ADDRESS_Field is HAL.UInt7;

ADDR_ENDP_ENDPOINT_Field

subtype ADDR_ENDP_ENDPOINT_Field is HAL.UInt4;

ADDR_ENDP_Register

type ADDR_ENDP_Register is record
   ADDRESS        : ADDR_ENDP_ADDRESS_Field := 16#0#;
   Reserved_7_15  : HAL.UInt9 := 16#0#;
   ENDPOINT       : ADDR_ENDP_ENDPOINT_Field := 16#0#;
   Reserved_20_31 : HAL.UInt12 := 16#0#;
end record;
Record fields
ADDRESS

unspecified

Reserved_7_15

Device endpoint to send data to. Only valid for HOST mode.

ENDPOINT

unspecified

Reserved_20_31

ADDR_ENDP_Register_1

type ADDR_ENDP_Register_1 is record
   ADDRESS        : ADDR_ENDP_ADDRESS_Field := 16#0#;
   Reserved_7_15  : HAL.UInt9 := 16#0#;
   ENDPOINT       : ADDR_ENDP_ENDPOINT_Field := 16#0#;
   Reserved_20_24 : HAL.UInt5 := 16#0#;
   INTEP_DIR      : Boolean := False;
   INTEP_PREAMBLE : Boolean := False;
   Reserved_27_31 : HAL.UInt5 := 16#0#;
end record;
Record fields
ADDRESS

unspecified

Reserved_7_15

Endpoint number of the interrupt endpoint

ENDPOINT

unspecified

Reserved_20_24

Direction of the interrupt endpoint. In=0, Out=1

INTEP_DIR

Interrupt EP requires preamble (is a low speed device on a full speed hub)

INTEP_PREAMBLE

unspecified

Reserved_27_31

BUFF_CPU_SHOULD_HANDLE_Register

type BUFF_CPU_SHOULD_HANDLE_Register is record
   EP0_IN   : Boolean;
   EP0_OUT  : Boolean;
   EP1_IN   : Boolean;
   EP1_OUT  : Boolean;
   EP2_IN   : Boolean;
   EP2_OUT  : Boolean;
   EP3_IN   : Boolean;
   EP3_OUT  : Boolean;
   EP4_IN   : Boolean;
   EP4_OUT  : Boolean;
   EP5_IN   : Boolean;
   EP5_OUT  : Boolean;
   EP6_IN   : Boolean;
   EP6_OUT  : Boolean;
   EP7_IN   : Boolean;
   EP7_OUT  : Boolean;
   EP8_IN   : Boolean;
   EP8_OUT  : Boolean;
   EP9_IN   : Boolean;
   EP9_OUT  : Boolean;
   EP10_IN  : Boolean;
   EP10_OUT : Boolean;
   EP11_IN  : Boolean;
   EP11_OUT : Boolean;
   EP12_IN  : Boolean;
   EP12_OUT : Boolean;
   EP13_IN  : Boolean;
   EP13_OUT : Boolean;
   EP14_IN  : Boolean;
   EP14_OUT : Boolean;
   EP15_IN  : Boolean;
   EP15_OUT : Boolean;
end record;
Record fields
EP0_IN

Read-only.

EP0_OUT

Read-only.

EP1_IN

Read-only.

EP1_OUT

Read-only.

EP2_IN

Read-only.

EP2_OUT

Read-only.

EP3_IN

Read-only.

EP3_OUT

Read-only.

EP4_IN

Read-only.

EP4_OUT

Read-only.

EP5_IN

Read-only.

EP5_OUT

Read-only.

EP6_IN

Read-only.

EP6_OUT

Read-only.

EP7_IN

Read-only.

EP7_OUT

Read-only.

EP8_IN

Read-only.

EP8_OUT

Read-only.

EP9_IN

Read-only.

EP9_OUT

Read-only.

EP10_IN

Read-only.

EP10_OUT

Read-only.

EP11_IN

Read-only.

EP11_OUT

Read-only.

EP12_IN

Read-only.

EP12_OUT

Read-only.

EP13_IN

Read-only.

EP13_OUT

Read-only.

EP14_IN

Read-only.

EP14_OUT

Read-only.

EP15_IN

Read-only.

EP15_OUT

BUFF_STATUS_Register

type BUFF_STATUS_Register is record
   EP0_IN   : Boolean := False;
   EP0_OUT  : Boolean := False;
   EP1_IN   : Boolean := False;
   EP1_OUT  : Boolean := False;
   EP2_IN   : Boolean := False;
   EP2_OUT  : Boolean := False;
   EP3_IN   : Boolean := False;
   EP3_OUT  : Boolean := False;
   EP4_IN   : Boolean := False;
   EP4_OUT  : Boolean := False;
   EP5_IN   : Boolean := False;
   EP5_OUT  : Boolean := False;
   EP6_IN   : Boolean := False;
   EP6_OUT  : Boolean := False;
   EP7_IN   : Boolean := False;
   EP7_OUT  : Boolean := False;
   EP8_IN   : Boolean := False;
   EP8_OUT  : Boolean := False;
   EP9_IN   : Boolean := False;
   EP9_OUT  : Boolean := False;
   EP10_IN  : Boolean := False;
   EP10_OUT : Boolean := False;
   EP11_IN  : Boolean := False;
   EP11_OUT : Boolean := False;
   EP12_IN  : Boolean := False;
   EP12_OUT : Boolean := False;
   EP13_IN  : Boolean := False;
   EP13_OUT : Boolean := False;
   EP14_IN  : Boolean := False;
   EP14_OUT : Boolean := False;
   EP15_IN  : Boolean := False;
   EP15_OUT : Boolean := False;
end record;
Record fields
EP0_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP0_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP1_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP1_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP2_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP2_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP3_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP3_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP4_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP4_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP5_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP5_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP6_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP6_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP7_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP7_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP8_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP8_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP9_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP9_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP10_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP10_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP11_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP11_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP12_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP12_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP13_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP13_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP14_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP14_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP15_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP15_OUT

EP_ABORT_DONE_Register

type EP_ABORT_DONE_Register is record
   EP0_IN   : Boolean := False;
   EP0_OUT  : Boolean := False;
   EP1_IN   : Boolean := False;
   EP1_OUT  : Boolean := False;
   EP2_IN   : Boolean := False;
   EP2_OUT  : Boolean := False;
   EP3_IN   : Boolean := False;
   EP3_OUT  : Boolean := False;
   EP4_IN   : Boolean := False;
   EP4_OUT  : Boolean := False;
   EP5_IN   : Boolean := False;
   EP5_OUT  : Boolean := False;
   EP6_IN   : Boolean := False;
   EP6_OUT  : Boolean := False;
   EP7_IN   : Boolean := False;
   EP7_OUT  : Boolean := False;
   EP8_IN   : Boolean := False;
   EP8_OUT  : Boolean := False;
   EP9_IN   : Boolean := False;
   EP9_OUT  : Boolean := False;
   EP10_IN  : Boolean := False;
   EP10_OUT : Boolean := False;
   EP11_IN  : Boolean := False;
   EP11_OUT : Boolean := False;
   EP12_IN  : Boolean := False;
   EP12_OUT : Boolean := False;
   EP13_IN  : Boolean := False;
   EP13_OUT : Boolean := False;
   EP14_IN  : Boolean := False;
   EP14_OUT : Boolean := False;
   EP15_IN  : Boolean := False;
   EP15_OUT : Boolean := False;
end record;
Record fields
EP0_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP0_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP1_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP1_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP2_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP2_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP3_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP3_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP4_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP4_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP5_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP5_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP6_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP6_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP7_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP7_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP8_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP8_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP9_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP9_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP10_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP10_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP11_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP11_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP12_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP12_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP13_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP13_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP14_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP14_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP15_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP15_OUT

EP_ABORT_Register

type EP_ABORT_Register is record
   EP0_IN   : Boolean := False;
   EP0_OUT  : Boolean := False;
   EP1_IN   : Boolean := False;
   EP1_OUT  : Boolean := False;
   EP2_IN   : Boolean := False;
   EP2_OUT  : Boolean := False;
   EP3_IN   : Boolean := False;
   EP3_OUT  : Boolean := False;
   EP4_IN   : Boolean := False;
   EP4_OUT  : Boolean := False;
   EP5_IN   : Boolean := False;
   EP5_OUT  : Boolean := False;
   EP6_IN   : Boolean := False;
   EP6_OUT  : Boolean := False;
   EP7_IN   : Boolean := False;
   EP7_OUT  : Boolean := False;
   EP8_IN   : Boolean := False;
   EP8_OUT  : Boolean := False;
   EP9_IN   : Boolean := False;
   EP9_OUT  : Boolean := False;
   EP10_IN  : Boolean := False;
   EP10_OUT : Boolean := False;
   EP11_IN  : Boolean := False;
   EP11_OUT : Boolean := False;
   EP12_IN  : Boolean := False;
   EP12_OUT : Boolean := False;
   EP13_IN  : Boolean := False;
   EP13_OUT : Boolean := False;
   EP14_IN  : Boolean := False;
   EP14_OUT : Boolean := False;
   EP15_IN  : Boolean := False;
   EP15_OUT : Boolean := False;
end record;
Record fields
EP0_IN
EP0_OUT
EP1_IN
EP1_OUT
EP2_IN
EP2_OUT
EP3_IN
EP3_OUT
EP4_IN
EP4_OUT
EP5_IN
EP5_OUT
EP6_IN
EP6_OUT
EP7_IN
EP7_OUT
EP8_IN
EP8_OUT
EP9_IN
EP9_OUT
EP10_IN
EP10_OUT
EP11_IN
EP11_OUT
EP12_IN
EP12_OUT
EP13_IN
EP13_OUT
EP14_IN
EP14_OUT
EP15_IN
EP15_OUT

EP_STALL_ARM_Register

type EP_STALL_ARM_Register is record
   EP0_IN        : Boolean := False;
   EP0_OUT       : Boolean := False;
   Reserved_2_31 : HAL.UInt30 := 16#0#;
end record;
Record fields
EP0_IN

unspecified

EP0_OUT

unspecified

Reserved_2_31

EP_STATUS_STALL_NAK_Register

type EP_STATUS_STALL_NAK_Register is record
   EP0_IN   : Boolean := False;
   EP0_OUT  : Boolean := False;
   EP1_IN   : Boolean := False;
   EP1_OUT  : Boolean := False;
   EP2_IN   : Boolean := False;
   EP2_OUT  : Boolean := False;
   EP3_IN   : Boolean := False;
   EP3_OUT  : Boolean := False;
   EP4_IN   : Boolean := False;
   EP4_OUT  : Boolean := False;
   EP5_IN   : Boolean := False;
   EP5_OUT  : Boolean := False;
   EP6_IN   : Boolean := False;
   EP6_OUT  : Boolean := False;
   EP7_IN   : Boolean := False;
   EP7_OUT  : Boolean := False;
   EP8_IN   : Boolean := False;
   EP8_OUT  : Boolean := False;
   EP9_IN   : Boolean := False;
   EP9_OUT  : Boolean := False;
   EP10_IN  : Boolean := False;
   EP10_OUT : Boolean := False;
   EP11_IN  : Boolean := False;
   EP11_OUT : Boolean := False;
   EP12_IN  : Boolean := False;
   EP12_OUT : Boolean := False;
   EP13_IN  : Boolean := False;
   EP13_OUT : Boolean := False;
   EP14_IN  : Boolean := False;
   EP14_OUT : Boolean := False;
   EP15_IN  : Boolean := False;
   EP15_OUT : Boolean := False;
end record;
Record fields
EP0_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP0_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP1_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP1_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP2_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP2_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP3_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP3_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP4_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP4_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP5_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP5_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP6_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP6_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP7_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP7_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP8_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP8_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP9_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP9_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP10_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP10_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP11_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP11_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP12_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP12_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP13_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP13_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP14_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP14_OUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP15_IN

Write data bit of one shall clear (set to zero) the corresponding bit in the field.

EP15_OUT

INT_EP_CTRL_INT_EP_ACTIVE_Field

subtype INT_EP_CTRL_INT_EP_ACTIVE_Field is HAL.UInt15;

INT_EP_CTRL_Register

type INT_EP_CTRL_Register is record
   Reserved_0_0   : HAL.Bit := 16#0#;
   INT_EP_ACTIVE  : INT_EP_CTRL_INT_EP_ACTIVE_Field := 16#0#;
   Reserved_16_31 : HAL.UInt16 := 16#0#;
end record;
Record fields
Reserved_0_0

Host: Enable interrupt endpoint 1 -> 15

INT_EP_ACTIVE

unspecified

Reserved_16_31

INTE_Register

type INTE_Register is record
   HOST_CONN_DIS        : Boolean := False;
   HOST_RESUME          : Boolean := False;
   HOST_SOF             : Boolean := False;
   TRANS_COMPLETE       : Boolean := False;
   BUFF_STATUS          : Boolean := False;
   ERROR_DATA_SEQ       : Boolean := False;
   ERROR_RX_TIMEOUT     : Boolean := False;
   ERROR_RX_OVERFLOW    : Boolean := False;
   ERROR_BIT_STUFF      : Boolean := False;
   ERROR_CRC            : Boolean := False;
   STALL                : Boolean := False;
   VBUS_DETECT          : Boolean := False;
   BUS_RESET            : Boolean := False;
   DEV_CONN_DIS         : Boolean := False;
   DEV_SUSPEND          : Boolean := False;
   DEV_RESUME_FROM_HOST : Boolean := False;
   SETUP_REQ            : Boolean := False;
   DEV_SOF              : Boolean := False;
   ABORT_DONE           : Boolean := False;
   EP_STALL_NAK         : Boolean := False;
   Reserved_20_31       : HAL.UInt12 := 16#0#;
end record;
Record fields
HOST_CONN_DIS

Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME

HOST_RESUME

Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD

HOST_SOF

Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.

TRANS_COMPLETE

Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.

BUFF_STATUS

Source: SIE_STATUS.DATA_SEQ_ERROR

ERROR_DATA_SEQ

Source: SIE_STATUS.RX_TIMEOUT

ERROR_RX_TIMEOUT

Source: SIE_STATUS.RX_OVERFLOW

ERROR_RX_OVERFLOW

Source: SIE_STATUS.BIT_STUFF_ERROR

ERROR_BIT_STUFF

Source: SIE_STATUS.CRC_ERROR

ERROR_CRC

Source: SIE_STATUS.STALL_REC

STALL

Source: SIE_STATUS.VBUS_DETECTED

VBUS_DETECT

Source: SIE_STATUS.BUS_RESET

BUS_RESET

Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED

DEV_CONN_DIS

Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED

DEV_SUSPEND

Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME

DEV_RESUME_FROM_HOST

Device. Source: SIE_STATUS.SETUP_REC

SETUP_REQ

Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD

DEV_SOF

Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in ABORT_DONE.

ABORT_DONE

Raised when any bit in EP_STATUS_STALL_NAK is set. Clear by clearing all bits in EP_STATUS_STALL_NAK.

EP_STALL_NAK

unspecified

Reserved_20_31

INTF_Register

type INTF_Register is record
   HOST_CONN_DIS        : Boolean := False;
   HOST_RESUME          : Boolean := False;
   HOST_SOF             : Boolean := False;
   TRANS_COMPLETE       : Boolean := False;
   BUFF_STATUS          : Boolean := False;
   ERROR_DATA_SEQ       : Boolean := False;
   ERROR_RX_TIMEOUT     : Boolean := False;
   ERROR_RX_OVERFLOW    : Boolean := False;
   ERROR_BIT_STUFF      : Boolean := False;
   ERROR_CRC            : Boolean := False;
   STALL                : Boolean := False;
   VBUS_DETECT          : Boolean := False;
   BUS_RESET            : Boolean := False;
   DEV_CONN_DIS         : Boolean := False;
   DEV_SUSPEND          : Boolean := False;
   DEV_RESUME_FROM_HOST : Boolean := False;
   SETUP_REQ            : Boolean := False;
   DEV_SOF              : Boolean := False;
   ABORT_DONE           : Boolean := False;
   EP_STALL_NAK         : Boolean := False;
   Reserved_20_31       : HAL.UInt12 := 16#0#;
end record;
Record fields
HOST_CONN_DIS

Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME

HOST_RESUME

Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD

HOST_SOF

Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.

TRANS_COMPLETE

Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.

BUFF_STATUS

Source: SIE_STATUS.DATA_SEQ_ERROR

ERROR_DATA_SEQ

Source: SIE_STATUS.RX_TIMEOUT

ERROR_RX_TIMEOUT

Source: SIE_STATUS.RX_OVERFLOW

ERROR_RX_OVERFLOW

Source: SIE_STATUS.BIT_STUFF_ERROR

ERROR_BIT_STUFF

Source: SIE_STATUS.CRC_ERROR

ERROR_CRC

Source: SIE_STATUS.STALL_REC

STALL

Source: SIE_STATUS.VBUS_DETECTED

VBUS_DETECT

Source: SIE_STATUS.BUS_RESET

BUS_RESET

Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED

DEV_CONN_DIS

Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED

DEV_SUSPEND

Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME

DEV_RESUME_FROM_HOST

Device. Source: SIE_STATUS.SETUP_REC

SETUP_REQ

Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD

DEV_SOF

Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in ABORT_DONE.

ABORT_DONE

Raised when any bit in EP_STATUS_STALL_NAK is set. Clear by clearing all bits in EP_STATUS_STALL_NAK.

EP_STALL_NAK

unspecified

Reserved_20_31

INTR_Register

type INTR_Register is record
   HOST_CONN_DIS        : Boolean;
   HOST_RESUME          : Boolean;
   HOST_SOF             : Boolean;
   TRANS_COMPLETE       : Boolean;
   BUFF_STATUS          : Boolean;
   ERROR_DATA_SEQ       : Boolean;
   ERROR_RX_TIMEOUT     : Boolean;
   ERROR_RX_OVERFLOW    : Boolean;
   ERROR_BIT_STUFF      : Boolean;
   ERROR_CRC            : Boolean;
   STALL                : Boolean;
   VBUS_DETECT          : Boolean;
   BUS_RESET            : Boolean;
   DEV_CONN_DIS         : Boolean;
   DEV_SUSPEND          : Boolean;
   DEV_RESUME_FROM_HOST : Boolean;
   SETUP_REQ            : Boolean;
   DEV_SOF              : Boolean;
   ABORT_DONE           : Boolean;
   EP_STALL_NAK         : Boolean;
   Reserved_20_31       : HAL.UInt12;
end record;
Record fields
HOST_CONN_DIS

Read-only. Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME

HOST_RESUME

Read-only. Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD

HOST_SOF

Read-only. Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.

TRANS_COMPLETE

Read-only. Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.

BUFF_STATUS

Read-only. Source: SIE_STATUS.DATA_SEQ_ERROR

ERROR_DATA_SEQ

Read-only. Source: SIE_STATUS.RX_TIMEOUT

ERROR_RX_TIMEOUT

Read-only. Source: SIE_STATUS.RX_OVERFLOW

ERROR_RX_OVERFLOW

Read-only. Source: SIE_STATUS.BIT_STUFF_ERROR

ERROR_BIT_STUFF

Read-only. Source: SIE_STATUS.CRC_ERROR

ERROR_CRC

Read-only. Source: SIE_STATUS.STALL_REC

STALL

Read-only. Source: SIE_STATUS.VBUS_DETECTED

VBUS_DETECT

Read-only. Source: SIE_STATUS.BUS_RESET

BUS_RESET

Read-only. Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED

DEV_CONN_DIS

Read-only. Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED

DEV_SUSPEND

Read-only. Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME

DEV_RESUME_FROM_HOST

Read-only. Device. Source: SIE_STATUS.SETUP_REC

SETUP_REQ

Read-only. Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD

DEV_SOF

Read-only. Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in ABORT_DONE.

ABORT_DONE

Read-only. Raised when any bit in EP_STATUS_STALL_NAK is set. Clear by clearing all bits in EP_STATUS_STALL_NAK.

EP_STALL_NAK

unspecified

Reserved_20_31

INTS_Register

type INTS_Register is record
   HOST_CONN_DIS        : Boolean;
   HOST_RESUME          : Boolean;
   HOST_SOF             : Boolean;
   TRANS_COMPLETE       : Boolean;
   BUFF_STATUS          : Boolean;
   ERROR_DATA_SEQ       : Boolean;
   ERROR_RX_TIMEOUT     : Boolean;
   ERROR_RX_OVERFLOW    : Boolean;
   ERROR_BIT_STUFF      : Boolean;
   ERROR_CRC            : Boolean;
   STALL                : Boolean;
   VBUS_DETECT          : Boolean;
   BUS_RESET            : Boolean;
   DEV_CONN_DIS         : Boolean;
   DEV_SUSPEND          : Boolean;
   DEV_RESUME_FROM_HOST : Boolean;
   SETUP_REQ            : Boolean;
   DEV_SOF              : Boolean;
   ABORT_DONE           : Boolean;
   EP_STALL_NAK         : Boolean;
   Reserved_20_31       : HAL.UInt12;
end record;
Record fields
HOST_CONN_DIS

Read-only. Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME

HOST_RESUME

Read-only. Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD

HOST_SOF

Read-only. Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.

TRANS_COMPLETE

Read-only. Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.

BUFF_STATUS

Read-only. Source: SIE_STATUS.DATA_SEQ_ERROR

ERROR_DATA_SEQ

Read-only. Source: SIE_STATUS.RX_TIMEOUT

ERROR_RX_TIMEOUT

Read-only. Source: SIE_STATUS.RX_OVERFLOW

ERROR_RX_OVERFLOW

Read-only. Source: SIE_STATUS.BIT_STUFF_ERROR

ERROR_BIT_STUFF

Read-only. Source: SIE_STATUS.CRC_ERROR

ERROR_CRC

Read-only. Source: SIE_STATUS.STALL_REC

STALL

Read-only. Source: SIE_STATUS.VBUS_DETECTED

VBUS_DETECT

Read-only. Source: SIE_STATUS.BUS_RESET

BUS_RESET

Read-only. Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED

DEV_CONN_DIS

Read-only. Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED

DEV_SUSPEND

Read-only. Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME

DEV_RESUME_FROM_HOST

Read-only. Device. Source: SIE_STATUS.SETUP_REC

SETUP_REQ

Read-only. Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD

DEV_SOF

Read-only. Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in ABORT_DONE.

ABORT_DONE

Read-only. Raised when any bit in EP_STATUS_STALL_NAK is set. Clear by clearing all bits in EP_STATUS_STALL_NAK.

EP_STALL_NAK

unspecified

Reserved_20_31

MAIN_CTRL_Register

type MAIN_CTRL_Register is record
   CONTROLLER_EN : Boolean := False;
   HOST_NDEVICE  : Boolean := False;
   Reserved_2_30 : HAL.UInt29 := 16#0#;
   SIM_TIMING    : Boolean := False;
end record;
Record fields
CONTROLLER_EN

Device mode = 0, Host mode = 1

HOST_NDEVICE

unspecified

Reserved_2_30

Reduced timings for simulation

SIM_TIMING

NAK_POLL_DELAY_FS_Field

subtype NAK_POLL_DELAY_FS_Field is HAL.UInt10;

NAK_POLL_DELAY_LS_Field

subtype NAK_POLL_DELAY_LS_Field is HAL.UInt10;

NAK_POLL_Register

type NAK_POLL_Register is record
   DELAY_LS       : NAK_POLL_DELAY_LS_Field := 16#10#;
   Reserved_10_15 : HAL.UInt6 := 16#0#;
   DELAY_FS       : NAK_POLL_DELAY_FS_Field := 16#10#;
   Reserved_26_31 : HAL.UInt6 := 16#0#;
end record;
Record fields
DELAY_LS

unspecified

Reserved_10_15

NAK polling interval for a full speed device

DELAY_FS

unspecified

Reserved_26_31

SIE_CTRL_Register

type SIE_CTRL_Register is record
   START_TRANS    : Boolean := False;
   SEND_SETUP     : Boolean := False;
   SEND_DATA      : Boolean := False;
   RECEIVE_DATA   : Boolean := False;
   STOP_TRANS     : Boolean := False;
   Reserved_5_5   : HAL.Bit := 16#0#;
   PREAMBLE_EN    : Boolean := False;
   Reserved_7_7   : HAL.Bit := 16#0#;
   SOF_SYNC       : Boolean := False;
   SOF_EN         : Boolean := False;
   KEEP_ALIVE_EN  : Boolean := False;
   VBUS_EN        : Boolean := False;
   RESUME         : Boolean := False;
   RESET_BUS      : Boolean := False;
   Reserved_14_14 : HAL.Bit := 16#0#;
   PULLDOWN_EN    : Boolean := False;
   PULLUP_EN      : Boolean := False;
   RPU_OPT        : Boolean := False;
   TRANSCEIVER_PD : Boolean := False;
   Reserved_19_23 : HAL.UInt5 := 16#0#;
   DIRECT_DM      : Boolean := False;
   DIRECT_DP      : Boolean := False;
   DIRECT_EN      : Boolean := False;
   EP0_INT_NAK    : Boolean := False;
   EP0_INT_2BUF   : Boolean := False;
   EP0_INT_1BUF   : Boolean := False;
   EP0_DOUBLE_BUF : Boolean := False;
   EP0_INT_STALL  : Boolean := False;
end record;
Record fields
START_TRANS

Host: Send Setup packet

SEND_SETUP

Host: Send transaction (OUT from host)

SEND_DATA

Host: Receive transaction (IN to host)

RECEIVE_DATA

After a write operation all bits in the field are cleared (set to zero). Host: Stop transaction

STOP_TRANS

unspecified

Reserved_5_5

Host: Preable enable for LS device on FS hub

PREAMBLE_EN

unspecified

Reserved_7_7

Host: Delay packet(s) until after SOF

SOF_SYNC

Host: Enable SOF generation (for full speed bus)

SOF_EN

Host: Enable keep alive packet (for low speed bus)

KEEP_ALIVE_EN

Host: Enable VBUS

VBUS_EN

After a write operation all bits in the field are cleared (set to zero). Device: Remote wakeup. Device can initiate its own resume after suspend.

RESUME

After a write operation all bits in the field are cleared (set to zero). Host: Reset bus

RESET_BUS

unspecified

Reserved_14_14

Host: Enable pull down resistors

PULLDOWN_EN

Device: Enable pull up resistor

PULLUP_EN

Device: Pull-up strength (0=1K2, 1=2k3)

RPU_OPT

Power down bus transceiver

TRANSCEIVER_PD

unspecified

Reserved_19_23

Direct control of DM

DIRECT_DM

Direct control of DP

DIRECT_DP

Direct bus drive enable

DIRECT_EN

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK

EP0_INT_NAK

Device: Set bit in BUFF_STATUS for every 2 buffers completed on EP0

EP0_INT_2BUF

Device: Set bit in BUFF_STATUS for every buffer completed on EP0

EP0_INT_1BUF

Device: EP0 single buffered = 0, double buffered = 1

EP0_DOUBLE_BUF

Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL

EP0_INT_STALL

SIE_STATUS_LINE_STATE_Field

subtype SIE_STATUS_LINE_STATE_Field is HAL.UInt2;

SIE_STATUS_Register

type SIE_STATUS_Register is record
   VBUS_DETECTED   : Boolean := False;
   Reserved_1_1    : HAL.Bit := 16#0#;
   LINE_STATE      : SIE_STATUS_LINE_STATE_Field := 16#0#;
   SUSPENDED       : Boolean := False;
   Reserved_5_7    : HAL.UInt3 := 16#0#;
   SPEED           : SIE_STATUS_SPEED_Field := 16#0#;
   VBUS_OVER_CURR  : Boolean := False;
   RESUME          : Boolean := False;
   Reserved_12_15  : HAL.UInt4 := 16#0#;
   CONNECTED       : Boolean := False;
   SETUP_REC       : Boolean := False;
   TRANS_COMPLETE  : Boolean := False;
   BUS_RESET       : Boolean := False;
   Reserved_20_23  : HAL.UInt4 := 16#0#;
   CRC_ERROR       : Boolean := False;
   BIT_STUFF_ERROR : Boolean := False;
   RX_OVERFLOW     : Boolean := False;
   RX_TIMEOUT      : Boolean := False;
   NAK_REC         : Boolean := False;
   STALL_REC       : Boolean := False;
   ACK_REC         : Boolean := False;
   DATA_SEQ_ERROR  : Boolean := False;
end record;
Record fields
VBUS_DETECTED

unspecified

Reserved_1_1

Read-only. USB bus line state

LINE_STATE

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Bus in suspended state. Valid for device and host. Host and device will go into suspend if neither Keep Alive / SOF frames are enabled.

SUSPENDED

unspecified

Reserved_5_7

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Host: device speed. Disconnected = 00, LS = 01, FS = 10

SPEED

Read-only. VBUS over current detected

VBUS_OVER_CURR

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Host: Device has initiated a remote resume. Device: host has initiated a resume.

RESUME

unspecified

Reserved_12_15

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Device: connected

CONNECTED

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Device: Setup packet received

SETUP_REC

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Transaction complete.\n\n Raised by device if:\n\n * An IN or OUT packet is sent with the LAST_BUFF bit set in the buffer control register\n\n Raised by host if:\n\n * A setup packet is sent when no data in or data out transaction follows * An IN packet is received and the LAST_BUFF bit is set in the buffer control register * An IN packet is received with zero length * An OUT packet is sent and the LAST_BUFF bit is set

TRANS_COMPLETE

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Device: bus reset received

BUS_RESET

unspecified

Reserved_20_23

Write data bit of one shall clear (set to zero) the corresponding bit in the field. CRC Error. Raised by the Serial RX engine.

CRC_ERROR

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Bit Stuff Error. Raised by the Serial RX engine.

BIT_STUFF_ERROR

Write data bit of one shall clear (set to zero) the corresponding bit in the field. RX overflow is raised by the Serial RX engine if the incoming data is too fast.

RX_OVERFLOW

Write data bit of one shall clear (set to zero) the corresponding bit in the field. RX timeout is raised by both the host and device if an ACK is not received in the maximum time specified by the USB spec.

RX_TIMEOUT

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Host: NAK received

NAK_REC

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Host: STALL received

STALL_REC

Write data bit of one shall clear (set to zero) the corresponding bit in the field. ACK received. Raised by both host and device.

ACK_REC

Write data bit of one shall clear (set to zero) the corresponding bit in the field. Data Sequence Error.\n\n The device can raise a sequence error in the following conditions:\n\n * A SETUP packet is received followed by a DATA1 packet (data phase should always be DATA0) * An OUT packet is received from the host but doesn't match the data pid in the buffer control register read from DPSRAM\n\n The host can raise a data sequence error in the following conditions:\n\n

DATA_SEQ_ERROR

SIE_STATUS_SPEED_Field

subtype SIE_STATUS_SPEED_Field is HAL.UInt2;

SOF_RD_COUNT_Field

subtype SOF_RD_COUNT_Field is HAL.UInt11;

SOF_RD_Register

type SOF_RD_Register is record
   COUNT          : SOF_RD_COUNT_Field;
   Reserved_11_31 : HAL.UInt21;
end record;
Record fields
COUNT

unspecified

Reserved_11_31

SOF_WR_COUNT_Field

subtype SOF_WR_COUNT_Field is HAL.UInt11;

SOF_WR_Register

type SOF_WR_Register is record
   COUNT          : SOF_WR_COUNT_Field := 16#0#;
   Reserved_11_31 : HAL.UInt21 := 16#0#;
end record;
Record fields
COUNT

unspecified

Reserved_11_31

USB_MUXING_Register

type USB_MUXING_Register is record
   TO_PHY         : Boolean := False;
   TO_EXTPHY      : Boolean := False;
   TO_DIGITAL_PAD : Boolean := False;
   SOFTCON        : Boolean := False;
   Reserved_4_31  : HAL.UInt28 := 16#0#;
end record;
Record fields
TO_PHY

unspecified

TO_EXTPHY

unspecified

TO_DIGITAL_PAD

unspecified

SOFTCON

unspecified

Reserved_4_31

USB_PWR_Register

type USB_PWR_Register is record
   VBUS_EN                 : Boolean := False;
   VBUS_EN_OVERRIDE_EN     : Boolean := False;
   VBUS_DETECT             : Boolean := False;
   VBUS_DETECT_OVERRIDE_EN : Boolean := False;
   OVERCURR_DETECT         : Boolean := False;
   OVERCURR_DETECT_EN      : Boolean := False;
   Reserved_6_31           : HAL.UInt26 := 16#0#;
end record;
Record fields
VBUS_EN

unspecified

VBUS_EN_OVERRIDE_EN

unspecified

VBUS_DETECT

unspecified

VBUS_DETECT_OVERRIDE_EN

unspecified

OVERCURR_DETECT

unspecified

OVERCURR_DETECT_EN

unspecified

Reserved_6_31

USBCTRL_REGS_Periph

USBCTRL_REGS_Periph : aliased USBCTRL_REGS_Peripheral
  with Import, Address => USBCTRL_REGS_Base;

USBCTRL_REGS_Peripheral

type USBCTRL_REGS_Peripheral is record
   ADDR_ENDP              : aliased ADDR_ENDP_Register;
   ADDR_ENDP1             : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP2             : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP3             : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP4             : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP5             : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP6             : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP7             : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP8             : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP9             : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP10            : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP11            : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP12            : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP13            : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP14            : aliased ADDR_ENDP_Register_1;
   ADDR_ENDP15            : aliased ADDR_ENDP_Register_1;
   MAIN_CTRL              : aliased MAIN_CTRL_Register;
   SOF_WR                 : aliased SOF_WR_Register;
   SOF_RD                 : aliased SOF_RD_Register;
   SIE_CTRL               : aliased SIE_CTRL_Register;
   SIE_STATUS             : aliased SIE_STATUS_Register;
   INT_EP_CTRL            : aliased INT_EP_CTRL_Register;
   BUFF_STATUS            : aliased BUFF_STATUS_Register;
   BUFF_CPU_SHOULD_HANDLE : aliased BUFF_CPU_SHOULD_HANDLE_Register;
   EP_ABORT               : aliased EP_ABORT_Register;
   EP_ABORT_DONE          : aliased EP_ABORT_DONE_Register;
   EP_STALL_ARM           : aliased EP_STALL_ARM_Register;
   NAK_POLL               : aliased NAK_POLL_Register;
   EP_STATUS_STALL_NAK    : aliased EP_STATUS_STALL_NAK_Register;
   USB_MUXING             : aliased USB_MUXING_Register;
   USB_PWR                : aliased USB_PWR_Register;
   USBPHY_DIRECT          : aliased USBPHY_DIRECT_Register;
   USBPHY_DIRECT_OVERRIDE : aliased USBPHY_DIRECT_OVERRIDE_Register;
   USBPHY_TRIM            : aliased USBPHY_TRIM_Register;
   INTR                   : aliased INTR_Register;
   INTE                   : aliased INTE_Register;
   INTF                   : aliased INTF_Register;
   INTS                   : aliased INTS_Register;
end record;
Record fields
ADDR_ENDP

Interrupt endpoint 1. Only valid for HOST mode.

ADDR_ENDP1

Interrupt endpoint 2. Only valid for HOST mode.

ADDR_ENDP2

Interrupt endpoint 3. Only valid for HOST mode.

ADDR_ENDP3

Interrupt endpoint 4. Only valid for HOST mode.

ADDR_ENDP4

Interrupt endpoint 5. Only valid for HOST mode.

ADDR_ENDP5

Interrupt endpoint 6. Only valid for HOST mode.

ADDR_ENDP6

Interrupt endpoint 7. Only valid for HOST mode.

ADDR_ENDP7

Interrupt endpoint 8. Only valid for HOST mode.

ADDR_ENDP8

Interrupt endpoint 9. Only valid for HOST mode.

ADDR_ENDP9

Interrupt endpoint 10. Only valid for HOST mode.

ADDR_ENDP10

Interrupt endpoint 11. Only valid for HOST mode.

ADDR_ENDP11

Interrupt endpoint 12. Only valid for HOST mode.

ADDR_ENDP12

Interrupt endpoint 13. Only valid for HOST mode.

ADDR_ENDP13

Interrupt endpoint 14. Only valid for HOST mode.

ADDR_ENDP14

Interrupt endpoint 15. Only valid for HOST mode.

ADDR_ENDP15

Main control register

MAIN_CTRL

Set the SOF (Start of Frame) frame number in the host controller. The SOF packet is sent every 1ms and the host will increment the frame number by 1 each time.

SOF_WR

Read the last SOF (Start of Frame) frame number seen. In device mode the last SOF received from the host. In host mode the last SOF sent by the host.

SOF_RD

SIE control register

SIE_CTRL

SIE status register

SIE_STATUS

interrupt endpoint control register

INT_EP_CTRL

Buffer status register. A bit set here indicates that a buffer has completed on the endpoint (if the buffer interrupt is enabled). It is possible for 2 buffers to be completed, so clearing the buffer status bit may instantly re set it on the next clock cycle.

BUFF_STATUS

Which of the double buffers should be handled. Only valid if using an interrupt per buffer (i.e. not per 2 buffers). Not valid for host interrupt endpoint polling because they are only single buffered.

BUFF_CPU_SHOULD_HANDLE

Device only: Can be set to ignore the buffer control register for this endpoint in case you would like to revoke a buffer. A NAK will be sent for every access to the endpoint until this bit is cleared. A corresponding bit in EP_ABORT_DONE is set when it is safe to modify the buffer control register.

EP_ABORT

Device only: Used in conjunction with EP_ABORT. Set once an endpoint is idle so the programmer knows it is safe to modify the buffer control register.

EP_ABORT_DONE

Device: this bit must be set in conjunction with the STALL bit in the buffer control register to send a STALL on EP0. The device controller clears these bits when a SETUP packet is received because the USB spec requires that a STALL condition is cleared when a SETUP packet is received.

EP_STALL_ARM

Used by the host controller. Sets the wait time in microseconds before trying again if the device replies with a NAK.

NAK_POLL

Device: bits are set when the IRQ_ON_NAK or IRQ_ON_STALL bits are set. For EP0 this comes from SIE_CTRL. For all other endpoints it comes from the endpoint control register.

EP_STATUS_STALL_NAK

Where to connect the USB controller. Should be to_phy by default.

USB_MUXING

Overrides for the power signals in the event that the VBUS signals are not hooked up to GPIO. Set the value of the override and then the override enable to switch over to the override value.

USB_PWR

This register allows for direct control of the USB phy. Use in conjunction with usbphy_direct_override register to enable each override bit.

USBPHY_DIRECT

Override enable for each control in usbphy_direct

USBPHY_DIRECT_OVERRIDE

Used to adjust trim values of USB phy pull down resistors.

USBPHY_TRIM

Raw Interrupts

INTR

Interrupt Enable

INTE

Interrupt Force

INTF

Interrupt status after masking & forcing

INTS

USBPHY_DIRECT_OVERRIDE_Register

type USBPHY_DIRECT_OVERRIDE_Register is record
   DP_PULLUP_HISEL_OVERRIDE_EN : Boolean := False;
   DM_PULLUP_HISEL_OVERRIDE_EN : Boolean := False;
   DP_PULLUP_EN_OVERRIDE_EN    : Boolean := False;
   DP_PULLDN_EN_OVERRIDE_EN    : Boolean := False;
   DM_PULLDN_EN_OVERRIDE_EN    : Boolean := False;
   TX_DP_OE_OVERRIDE_EN        : Boolean := False;
   TX_DM_OE_OVERRIDE_EN        : Boolean := False;
   TX_DP_OVERRIDE_EN           : Boolean := False;
   TX_DM_OVERRIDE_EN           : Boolean := False;
   RX_PD_OVERRIDE_EN           : Boolean := False;
   TX_PD_OVERRIDE_EN           : Boolean := False;
   TX_FSSLEW_OVERRIDE_EN       : Boolean := False;
   DM_PULLUP_OVERRIDE_EN       : Boolean := False;
   Reserved_13_14              : HAL.UInt2 := 16#0#;
   TX_DIFFMODE_OVERRIDE_EN     : Boolean := False;
   Reserved_16_31              : HAL.UInt16 := 16#0#;
end record;
Record fields
DP_PULLUP_HISEL_OVERRIDE_EN

unspecified

DM_PULLUP_HISEL_OVERRIDE_EN

unspecified

DP_PULLUP_EN_OVERRIDE_EN

unspecified

DP_PULLDN_EN_OVERRIDE_EN

unspecified

DM_PULLDN_EN_OVERRIDE_EN

unspecified

TX_DP_OE_OVERRIDE_EN

unspecified

TX_DM_OE_OVERRIDE_EN

unspecified

TX_DP_OVERRIDE_EN

unspecified

TX_DM_OVERRIDE_EN

unspecified

RX_PD_OVERRIDE_EN

unspecified

TX_PD_OVERRIDE_EN

unspecified

TX_FSSLEW_OVERRIDE_EN

unspecified

DM_PULLUP_OVERRIDE_EN

unspecified

Reserved_13_14

unspecified

TX_DIFFMODE_OVERRIDE_EN

unspecified

Reserved_16_31

USBPHY_DIRECT_Register

type USBPHY_DIRECT_Register is record
   DP_PULLUP_HISEL : Boolean := False;
   DP_PULLUP_EN    : Boolean := False;
   DP_PULLDN_EN    : Boolean := False;
   Reserved_3_3    : HAL.Bit := 16#0#;
   DM_PULLUP_HISEL : Boolean := False;
   DM_PULLUP_EN    : Boolean := False;
   DM_PULLDN_EN    : Boolean := False;
   Reserved_7_7    : HAL.Bit := 16#0#;
   TX_DP_OE        : Boolean := False;
   TX_DM_OE        : Boolean := False;
   TX_DP           : Boolean := False;
   TX_DM           : Boolean := False;
   RX_PD           : Boolean := False;
   TX_PD           : Boolean := False;
   TX_FSSLEW       : Boolean := False;
   TX_DIFFMODE     : Boolean := False;
   RX_DD           : Boolean := False;
   RX_DP           : Boolean := False;
   RX_DM           : Boolean := False;
   DP_OVCN         : Boolean := False;
   DM_OVCN         : Boolean := False;
   DP_OVV          : Boolean := False;
   DM_OVV          : Boolean := False;
   Reserved_23_31  : HAL.UInt9 := 16#0#;
end record;
Record fields
DP_PULLUP_HISEL

DP pull up enable

DP_PULLUP_EN

DP pull down enable

DP_PULLDN_EN

unspecified

Reserved_3_3

Enable the second DM pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2

DM_PULLUP_HISEL

DM pull up enable

DM_PULLUP_EN

DM pull down enable

DM_PULLDN_EN

unspecified

Reserved_7_7

Output enable. If TX_DIFFMODE=1, OE for DPP/DPM diff pair. 0 - DPP/DPM in Hi-Z state; 1 - DPP/DPM driving\n If TX_DIFFMODE=0, OE for DPP only. 0 - DPP in Hi-Z state; 1 - DPP driving

TX_DP_OE

Output enable. If TX_DIFFMODE=1, Ignored.\n If TX_DIFFMODE=0, OE for DPM only. 0 - DPM in Hi-Z state; 1 - DPM driving

TX_DM_OE

Output data. If TX_DIFFMODE=1, Drives DPP/DPM diff pair. TX_DP_OE=1 to enable drive. DPP=TX_DP, DPM=~TX_DP\n If TX_DIFFMODE=0, Drives DPP only. TX_DP_OE=1 to enable drive. DPP=TX_DP

TX_DP

Output data. TX_DIFFMODE=1, Ignored\n TX_DIFFMODE=0, Drives DPM only. TX_DM_OE=1 to enable drive. DPM=TX_DM

TX_DM

RX power down override (if override enable is set). 1 = powered down.

RX_PD

TX power down override (if override enable is set). 1 = powered down.

TX_PD

TX_FSSLEW=0: Low speed slew rate\n TX_FSSLEW=1: Full speed slew rate

TX_FSSLEW

TX_DIFFMODE=0: Single ended mode\n TX_DIFFMODE=1: Differential drive mode (TX_DM, TX_DM_OE ignored)

TX_DIFFMODE

Read-only. Differential RX

RX_DD

Read-only. DPP pin state

RX_DP

Read-only. DPM pin state

RX_DM

Read-only. DP overcurrent

DP_OVCN

Read-only. DM overcurrent

DM_OVCN

Read-only. DP over voltage

DP_OVV

Read-only. DM over voltage

DM_OVV

unspecified

Reserved_23_31

USBPHY_TRIM_DM_PULLDN_TRIM_Field

subtype USBPHY_TRIM_DM_PULLDN_TRIM_Field is HAL.UInt5;

USBPHY_TRIM_DP_PULLDN_TRIM_Field

subtype USBPHY_TRIM_DP_PULLDN_TRIM_Field is HAL.UInt5;

USBPHY_TRIM_Register

type USBPHY_TRIM_Register is record
   DP_PULLDN_TRIM : USBPHY_TRIM_DP_PULLDN_TRIM_Field := 16#1F#;
   Reserved_5_7   : HAL.UInt3 := 16#0#;
   DM_PULLDN_TRIM : USBPHY_TRIM_DM_PULLDN_TRIM_Field := 16#1F#;
   Reserved_13_31 : HAL.UInt19 := 16#0#;
end record;
Record fields
DP_PULLDN_TRIM

unspecified

Reserved_5_7

Value to drive to USB PHY\n DM pulldown resistor trim control\n Experimental data suggests that the reset value will work, but this register allows adjustment if required

DM_PULLDN_TRIM

unspecified

Reserved_13_31