1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Control register 1"]
5 pub cr1: CR1,
6 #[doc = "0x04 - Control register 2"]
7 pub cr2: CR2,
8 #[doc = "0x08 - Own address register 1"]
9 pub oar1: OAR1,
10 _reserved3: [u8; 0x04],
11 #[doc = "0x10 - Data register"]
12 pub dr: DR,
13 #[doc = "0x14 - Status register 1"]
14 pub sr1: SR1,
15 #[doc = "0x18 - Status register 2"]
16 pub sr2: SR2,
17 #[doc = "0x1c - Clock control register"]
18 pub ccr: CCR,
19 #[doc = "0x20 - TRISE register"]
20 pub trise: TRISE,
21}
22#[doc = "CR1 (rw) register accessor: an alias for `Reg<CR1_SPEC>`"]
23pub type CR1 = crate::Reg<cr1::CR1_SPEC>;
24#[doc = "Control register 1"]
25pub mod cr1;
26#[doc = "CR2 (rw) register accessor: an alias for `Reg<CR2_SPEC>`"]
27pub type CR2 = crate::Reg<cr2::CR2_SPEC>;
28#[doc = "Control register 2"]
29pub mod cr2;
30#[doc = "OAR1 (rw) register accessor: an alias for `Reg<OAR1_SPEC>`"]
31pub type OAR1 = crate::Reg<oar1::OAR1_SPEC>;
32#[doc = "Own address register 1"]
33pub mod oar1;
34#[doc = "DR (rw) register accessor: an alias for `Reg<DR_SPEC>`"]
35pub type DR = crate::Reg<dr::DR_SPEC>;
36#[doc = "Data register"]
37pub mod dr;
38#[doc = "SR1 (rw) register accessor: an alias for `Reg<SR1_SPEC>`"]
39pub type SR1 = crate::Reg<sr1::SR1_SPEC>;
40#[doc = "Status register 1"]
41pub mod sr1;
42#[doc = "SR2 (r) register accessor: an alias for `Reg<SR2_SPEC>`"]
43pub type SR2 = crate::Reg<sr2::SR2_SPEC>;
44#[doc = "Status register 2"]
45pub mod sr2;
46#[doc = "CCR (rw) register accessor: an alias for `Reg<CCR_SPEC>`"]
47pub type CCR = crate::Reg<ccr::CCR_SPEC>;
48#[doc = "Clock control register"]
49pub mod ccr;
50#[doc = "TRISE (rw) register accessor: an alias for `Reg<TRISE_SPEC>`"]
51pub type TRISE = crate::Reg<trise::TRISE_SPEC>;
52#[doc = "TRISE register"]
53pub mod trise;