RP2040_SVD.SPI

Entities

Record Types

Subtypes

Variables

Description

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

SPI0_Periph

SPI0_Periph : aliased SPI_Peripheral
  with Import, Address => SPI0_Base;

SPI1_Periph

SPI1_Periph : aliased SPI_Peripheral
  with Import, Address => SPI1_Base;

SPI_Peripheral

type SPI_Peripheral is record
   SSPCR0       : aliased SSPCR0_Register;
   SSPCR1       : aliased SSPCR1_Register;
   SSPDR        : aliased SSPDR_Register;
   SSPSR        : aliased SSPSR_Register;
   SSPCPSR      : aliased SSPCPSR_Register;
   SSPIMSC      : aliased SSPIMSC_Register;
   SSPRIS       : aliased SSPRIS_Register;
   SSPMIS       : aliased SSPMIS_Register;
   SSPICR       : aliased SSPICR_Register;
   SSPDMACR     : aliased SSPDMACR_Register;
   SSPPERIPHID0 : aliased SSPPERIPHID0_Register;
   SSPPERIPHID1 : aliased SSPPERIPHID1_Register;
   SSPPERIPHID2 : aliased SSPPERIPHID2_Register;
   SSPPERIPHID3 : aliased SSPPERIPHID3_Register;
   SSPPCELLID0  : aliased SSPPCELLID0_Register;
   SSPPCELLID1  : aliased SSPPCELLID1_Register;
   SSPPCELLID2  : aliased SSPPCELLID2_Register;
   SSPPCELLID3  : aliased SSPPCELLID3_Register;
end record;
Record fields
SSPCR0

Control register 1, SSPCR1 on page 3-5

SSPCR1

Data register, SSPDR on page 3-6

SSPDR

Status register, SSPSR on page 3-7

SSPSR

Clock prescale register, SSPCPSR on page 3-8

SSPCPSR

Interrupt mask set or clear register, SSPIMSC on page 3-9

SSPIMSC

Raw interrupt status register, SSPRIS on page 3-10

SSPRIS

Masked interrupt status register, SSPMIS on page 3-11

SSPMIS

Interrupt clear register, SSPICR on page 3-11

SSPICR

DMA control register, SSPDMACR on page 3-12

SSPDMACR

Peripheral identification registers, SSPPeriphID0-3 on page 3-13

SSPPERIPHID0

Peripheral identification registers, SSPPeriphID0-3 on page 3-13

SSPPERIPHID1

Peripheral identification registers, SSPPeriphID0-3 on page 3-13

SSPPERIPHID2

Peripheral identification registers, SSPPeriphID0-3 on page 3-13

SSPPERIPHID3

PrimeCell identification registers, SSPPCellID0-3 on page 3-16

SSPPCELLID0

PrimeCell identification registers, SSPPCellID0-3 on page 3-16

SSPPCELLID1

PrimeCell identification registers, SSPPCellID0-3 on page 3-16

SSPPCELLID2

PrimeCell identification registers, SSPPCellID0-3 on page 3-16

SSPPCELLID3

SSPCPSR_CPSDVSR_Field

subtype SSPCPSR_CPSDVSR_Field is HAL.UInt8;

SSPCPSR_Register

type SSPCPSR_Register is record
   CPSDVSR       : SSPCPSR_CPSDVSR_Field := 16#0#;
   Reserved_8_31 : HAL.UInt24 := 16#0#;
end record;
Record fields
CPSDVSR

unspecified

Reserved_8_31

SSPCR0_DSS_Field

subtype SSPCR0_DSS_Field is HAL.UInt4;

SSPCR0_FRF_Field

subtype SSPCR0_FRF_Field is HAL.UInt2;

SSPCR0_Register

type SSPCR0_Register is record
   DSS            : SSPCR0_DSS_Field := 16#0#;
   FRF            : SSPCR0_FRF_Field := 16#0#;
   SPO            : Boolean := False;
   SPH            : Boolean := False;
   SCR            : SSPCR0_SCR_Field := 16#0#;
   Reserved_16_31 : HAL.UInt16 := 16#0#;
end record;
Record fields
DSS

Frame format: 00 Motorola SPI frame format. 01 TI synchronous serial frame format. 10 National Microwire frame format. 11 Reserved, undefined operation.

FRF

SSPCLKOUT polarity, applicable to Motorola SPI frame format only. See Motorola SPI frame format on page 2-10.

SPO

SSPCLKOUT phase, applicable to Motorola SPI frame format only. See Motorola SPI frame format on page 2-10.

SPH

Serial clock rate. The value SCR is used to generate the transmit and receive bit rate of the PrimeCell SSP. The bit rate is: F SSPCLK CPSDVSR x (1+SCR) where CPSDVSR is an even value from 2-254, programmed through the SSPCPSR register and SCR is a value from 0-255.

SCR

unspecified

Reserved_16_31

SSPCR0_SCR_Field

subtype SSPCR0_SCR_Field is HAL.UInt8;

SSPCR1_Register

type SSPCR1_Register is record
   LBM           : Boolean := False;
   SSE           : Boolean := False;
   MS            : Boolean := False;
   SOD           : Boolean := False;
   Reserved_4_31 : HAL.UInt28 := 16#0#;
end record;
Record fields
LBM

Synchronous serial port enable: 0 SSP operation disabled. 1 SSP operation enabled.

SSE

Master or slave mode select. This bit can be modified only when the PrimeCell SSP is disabled, SSE=0: 0 Device configured as master, default. 1 Device configured as slave.

MS

Slave-mode output disable. This bit is relevant only in the slave mode, MS=1. In multiple-slave systems, it is possible for an PrimeCell SSP master to broadcast a message to all slaves in the system while ensuring that only one slave drives data onto its serial output line. In such systems the RXD lines from multiple slaves could be tied together. To operate in such systems, the SOD bit can be set if the PrimeCell SSP slave is not supposed to drive the SSPTXD line: 0 SSP can drive the SSPTXD output in slave mode. 1 SSP must not drive the SSPTXD output in slave mode.

SOD

unspecified

Reserved_4_31

SSPDMACR_Register

type SSPDMACR_Register is record
   RXDMAE        : Boolean := False;
   TXDMAE        : Boolean := False;
   Reserved_2_31 : HAL.UInt30 := 16#0#;
end record;
Record fields
RXDMAE

Transmit DMA Enable. If this bit is set to 1, DMA for the transmit FIFO is enabled.

TXDMAE

unspecified

Reserved_2_31

SSPDR_DATA_Field

subtype SSPDR_DATA_Field is HAL.UInt16;

SSPDR_Register

type SSPDR_Register is record
   DATA           : SSPDR_DATA_Field := 16#0#;
   Reserved_16_31 : HAL.UInt16 := 16#0#;
end record;
Record fields
DATA

unspecified

Reserved_16_31

SSPICR_Register

type SSPICR_Register is record
   RORIC         : Boolean := False;
   RTIC          : Boolean := False;
   Reserved_2_31 : HAL.UInt30 := 16#0#;
end record;
Record fields
RORIC

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

RTIC

unspecified

Reserved_2_31

SSPIMSC_Register

type SSPIMSC_Register is record
   RORIM         : Boolean := False;
   RTIM          : Boolean := False;
   RXIM          : Boolean := False;
   TXIM          : Boolean := False;
   Reserved_4_31 : HAL.UInt28 := 16#0#;
end record;
Record fields
RORIM

Receive timeout interrupt mask: 0 Receive FIFO not empty and no read prior to timeout period interrupt is masked. 1 Receive FIFO not empty and no read prior to timeout period interrupt is not masked.

RTIM

Receive FIFO interrupt mask: 0 Receive FIFO half full or less condition interrupt is masked. 1 Receive FIFO half full or less condition interrupt is not masked.

RXIM

Transmit FIFO interrupt mask: 0 Transmit FIFO half empty or less condition interrupt is masked. 1 Transmit FIFO half empty or less condition interrupt is not masked.

TXIM

unspecified

Reserved_4_31

SSPMIS_Register

type SSPMIS_Register is record
   RORMIS        : Boolean;
   RTMIS         : Boolean;
   RXMIS         : Boolean;
   TXMIS         : Boolean;
   Reserved_4_31 : HAL.UInt28;
end record;
Record fields
RORMIS

Read-only. Gives the receive timeout masked interrupt state, after masking, of the SSPRTINTR interrupt

RTMIS

Read-only. Gives the receive FIFO masked interrupt state, after masking, of the SSPRXINTR interrupt

RXMIS

Read-only. Gives the transmit FIFO masked interrupt state, after masking, of the SSPTXINTR interrupt

TXMIS

unspecified

Reserved_4_31

SSPPCELLID0_Register

type SSPPCELLID0_Register is record
   SSPPCELLID0   : SSPPCELLID0_SSPPCELLID0_Field;
   Reserved_8_31 : HAL.UInt24;
end record;
Record fields
SSPPCELLID0

unspecified

Reserved_8_31

SSPPCELLID0_SSPPCELLID0_Field

subtype SSPPCELLID0_SSPPCELLID0_Field is HAL.UInt8;

SSPPCELLID1_Register

type SSPPCELLID1_Register is record
   SSPPCELLID1   : SSPPCELLID1_SSPPCELLID1_Field;
   Reserved_8_31 : HAL.UInt24;
end record;
Record fields
SSPPCELLID1

unspecified

Reserved_8_31

SSPPCELLID1_SSPPCELLID1_Field

subtype SSPPCELLID1_SSPPCELLID1_Field is HAL.UInt8;

SSPPCELLID2_Register

type SSPPCELLID2_Register is record
   SSPPCELLID2   : SSPPCELLID2_SSPPCELLID2_Field;
   Reserved_8_31 : HAL.UInt24;
end record;
Record fields
SSPPCELLID2

unspecified

Reserved_8_31

SSPPCELLID2_SSPPCELLID2_Field

subtype SSPPCELLID2_SSPPCELLID2_Field is HAL.UInt8;

SSPPCELLID3_Register

type SSPPCELLID3_Register is record
   SSPPCELLID3   : SSPPCELLID3_SSPPCELLID3_Field;
   Reserved_8_31 : HAL.UInt24;
end record;
Record fields
SSPPCELLID3

unspecified

Reserved_8_31

SSPPCELLID3_SSPPCELLID3_Field

subtype SSPPCELLID3_SSPPCELLID3_Field is HAL.UInt8;

SSPPERIPHID0_PARTNUMBER0_Field

subtype SSPPERIPHID0_PARTNUMBER0_Field is HAL.UInt8;

SSPPERIPHID0_Register

type SSPPERIPHID0_Register is record
   PARTNUMBER0   : SSPPERIPHID0_PARTNUMBER0_Field;
   Reserved_8_31 : HAL.UInt24;
end record;
Record fields
PARTNUMBER0

unspecified

Reserved_8_31

SSPPERIPHID1_DESIGNER0_Field

subtype SSPPERIPHID1_DESIGNER0_Field is HAL.UInt4;

SSPPERIPHID1_PARTNUMBER1_Field

subtype SSPPERIPHID1_PARTNUMBER1_Field is HAL.UInt4;

SSPPERIPHID1_Register

type SSPPERIPHID1_Register is record
   PARTNUMBER1   : SSPPERIPHID1_PARTNUMBER1_Field;
   DESIGNER0     : SSPPERIPHID1_DESIGNER0_Field;
   Reserved_8_31 : HAL.UInt24;
end record;
Record fields
PARTNUMBER1

Read-only. These bits read back as 0x1

DESIGNER0

unspecified

Reserved_8_31

SSPPERIPHID2_DESIGNER1_Field

subtype SSPPERIPHID2_DESIGNER1_Field is HAL.UInt4;

SSPPERIPHID2_Register

type SSPPERIPHID2_Register is record
   DESIGNER1     : SSPPERIPHID2_DESIGNER1_Field;
   REVISION      : SSPPERIPHID2_REVISION_Field;
   Reserved_8_31 : HAL.UInt24;
end record;
Record fields
DESIGNER1

Read-only. These bits return the peripheral revision

REVISION

unspecified

Reserved_8_31

SSPPERIPHID2_REVISION_Field

subtype SSPPERIPHID2_REVISION_Field is HAL.UInt4;

SSPPERIPHID3_CONFIGURATION_Field

subtype SSPPERIPHID3_CONFIGURATION_Field is HAL.UInt8;

SSPPERIPHID3_Register

type SSPPERIPHID3_Register is record
   CONFIGURATION : SSPPERIPHID3_CONFIGURATION_Field;
   Reserved_8_31 : HAL.UInt24;
end record;
Record fields
CONFIGURATION

unspecified

Reserved_8_31

SSPRIS_Register

type SSPRIS_Register is record
   RORRIS        : Boolean;
   RTRIS         : Boolean;
   RXRIS         : Boolean;
   TXRIS         : Boolean;
   Reserved_4_31 : HAL.UInt28;
end record;
Record fields
RORRIS

Read-only. Gives the raw interrupt state, prior to masking, of the SSPRTINTR interrupt

RTRIS

Read-only. Gives the raw interrupt state, prior to masking, of the SSPRXINTR interrupt

RXRIS

Read-only. Gives the raw interrupt state, prior to masking, of the SSPTXINTR interrupt

TXRIS

unspecified

Reserved_4_31

SSPSR_Register

type SSPSR_Register is record
   TFE           : Boolean;
   TNF           : Boolean;
   RNE           : Boolean;
   RFF           : Boolean;
   BSY           : Boolean;
   Reserved_5_31 : HAL.UInt27;
end record;
Record fields
TFE

Read-only. Transmit FIFO not full, RO: 0 Transmit FIFO is full. 1 Transmit FIFO is not full.

TNF

Read-only. Receive FIFO not empty, RO: 0 Receive FIFO is empty. 1 Receive FIFO is not empty.

RNE

Read-only. Receive FIFO full, RO: 0 Receive FIFO is not full. 1 Receive FIFO is full.

RFF

Read-only. PrimeCell SSP busy flag, RO: 0 SSP is idle. 1 SSP is currently transmitting and/or receiving a frame or the transmit FIFO is not empty.

BSY

unspecified

Reserved_5_31