#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Control Register"] pub spi_cr: crate::Reg, #[doc = "0x04 - Mode Register"] pub spi_mr: crate::Reg, #[doc = "0x08 - Receive Data Register"] pub spi_rdr: crate::Reg, #[doc = "0x0c - Transmit Data Register"] pub spi_tdr: crate::Reg, #[doc = "0x10 - Status Register"] pub spi_sr: crate::Reg, #[doc = "0x14 - Interrupt Enable Register"] pub spi_ier: crate::Reg, #[doc = "0x18 - Interrupt Disable Register"] pub spi_idr: crate::Reg, #[doc = "0x1c - Interrupt Mask Register"] pub spi_imr: crate::Reg, _reserved8: [u8; 0x10], #[doc = "0x30..0x40 - Chip Select Register (CS_number = 0) 0"] pub spi_csr: [crate::Reg; 4], _reserved9: [u8; 0xa4], #[doc = "0xe4 - Write Protection Mode Register"] pub spi_wpmr: crate::Reg, #[doc = "0xe8 - Write Protection Status Register"] pub spi_wpsr: crate::Reg, _reserved11: [u8; 0x10], #[doc = "0xfc - Version Register"] pub spi_version: crate::Reg, } #[doc = "SPI_CR register accessor: an alias for `Reg`"] pub type SPI_CR = crate::Reg; #[doc = "Control Register"] pub mod spi_cr; #[doc = "SPI_MR register accessor: an alias for `Reg`"] pub type SPI_MR = crate::Reg; #[doc = "Mode Register"] pub mod spi_mr; #[doc = "SPI_RDR register accessor: an alias for `Reg`"] pub type SPI_RDR = crate::Reg; #[doc = "Receive Data Register"] pub mod spi_rdr; #[doc = "SPI_TDR register accessor: an alias for `Reg`"] pub type SPI_TDR = crate::Reg; #[doc = "Transmit Data Register"] pub mod spi_tdr; #[doc = "SPI_SR register accessor: an alias for `Reg`"] pub type SPI_SR = crate::Reg; #[doc = "Status Register"] pub mod spi_sr; #[doc = "SPI_IER register accessor: an alias for `Reg`"] pub type SPI_IER = crate::Reg; #[doc = "Interrupt Enable Register"] pub mod spi_ier; #[doc = "SPI_IDR register accessor: an alias for `Reg`"] pub type SPI_IDR = crate::Reg; #[doc = "Interrupt Disable Register"] pub mod spi_idr; #[doc = "SPI_IMR register accessor: an alias for `Reg`"] pub type SPI_IMR = crate::Reg; #[doc = "Interrupt Mask Register"] pub mod spi_imr; #[doc = "SPI_CSR register accessor: an alias for `Reg`"] pub type SPI_CSR = crate::Reg; #[doc = "Chip Select Register (CS_number = 0) 0"] pub mod spi_csr; #[doc = "SPI_WPMR register accessor: an alias for `Reg`"] pub type SPI_WPMR = crate::Reg; #[doc = "Write Protection Mode Register"] pub mod spi_wpmr; #[doc = "SPI_WPSR register accessor: an alias for `Reg`"] pub type SPI_WPSR = crate::Reg; #[doc = "Write Protection Status Register"] pub mod spi_wpsr; #[doc = "SPI_VERSION register accessor: an alias for `Reg`"] pub type SPI_VERSION = crate::Reg; #[doc = "Version Register"] pub mod spi_version;