------------- Registers -- -------------
SPI0_Periph : aliased SPI_Peripheral
with Import, Address => SPI0_Base;
SPI1_Periph : aliased SPI_Peripheral
with Import, Address => SPI1_Base;
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;
Control register 1, SSPCR1 on page 3-5
Data register, SSPDR on page 3-6
Status register, SSPSR on page 3-7
Clock prescale register, SSPCPSR on page 3-8
Interrupt mask set or clear register, SSPIMSC on page 3-9
Raw interrupt status register, SSPRIS on page 3-10
Masked interrupt status register, SSPMIS on page 3-11
Interrupt clear register, SSPICR on page 3-11
DMA control register, SSPDMACR on page 3-12
Peripheral identification registers, SSPPeriphID0-3 on page 3-13
Peripheral identification registers, SSPPeriphID0-3 on page 3-13
Peripheral identification registers, SSPPeriphID0-3 on page 3-13
Peripheral identification registers, SSPPeriphID0-3 on page 3-13
PrimeCell identification registers, SSPPCellID0-3 on page 3-16
PrimeCell identification registers, SSPPCellID0-3 on page 3-16
PrimeCell identification registers, SSPPCellID0-3 on page 3-16
PrimeCell identification registers, SSPPCellID0-3 on page 3-16
subtype SSPCPSR_CPSDVSR_Field is HAL.UInt8;
type SSPCPSR_Register is record
CPSDVSR : SSPCPSR_CPSDVSR_Field := 16#0#;
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record;
unspecified
subtype SSPCR0_DSS_Field is HAL.UInt4;
subtype SSPCR0_FRF_Field is HAL.UInt2;
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;
Frame format: 00 Motorola SPI frame format. 01 TI synchronous serial frame format. 10 National Microwire frame format. 11 Reserved, undefined operation.
SSPCLKOUT polarity, applicable to Motorola SPI frame format only. See Motorola SPI frame format on page 2-10.
SSPCLKOUT phase, applicable to Motorola SPI frame format only. See Motorola SPI frame format on page 2-10.
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.
unspecified
subtype SSPCR0_SCR_Field is HAL.UInt8;
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;
Synchronous serial port enable: 0 SSP operation disabled. 1 SSP operation enabled.
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.
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.
unspecified
type SSPDMACR_Register is record
RXDMAE : Boolean := False;
TXDMAE : Boolean := False;
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record;
Transmit DMA Enable. If this bit is set to 1, DMA for the transmit FIFO is enabled.
unspecified
subtype SSPDR_DATA_Field is HAL.UInt16;
type SSPDR_Register is record
DATA : SSPDR_DATA_Field := 16#0#;
Reserved_16_31 : HAL.UInt16 := 16#0#;
end record;
unspecified
type SSPICR_Register is record
RORIC : Boolean := False;
RTIC : Boolean := False;
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record;
Write data bit of one shall clear (set to zero) the corresponding bit in the field. Clears the SSPRTINTR interrupt
unspecified
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;
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.
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.
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.
unspecified
type SSPMIS_Register is record
RORMIS : Boolean;
RTMIS : Boolean;
RXMIS : Boolean;
TXMIS : Boolean;
Reserved_4_31 : HAL.UInt28;
end record;
Read-only. Gives the receive timeout masked interrupt state, after masking, of the SSPRTINTR interrupt
Read-only. Gives the receive FIFO masked interrupt state, after masking, of the SSPRXINTR interrupt
Read-only. Gives the transmit FIFO masked interrupt state, after masking, of the SSPTXINTR interrupt
unspecified
type SSPPCELLID0_Register is record
SSPPCELLID0 : SSPPCELLID0_SSPPCELLID0_Field;
Reserved_8_31 : HAL.UInt24;
end record;
unspecified
subtype SSPPCELLID0_SSPPCELLID0_Field is HAL.UInt8;
type SSPPCELLID1_Register is record
SSPPCELLID1 : SSPPCELLID1_SSPPCELLID1_Field;
Reserved_8_31 : HAL.UInt24;
end record;
unspecified
subtype SSPPCELLID1_SSPPCELLID1_Field is HAL.UInt8;
type SSPPCELLID2_Register is record
SSPPCELLID2 : SSPPCELLID2_SSPPCELLID2_Field;
Reserved_8_31 : HAL.UInt24;
end record;
unspecified
subtype SSPPCELLID2_SSPPCELLID2_Field is HAL.UInt8;
type SSPPCELLID3_Register is record
SSPPCELLID3 : SSPPCELLID3_SSPPCELLID3_Field;
Reserved_8_31 : HAL.UInt24;
end record;
unspecified
subtype SSPPCELLID3_SSPPCELLID3_Field is HAL.UInt8;
subtype SSPPERIPHID0_PARTNUMBER0_Field is HAL.UInt8;
type SSPPERIPHID0_Register is record
PARTNUMBER0 : SSPPERIPHID0_PARTNUMBER0_Field;
Reserved_8_31 : HAL.UInt24;
end record;
unspecified
subtype SSPPERIPHID1_DESIGNER0_Field is HAL.UInt4;
subtype SSPPERIPHID1_PARTNUMBER1_Field is HAL.UInt4;
type SSPPERIPHID1_Register is record
PARTNUMBER1 : SSPPERIPHID1_PARTNUMBER1_Field;
DESIGNER0 : SSPPERIPHID1_DESIGNER0_Field;
Reserved_8_31 : HAL.UInt24;
end record;
Read-only. These bits read back as 0x1
unspecified
subtype SSPPERIPHID2_DESIGNER1_Field is HAL.UInt4;
type SSPPERIPHID2_Register is record
DESIGNER1 : SSPPERIPHID2_DESIGNER1_Field;
REVISION : SSPPERIPHID2_REVISION_Field;
Reserved_8_31 : HAL.UInt24;
end record;
Read-only. These bits return the peripheral revision
unspecified
subtype SSPPERIPHID2_REVISION_Field is HAL.UInt4;
subtype SSPPERIPHID3_CONFIGURATION_Field is HAL.UInt8;
type SSPPERIPHID3_Register is record
CONFIGURATION : SSPPERIPHID3_CONFIGURATION_Field;
Reserved_8_31 : HAL.UInt24;
end record;
unspecified
type SSPRIS_Register is record
RORRIS : Boolean;
RTRIS : Boolean;
RXRIS : Boolean;
TXRIS : Boolean;
Reserved_4_31 : HAL.UInt28;
end record;
Read-only. Gives the raw interrupt state, prior to masking, of the SSPRTINTR interrupt
Read-only. Gives the raw interrupt state, prior to masking, of the SSPRXINTR interrupt
Read-only. Gives the raw interrupt state, prior to masking, of the SSPTXINTR interrupt
unspecified
type SSPSR_Register is record
TFE : Boolean;
TNF : Boolean;
RNE : Boolean;
RFF : Boolean;
BSY : Boolean;
Reserved_5_31 : HAL.UInt27;
end record;
Read-only. Transmit FIFO not full, RO: 0 Transmit FIFO is full. 1 Transmit FIFO is not full.
Read-only. Receive FIFO not empty, RO: 0 Receive FIFO is empty. 1 Receive FIFO is not empty.
Read-only. Receive FIFO full, RO: 0 Receive FIFO is not full. 1 Receive FIFO is full.
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.
unspecified