stm32f3_staging/stm32f373/cec.rs
1#[repr(C)]
2#[derive(Debug)]
3///Register block
4pub struct RegisterBlock {
5 cr: CR,
6 cfgr: CFGR,
7 txdr: TXDR,
8 rxdr: RXDR,
9 isr: ISR,
10 ier: IER,
11}
12impl RegisterBlock {
13 ///0x00 - control register
14 #[inline(always)]
15 pub const fn cr(&self) -> &CR {
16 &self.cr
17 }
18 ///0x04 - configuration register
19 #[inline(always)]
20 pub const fn cfgr(&self) -> &CFGR {
21 &self.cfgr
22 }
23 ///0x08 - Tx data register
24 #[inline(always)]
25 pub const fn txdr(&self) -> &TXDR {
26 &self.txdr
27 }
28 ///0x0c - Rx Data Register
29 #[inline(always)]
30 pub const fn rxdr(&self) -> &RXDR {
31 &self.rxdr
32 }
33 ///0x10 - Interrupt and Status Register
34 #[inline(always)]
35 pub const fn isr(&self) -> &ISR {
36 &self.isr
37 }
38 ///0x14 - interrupt enable register
39 #[inline(always)]
40 pub const fn ier(&self) -> &IER {
41 &self.ier
42 }
43}
44/**CR (rw) register accessor: control register
45
46You can [`read`](crate::Reg::read) this register and get [`cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
47
48See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#CEC:CR)
49
50For information about available fields see [`mod@cr`]
51module*/
52pub type CR = crate::Reg<cr::CRrs>;
53///control register
54pub mod cr;
55/**TXDR (w) register accessor: Tx data register
56
57You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`txdr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
58
59See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#CEC:TXDR)
60
61For information about available fields see [`mod@txdr`]
62module*/
63pub type TXDR = crate::Reg<txdr::TXDRrs>;
64///Tx data register
65pub mod txdr;
66/**RXDR (r) register accessor: Rx Data Register
67
68You can [`read`](crate::Reg::read) this register and get [`rxdr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
69
70See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#CEC:RXDR)
71
72For information about available fields see [`mod@rxdr`]
73module*/
74pub type RXDR = crate::Reg<rxdr::RXDRrs>;
75///Rx Data Register
76pub mod rxdr;
77/**ISR (rw) register accessor: Interrupt and Status Register
78
79You can [`read`](crate::Reg::read) this register and get [`isr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`isr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
80
81See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#CEC:ISR)
82
83For information about available fields see [`mod@isr`]
84module*/
85pub type ISR = crate::Reg<isr::ISRrs>;
86///Interrupt and Status Register
87pub mod isr;
88/**IER (rw) register accessor: interrupt enable register
89
90You can [`read`](crate::Reg::read) this register and get [`ier::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ier::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
91
92See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#CEC:IER)
93
94For information about available fields see [`mod@ier`]
95module*/
96pub type IER = crate::Reg<ier::IERrs>;
97///interrupt enable register
98pub mod ier;
99/**CFGR (rw) register accessor: configuration register
100
101You can [`read`](crate::Reg::read) this register and get [`cfgr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfgr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
102
103See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F373.html#CEC:CFGR)
104
105For information about available fields see [`mod@cfgr`]
106module*/
107pub type CFGR = crate::Reg<cfgr::CFGRrs>;
108///configuration register
109pub mod cfgr;