atsam4ls8c_pac/
spi.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Control Register"]
5    pub cr: CR,
6    #[doc = "0x04 - Mode Register"]
7    pub mr: MR,
8    #[doc = "0x08 - Receive Data Register"]
9    pub rdr: RDR,
10    #[doc = "0x0c - Transmit Data Register"]
11    pub tdr: TDR,
12    #[doc = "0x10 - Status Register"]
13    pub sr: SR,
14    #[doc = "0x14 - Interrupt Enable Register"]
15    pub ier: IER,
16    #[doc = "0x18 - Interrupt Disable Register"]
17    pub idr: IDR,
18    #[doc = "0x1c - Interrupt Mask Register"]
19    pub imr: IMR,
20    _reserved8: [u8; 0x10],
21    #[doc = "0x30..0x40 - Chip Select Register"]
22    pub csr: [CSR; 4],
23    _reserved9: [u8; 0xa4],
24    #[doc = "0xe4 - Write Protection control Register"]
25    pub wpcr: WPCR,
26    #[doc = "0xe8 - Write Protection status Register"]
27    pub wpsr: WPSR,
28    _reserved11: [u8; 0x0c],
29    #[doc = "0xf8 - Features Register"]
30    pub features: FEATURES,
31    #[doc = "0xfc - Version Register"]
32    pub version: VERSION,
33}
34#[doc = "CR (w) register accessor: an alias for `Reg<CR_SPEC>`"]
35pub type CR = crate::Reg<cr::CR_SPEC>;
36#[doc = "Control Register"]
37pub mod cr;
38#[doc = "CSR (rw) register accessor: an alias for `Reg<CSR_SPEC>`"]
39pub type CSR = crate::Reg<csr::CSR_SPEC>;
40#[doc = "Chip Select Register"]
41pub mod csr;
42#[doc = "FEATURES (r) register accessor: an alias for `Reg<FEATURES_SPEC>`"]
43pub type FEATURES = crate::Reg<features::FEATURES_SPEC>;
44#[doc = "Features Register"]
45pub mod features;
46#[doc = "IDR (w) register accessor: an alias for `Reg<IDR_SPEC>`"]
47pub type IDR = crate::Reg<idr::IDR_SPEC>;
48#[doc = "Interrupt Disable Register"]
49pub mod idr;
50#[doc = "IER (w) register accessor: an alias for `Reg<IER_SPEC>`"]
51pub type IER = crate::Reg<ier::IER_SPEC>;
52#[doc = "Interrupt Enable Register"]
53pub mod ier;
54#[doc = "IMR (r) register accessor: an alias for `Reg<IMR_SPEC>`"]
55pub type IMR = crate::Reg<imr::IMR_SPEC>;
56#[doc = "Interrupt Mask Register"]
57pub mod imr;
58#[doc = "MR (rw) register accessor: an alias for `Reg<MR_SPEC>`"]
59pub type MR = crate::Reg<mr::MR_SPEC>;
60#[doc = "Mode Register"]
61pub mod mr;
62#[doc = "RDR (r) register accessor: an alias for `Reg<RDR_SPEC>`"]
63pub type RDR = crate::Reg<rdr::RDR_SPEC>;
64#[doc = "Receive Data Register"]
65pub mod rdr;
66#[doc = "SR (r) register accessor: an alias for `Reg<SR_SPEC>`"]
67pub type SR = crate::Reg<sr::SR_SPEC>;
68#[doc = "Status Register"]
69pub mod sr;
70#[doc = "TDR (w) register accessor: an alias for `Reg<TDR_SPEC>`"]
71pub type TDR = crate::Reg<tdr::TDR_SPEC>;
72#[doc = "Transmit Data Register"]
73pub mod tdr;
74#[doc = "VERSION (r) register accessor: an alias for `Reg<VERSION_SPEC>`"]
75pub type VERSION = crate::Reg<version::VERSION_SPEC>;
76#[doc = "Version Register"]
77pub mod version;
78#[doc = "WPCR (rw) register accessor: an alias for `Reg<WPCR_SPEC>`"]
79pub type WPCR = crate::Reg<wpcr::WPCR_SPEC>;
80#[doc = "Write Protection control Register"]
81pub mod wpcr;
82#[doc = "WPSR (r) register accessor: an alias for `Reg<WPSR_SPEC>`"]
83pub type WPSR = crate::Reg<wpsr::WPSR_SPEC>;
84#[doc = "Write Protection status Register"]
85pub mod wpsr;