atsam3u1c/
rtt.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    mr: Mr,
5    ar: Ar,
6    vr: Vr,
7    sr: Sr,
8}
9impl RegisterBlock {
10    #[doc = "0x00 - Mode Register"]
11    #[inline(always)]
12    pub const fn mr(&self) -> &Mr {
13        &self.mr
14    }
15    #[doc = "0x04 - Alarm Register"]
16    #[inline(always)]
17    pub const fn ar(&self) -> &Ar {
18        &self.ar
19    }
20    #[doc = "0x08 - Value Register"]
21    #[inline(always)]
22    pub const fn vr(&self) -> &Vr {
23        &self.vr
24    }
25    #[doc = "0x0c - Status Register"]
26    #[inline(always)]
27    pub const fn sr(&self) -> &Sr {
28        &self.sr
29    }
30}
31#[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`]
32module"]
33#[doc(alias = "MR")]
34pub type Mr = crate::Reg<mr::MrSpec>;
35#[doc = "Mode Register"]
36pub mod mr;
37#[doc = "AR (rw) register accessor: Alarm Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`ar::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 [`ar::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@ar`]
38module"]
39#[doc(alias = "AR")]
40pub type Ar = crate::Reg<ar::ArSpec>;
41#[doc = "Alarm Register"]
42pub mod ar;
43#[doc = "VR (r) register accessor: Value Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`vr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@vr`]
44module"]
45#[doc(alias = "VR")]
46pub type Vr = crate::Reg<vr::VrSpec>;
47#[doc = "Value Register"]
48pub mod vr;
49#[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`]
50module"]
51#[doc(alias = "SR")]
52pub type Sr = crate::Reg<sr::SrSpec>;
53#[doc = "Status Register"]
54pub mod sr;