#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { #[doc = "0x00 - Control Register"] pub cr: CR, #[doc = "0x04 - Mode Register"] pub mr: MR, #[doc = "0x08 - Receive Data Register"] pub rdr: RDR, #[doc = "0x0c - Transmit Data Register"] pub tdr: TDR, #[doc = "0x10 - Status Register"] pub sr: SR, #[doc = "0x14 - Interrupt Enable Register"] pub ier: IER, #[doc = "0x18 - Interrupt Disable Register"] pub idr: IDR, #[doc = "0x1c - Interrupt Mask Register"] pub imr: IMR, _reserved8: [u8; 0x10], #[doc = "0x30..0x40 - Chip Select Register"] pub csr: [CSR; 4], _reserved9: [u8; 0xa4], #[doc = "0xe4 - Write Protection Mode Register"] pub wpmr: WPMR, #[doc = "0xe8 - Write Protection Status Register"] pub wpsr: WPSR, _reserved11: [u8; 0x14], #[doc = "0x100 - Receive Pointer Register"] pub rpr: RPR, #[doc = "0x104 - Receive Counter Register"] pub rcr: RCR, #[doc = "0x108 - Transmit Pointer Register"] pub tpr: TPR, #[doc = "0x10c - Transmit Counter Register"] pub tcr: TCR, #[doc = "0x110 - Receive Next Pointer Register"] pub rnpr: RNPR, #[doc = "0x114 - Receive Next Counter Register"] pub rncr: RNCR, #[doc = "0x118 - Transmit Next Pointer Register"] pub tnpr: TNPR, #[doc = "0x11c - Transmit Next Counter Register"] pub tncr: TNCR, #[doc = "0x120 - Transfer Control Register"] pub ptcr: PTCR, #[doc = "0x124 - Transfer Status Register"] pub ptsr: PTSR, } #[doc = "CR (w) register accessor: an alias for `Reg`"] pub type CR = crate::Reg; #[doc = "Control Register"] pub mod cr; #[doc = "MR (rw) register accessor: an alias for `Reg`"] pub type MR = crate::Reg; #[doc = "Mode Register"] pub mod mr; #[doc = "RDR (r) register accessor: an alias for `Reg`"] pub type RDR = crate::Reg; #[doc = "Receive Data Register"] pub mod rdr; #[doc = "TDR (w) register accessor: an alias for `Reg`"] pub type TDR = crate::Reg; #[doc = "Transmit Data Register"] pub mod tdr; #[doc = "SR (r) register accessor: an alias for `Reg`"] pub type SR = crate::Reg; #[doc = "Status Register"] pub mod sr; #[doc = "IER (w) register accessor: an alias for `Reg`"] pub type IER = crate::Reg; #[doc = "Interrupt Enable Register"] pub mod ier; #[doc = "IDR (w) register accessor: an alias for `Reg`"] pub type IDR = crate::Reg; #[doc = "Interrupt Disable Register"] pub mod idr; #[doc = "IMR (r) register accessor: an alias for `Reg`"] pub type IMR = crate::Reg; #[doc = "Interrupt Mask Register"] pub mod imr; #[doc = "CSR (rw) register accessor: an alias for `Reg`"] pub type CSR = crate::Reg; #[doc = "Chip Select Register"] pub mod csr; #[doc = "WPMR (rw) register accessor: an alias for `Reg`"] pub type WPMR = crate::Reg; #[doc = "Write Protection Mode Register"] pub mod wpmr; #[doc = "WPSR (r) register accessor: an alias for `Reg`"] pub type WPSR = crate::Reg; #[doc = "Write Protection Status Register"] pub mod wpsr; #[doc = "RPR (rw) register accessor: an alias for `Reg`"] pub type RPR = crate::Reg; #[doc = "Receive Pointer Register"] pub mod rpr; #[doc = "RCR (rw) register accessor: an alias for `Reg`"] pub type RCR = crate::Reg; #[doc = "Receive Counter Register"] pub mod rcr; #[doc = "TPR (rw) register accessor: an alias for `Reg`"] pub type TPR = crate::Reg; #[doc = "Transmit Pointer Register"] pub mod tpr; #[doc = "TCR (rw) register accessor: an alias for `Reg`"] pub type TCR = crate::Reg; #[doc = "Transmit Counter Register"] pub mod tcr; #[doc = "RNPR (rw) register accessor: an alias for `Reg`"] pub type RNPR = crate::Reg; #[doc = "Receive Next Pointer Register"] pub mod rnpr; #[doc = "RNCR (rw) register accessor: an alias for `Reg`"] pub type RNCR = crate::Reg; #[doc = "Receive Next Counter Register"] pub mod rncr; #[doc = "TNPR (rw) register accessor: an alias for `Reg`"] pub type TNPR = crate::Reg; #[doc = "Transmit Next Pointer Register"] pub mod tnpr; #[doc = "TNCR (rw) register accessor: an alias for `Reg`"] pub type TNCR = crate::Reg; #[doc = "Transmit Next Counter Register"] pub mod tncr; #[doc = "PTCR (w) register accessor: an alias for `Reg`"] pub type PTCR = crate::Reg; #[doc = "Transfer Control Register"] pub mod ptcr; #[doc = "PTSR (r) register accessor: an alias for `Reg`"] pub type PTSR = crate::Reg; #[doc = "Transfer Status Register"] pub mod ptsr;