stm32f103xx/i2c1/
mod.rs

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    #[doc = "0x0c - Own address register 2"]
11    pub oar2: OAR2,
12    #[doc = "0x10 - Data register"]
13    pub dr: DR,
14    #[doc = "0x14 - Status register 1"]
15    pub sr1: SR1,
16    #[doc = "0x18 - Status register 2"]
17    pub sr2: SR2,
18    #[doc = "0x1c - Clock control register"]
19    pub ccr: CCR,
20    #[doc = "0x20 - TRISE register"]
21    pub trise: TRISE,
22}
23#[doc = "Control register 1"]
24pub struct CR1 {
25    register: ::vcell::VolatileCell<u32>,
26}
27#[doc = "Control register 1"]
28pub mod cr1;
29#[doc = "Control register 2"]
30pub struct CR2 {
31    register: ::vcell::VolatileCell<u32>,
32}
33#[doc = "Control register 2"]
34pub mod cr2;
35#[doc = "Own address register 1"]
36pub struct OAR1 {
37    register: ::vcell::VolatileCell<u32>,
38}
39#[doc = "Own address register 1"]
40pub mod oar1;
41#[doc = "Own address register 2"]
42pub struct OAR2 {
43    register: ::vcell::VolatileCell<u32>,
44}
45#[doc = "Own address register 2"]
46pub mod oar2;
47#[doc = "Data register"]
48pub struct DR {
49    register: ::vcell::VolatileCell<u32>,
50}
51#[doc = "Data register"]
52pub mod dr;
53#[doc = "Status register 1"]
54pub struct SR1 {
55    register: ::vcell::VolatileCell<u32>,
56}
57#[doc = "Status register 1"]
58pub mod sr1;
59#[doc = "Status register 2"]
60pub struct SR2 {
61    register: ::vcell::VolatileCell<u32>,
62}
63#[doc = "Status register 2"]
64pub mod sr2;
65#[doc = "Clock control register"]
66pub struct CCR {
67    register: ::vcell::VolatileCell<u32>,
68}
69#[doc = "Clock control register"]
70pub mod ccr;
71#[doc = "TRISE register"]
72pub struct TRISE {
73    register: ::vcell::VolatileCell<u32>,
74}
75#[doc = "TRISE register"]
76pub mod trise;