xmc4400/
can_node0.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    ncr: NCR,
5    nsr: NSR,
6    nipr: NIPR,
7    npcr: NPCR,
8    nbtr: NBTR,
9    necnt: NECNT,
10    nfcr: NFCR,
11}
12impl RegisterBlock {
13    #[doc = "0x00 - Node Control Register"]
14    #[inline(always)]
15    pub const fn ncr(&self) -> &NCR {
16        &self.ncr
17    }
18    #[doc = "0x04 - Node Status Register"]
19    #[inline(always)]
20    pub const fn nsr(&self) -> &NSR {
21        &self.nsr
22    }
23    #[doc = "0x08 - Node Interrupt Pointer Register"]
24    #[inline(always)]
25    pub const fn nipr(&self) -> &NIPR {
26        &self.nipr
27    }
28    #[doc = "0x0c - Node Port Control Register"]
29    #[inline(always)]
30    pub const fn npcr(&self) -> &NPCR {
31        &self.npcr
32    }
33    #[doc = "0x10 - Node Bit Timing Register"]
34    #[inline(always)]
35    pub const fn nbtr(&self) -> &NBTR {
36        &self.nbtr
37    }
38    #[doc = "0x14 - Node Error Counter Register"]
39    #[inline(always)]
40    pub const fn necnt(&self) -> &NECNT {
41        &self.necnt
42    }
43    #[doc = "0x18 - Node Frame Counter Register"]
44    #[inline(always)]
45    pub const fn nfcr(&self) -> &NFCR {
46        &self.nfcr
47    }
48}
49#[doc = "NCR (rw) register accessor: Node Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`ncr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ncr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ncr`]
50module"]
51pub type NCR = crate::Reg<ncr::NCR_SPEC>;
52#[doc = "Node Control Register"]
53pub mod ncr;
54#[doc = "NSR (rw) register accessor: Node Status Register\n\nYou can [`read`](crate::Reg::read) this register and get [`nsr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`nsr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@nsr`]
55module"]
56pub type NSR = crate::Reg<nsr::NSR_SPEC>;
57#[doc = "Node Status Register"]
58pub mod nsr;
59#[doc = "NIPR (rw) register accessor: Node Interrupt Pointer Register\n\nYou can [`read`](crate::Reg::read) this register and get [`nipr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`nipr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@nipr`]
60module"]
61pub type NIPR = crate::Reg<nipr::NIPR_SPEC>;
62#[doc = "Node Interrupt Pointer Register"]
63pub mod nipr;
64#[doc = "NPCR (rw) register accessor: Node Port Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`npcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`npcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@npcr`]
65module"]
66pub type NPCR = crate::Reg<npcr::NPCR_SPEC>;
67#[doc = "Node Port Control Register"]
68pub mod npcr;
69#[doc = "NBTR (rw) register accessor: Node Bit Timing Register\n\nYou can [`read`](crate::Reg::read) this register and get [`nbtr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`nbtr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@nbtr`]
70module"]
71pub type NBTR = crate::Reg<nbtr::NBTR_SPEC>;
72#[doc = "Node Bit Timing Register"]
73pub mod nbtr;
74#[doc = "NECNT (rw) register accessor: Node Error Counter Register\n\nYou can [`read`](crate::Reg::read) this register and get [`necnt::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`necnt::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@necnt`]
75module"]
76pub type NECNT = crate::Reg<necnt::NECNT_SPEC>;
77#[doc = "Node Error Counter Register"]
78pub mod necnt;
79#[doc = "NFCR (rw) register accessor: Node Frame Counter Register\n\nYou can [`read`](crate::Reg::read) this register and get [`nfcr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`nfcr::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@nfcr`]
80module"]
81pub type NFCR = crate::Reg<nfcr::NFCR_SPEC>;
82#[doc = "Node Frame Counter Register"]
83pub mod nfcr;