atsamd51n/
rstc.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    rcause: Rcause,
5    _reserved1: [u8; 0x01],
6    bkupexit: Bkupexit,
7}
8impl RegisterBlock {
9    #[doc = "0x00 - Reset Cause"]
10    #[inline(always)]
11    pub const fn rcause(&self) -> &Rcause {
12        &self.rcause
13    }
14    #[doc = "0x02 - Backup Exit Source"]
15    #[inline(always)]
16    pub const fn bkupexit(&self) -> &Bkupexit {
17        &self.bkupexit
18    }
19}
20#[doc = "RCAUSE (r) register accessor: Reset Cause\n\nYou can [`read`](crate::Reg::read) this register and get [`rcause::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rcause`]
21module"]
22#[doc(alias = "RCAUSE")]
23pub type Rcause = crate::Reg<rcause::RcauseSpec>;
24#[doc = "Reset Cause"]
25pub mod rcause;
26#[doc = "BKUPEXIT (r) register accessor: Backup Exit Source\n\nYou can [`read`](crate::Reg::read) this register and get [`bkupexit::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@bkupexit`]
27module"]
28#[doc(alias = "BKUPEXIT")]
29pub type Bkupexit = crate::Reg<bkupexit::BkupexitSpec>;
30#[doc = "Backup Exit Source"]
31pub mod bkupexit;