stm32f3_staging/stm32f302/can/rx.rs
1#[repr(C)]
2#[derive(Debug)]
3///CAN Receive cluster
4pub struct RX {
5 rir: RIR,
6 rdtr: RDTR,
7 rdlr: RDLR,
8 rdhr: RDHR,
9}
10impl RX {
11 ///0x00 - receive FIFO mailbox identifier register
12 #[inline(always)]
13 pub const fn rir(&self) -> &RIR {
14 &self.rir
15 }
16 ///0x04 - receive FIFO mailbox data length control and time stamp register
17 #[inline(always)]
18 pub const fn rdtr(&self) -> &RDTR {
19 &self.rdtr
20 }
21 ///0x08 - receive FIFO mailbox data low register
22 #[inline(always)]
23 pub const fn rdlr(&self) -> &RDLR {
24 &self.rdlr
25 }
26 ///0x0c - receive FIFO mailbox data high register
27 #[inline(always)]
28 pub const fn rdhr(&self) -> &RDHR {
29 &self.rdhr
30 }
31}
32/**RIR (r) register accessor: receive FIFO mailbox identifier register
33
34You can [`read`](crate::Reg::read) this register and get [`rir::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
35
36For information about available fields see [`mod@rir`]
37module*/
38pub type RIR = crate::Reg<rir::RIRrs>;
39///receive FIFO mailbox identifier register
40pub mod rir;
41/**RDTR (r) register accessor: receive FIFO mailbox data length control and time stamp register
42
43You can [`read`](crate::Reg::read) this register and get [`rdtr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
44
45For information about available fields see [`mod@rdtr`]
46module*/
47pub type RDTR = crate::Reg<rdtr::RDTRrs>;
48///receive FIFO mailbox data length control and time stamp register
49pub mod rdtr;
50/**RDLR (r) register accessor: receive FIFO mailbox data low register
51
52You can [`read`](crate::Reg::read) this register and get [`rdlr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
53
54For information about available fields see [`mod@rdlr`]
55module*/
56pub type RDLR = crate::Reg<rdlr::RDLRrs>;
57///receive FIFO mailbox data low register
58pub mod rdlr;
59/**RDHR (r) register accessor: receive FIFO mailbox data high register
60
61You can [`read`](crate::Reg::read) this register and get [`rdhr::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
62
63For information about available fields see [`mod@rdhr`]
64module*/
65pub type RDHR = crate::Reg<rdhr::RDHRrs>;
66///receive FIFO mailbox data high register
67pub mod rdhr;