atsam3s8b/
rstc.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    cr: Cr,
5    sr: Sr,
6    mr: Mr,
7}
8impl RegisterBlock {
9    #[doc = "0x00 - Control Register"]
10    #[inline(always)]
11    pub const fn cr(&self) -> &Cr {
12        &self.cr
13    }
14    #[doc = "0x04 - Status Register"]
15    #[inline(always)]
16    pub const fn sr(&self) -> &Sr {
17        &self.sr
18    }
19    #[doc = "0x08 - Mode Register"]
20    #[inline(always)]
21    pub const fn mr(&self) -> &Mr {
22        &self.mr
23    }
24}
25#[doc = "CR (w) register accessor: Control Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`cr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cr`]
26module"]
27#[doc(alias = "CR")]
28pub type Cr = crate::Reg<cr::CrSpec>;
29#[doc = "Control Register"]
30pub mod cr;
31#[doc = "SR (r) register accessor: Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`sr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@sr`]
32module"]
33#[doc(alias = "SR")]
34pub type Sr = crate::Reg<sr::SrSpec>;
35#[doc = "Status Register"]
36pub mod sr;
37#[doc = "MR (rw) register accessor: Mode Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`mr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`mr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@mr`]
38module"]
39#[doc(alias = "MR")]
40pub type Mr = crate::Reg<mr::MrSpec>;
41#[doc = "Mode Register"]
42pub mod mr;