------------- Registers -- -------------
subtype ADDR_ENDP_ADDRESS_Field is HAL.UInt7;
subtype ADDR_ENDP_ENDPOINT_Field is HAL.UInt4;
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;
unspecified
Device endpoint to send data to. Only valid for HOST mode.
unspecified
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;
unspecified
Endpoint number of the interrupt endpoint
unspecified
Direction of the interrupt endpoint. In=0, Out=1
Interrupt EP requires preamble (is a low speed device on a full speed hub)
unspecified
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;
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
Read-only.
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;
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
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;
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
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;
type EP_STALL_ARM_Register is record
EP0_IN : Boolean := False;
EP0_OUT : Boolean := False;
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record;
unspecified
unspecified
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;
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
Write data bit of one shall clear (set to zero) the corresponding bit in the field.
subtype INT_EP_CTRL_INT_EP_ACTIVE_Field is HAL.UInt15;
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;
Host: Enable interrupt endpoint 1 -> 15
unspecified
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;
Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME
Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD
Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.
Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.
Source: SIE_STATUS.DATA_SEQ_ERROR
Source: SIE_STATUS.RX_TIMEOUT
Source: SIE_STATUS.RX_OVERFLOW
Source: SIE_STATUS.BIT_STUFF_ERROR
Source: SIE_STATUS.CRC_ERROR
Source: SIE_STATUS.STALL_REC
Source: SIE_STATUS.VBUS_DETECTED
Source: SIE_STATUS.BUS_RESET
Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED
Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED
Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME
Device. Source: SIE_STATUS.SETUP_REC
Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD
Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in ABORT_DONE.
Raised when any bit in EP_STATUS_STALL_NAK is set. Clear by clearing all bits in EP_STATUS_STALL_NAK.
unspecified
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;
Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME
Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD
Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.
Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.
Source: SIE_STATUS.DATA_SEQ_ERROR
Source: SIE_STATUS.RX_TIMEOUT
Source: SIE_STATUS.RX_OVERFLOW
Source: SIE_STATUS.BIT_STUFF_ERROR
Source: SIE_STATUS.CRC_ERROR
Source: SIE_STATUS.STALL_REC
Source: SIE_STATUS.VBUS_DETECTED
Source: SIE_STATUS.BUS_RESET
Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED
Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED
Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME
Device. Source: SIE_STATUS.SETUP_REC
Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD
Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in ABORT_DONE.
Raised when any bit in EP_STATUS_STALL_NAK is set. Clear by clearing all bits in EP_STATUS_STALL_NAK.
unspecified
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;
Read-only. Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME
Read-only. Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD
Read-only. Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.
Read-only. Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.
Read-only. Source: SIE_STATUS.DATA_SEQ_ERROR
Read-only. Source: SIE_STATUS.RX_TIMEOUT
Read-only. Source: SIE_STATUS.RX_OVERFLOW
Read-only. Source: SIE_STATUS.BIT_STUFF_ERROR
Read-only. Source: SIE_STATUS.CRC_ERROR
Read-only. Source: SIE_STATUS.STALL_REC
Read-only. Source: SIE_STATUS.VBUS_DETECTED
Read-only. Source: SIE_STATUS.BUS_RESET
Read-only. Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED
Read-only. Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED
Read-only. Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME
Read-only. Device. Source: SIE_STATUS.SETUP_REC
Read-only. Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD
Read-only. Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in 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.
unspecified
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;
Read-only. Host: raised when a device wakes up the host. Cleared by writing to SIE_STATUS.RESUME
Read-only. Host: raised every time the host sends a SOF (Start of Frame). Cleared by reading SOF_RD
Read-only. Raised every time SIE_STATUS.TRANS_COMPLETE is set. Clear by writing to this bit.
Read-only. Raised when any bit in BUFF_STATUS is set. Clear by clearing all bits in BUFF_STATUS.
Read-only. Source: SIE_STATUS.DATA_SEQ_ERROR
Read-only. Source: SIE_STATUS.RX_TIMEOUT
Read-only. Source: SIE_STATUS.RX_OVERFLOW
Read-only. Source: SIE_STATUS.BIT_STUFF_ERROR
Read-only. Source: SIE_STATUS.CRC_ERROR
Read-only. Source: SIE_STATUS.STALL_REC
Read-only. Source: SIE_STATUS.VBUS_DETECTED
Read-only. Source: SIE_STATUS.BUS_RESET
Read-only. Set when the device connection state changes. Cleared by writing to SIE_STATUS.CONNECTED
Read-only. Set when the device suspend state changes. Cleared by writing to SIE_STATUS.SUSPENDED
Read-only. Set when the device receives a resume from the host. Cleared by writing to SIE_STATUS.RESUME
Read-only. Device. Source: SIE_STATUS.SETUP_REC
Read-only. Set every time the device receives a SOF (Start of Frame) packet. Cleared by reading SOF_RD
Read-only. Raised when any bit in ABORT_DONE is set. Clear by clearing all bits in 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.
unspecified
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;
Device mode = 0, Host mode = 1
unspecified
Reduced timings for simulation
subtype NAK_POLL_DELAY_FS_Field is HAL.UInt10;
subtype NAK_POLL_DELAY_LS_Field is HAL.UInt10;
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;
unspecified
NAK polling interval for a full speed device
unspecified
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;
Host: Send Setup packet
Host: Send transaction (OUT from host)
Host: Receive transaction (IN to host)
After a write operation all bits in the field are cleared (set to zero). Host: Stop transaction
unspecified
Host: Preable enable for LS device on FS hub
unspecified
Host: Delay packet(s) until after SOF
Host: Enable SOF generation (for full speed bus)
Host: Enable keep alive packet (for low speed bus)
Host: Enable VBUS
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.
After a write operation all bits in the field are cleared (set to zero). Host: Reset bus
unspecified
Host: Enable pull down resistors
Device: Enable pull up resistor
Device: Pull-up strength (0=1K2, 1=2k3)
Power down bus transceiver
unspecified
Direct control of DM
Direct control of DP
Direct bus drive enable
Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a NAK
Device: Set bit in BUFF_STATUS for every 2 buffers completed on EP0
Device: Set bit in BUFF_STATUS for every buffer completed on EP0
Device: EP0 single buffered = 0, double buffered = 1
Device: Set bit in EP_STATUS_STALL_NAK when EP0 sends a STALL
subtype SIE_STATUS_LINE_STATE_Field is HAL.UInt2;
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;
unspecified
Read-only. USB bus 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.
unspecified
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
Read-only. VBUS over current detected
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.
unspecified
Write data bit of one shall clear (set to zero) the corresponding bit in the field. Device: connected
Write data bit of one shall clear (set to zero) the corresponding bit in the field. Device: Setup packet received
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
Write data bit of one shall clear (set to zero) the corresponding bit in the field. Device: bus reset received
unspecified
Write data bit of one shall clear (set to zero) the corresponding bit in the field. CRC Error. Raised by the Serial RX engine.
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.
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.
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.
Write data bit of one shall clear (set to zero) the corresponding bit in the field. Host: NAK received
Write data bit of one shall clear (set to zero) the corresponding bit in the field. Host: STALL received
Write data bit of one shall clear (set to zero) the corresponding bit in the field. ACK received. Raised by both host and device.
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
An IN packet from the device has the wrong data PID
subtype SIE_STATUS_SPEED_Field is HAL.UInt2;
subtype SOF_RD_COUNT_Field is HAL.UInt11;
type SOF_RD_Register is record
COUNT : SOF_RD_COUNT_Field;
Reserved_11_31 : HAL.UInt21;
end record;
unspecified
subtype SOF_WR_COUNT_Field is HAL.UInt11;
type SOF_WR_Register is record
COUNT : SOF_WR_COUNT_Field := 16#0#;
Reserved_11_31 : HAL.UInt21 := 16#0#;
end record;
unspecified
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;
unspecified
unspecified
unspecified
unspecified
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;
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
USBCTRL_REGS_Periph : aliased USBCTRL_REGS_Peripheral
with Import, Address => USBCTRL_REGS_Base;
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;
Interrupt endpoint 1. Only valid for HOST mode.
Interrupt endpoint 2. Only valid for HOST mode.
Interrupt endpoint 3. Only valid for HOST mode.
Interrupt endpoint 4. Only valid for HOST mode.
Interrupt endpoint 5. Only valid for HOST mode.
Interrupt endpoint 6. Only valid for HOST mode.
Interrupt endpoint 7. Only valid for HOST mode.
Interrupt endpoint 8. Only valid for HOST mode.
Interrupt endpoint 9. Only valid for HOST mode.
Interrupt endpoint 10. Only valid for HOST mode.
Interrupt endpoint 11. Only valid for HOST mode.
Interrupt endpoint 12. Only valid for HOST mode.
Interrupt endpoint 13. Only valid for HOST mode.
Interrupt endpoint 14. Only valid for HOST mode.
Interrupt endpoint 15. Only valid for HOST mode.
Main control register
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.
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.
SIE control register
SIE status register
interrupt endpoint control register
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.
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.
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.
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.
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.
Used by the host controller. Sets the wait time in microseconds before trying again if the device replies with a NAK.
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.
Where to connect the USB controller. Should be to_phy by default.
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.
This register allows for direct control of the USB phy. Use in conjunction with usbphy_direct_override register to enable each override bit.
Override enable for each control in usbphy_direct
Used to adjust trim values of USB phy pull down resistors.
Raw Interrupts
Interrupt Enable
Interrupt Force
Interrupt status after masking & forcing
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;
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
unspecified
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;
DP pull up enable
DP pull down enable
unspecified
Enable the second DM pull up resistor. 0 - Pull = Rpu2; 1 - Pull = Rpu1 + Rpu2
DM pull up enable
DM pull down enable
unspecified
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
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
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
Output data. TX_DIFFMODE=1, Ignored\n TX_DIFFMODE=0, Drives DPM only. TX_DM_OE=1 to enable drive. DPM=TX_DM
RX power down override (if override enable is set). 1 = powered down.
TX power down override (if override enable is set). 1 = powered down.
TX_FSSLEW=0: Low speed slew rate\n TX_FSSLEW=1: Full speed slew rate
TX_DIFFMODE=0: Single ended mode\n TX_DIFFMODE=1: Differential drive mode (TX_DM, TX_DM_OE ignored)
Read-only. Differential RX
Read-only. DPP pin state
Read-only. DPM pin state
Read-only. DP overcurrent
Read-only. DM overcurrent
Read-only. DP over voltage
Read-only. DM over voltage
unspecified
subtype USBPHY_TRIM_DM_PULLDN_TRIM_Field is HAL.UInt5;
subtype USBPHY_TRIM_DP_PULLDN_TRIM_Field is HAL.UInt5;
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;
unspecified
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
unspecified