atsamd11d/
pac0.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    wpclr: Wpclr,
5    wpset: Wpset,
6}
7impl RegisterBlock {
8    #[doc = "0x00 - Write Protection Clear"]
9    #[inline(always)]
10    pub const fn wpclr(&self) -> &Wpclr {
11        &self.wpclr
12    }
13    #[doc = "0x04 - Write Protection Set"]
14    #[inline(always)]
15    pub const fn wpset(&self) -> &Wpset {
16        &self.wpset
17    }
18}
19#[doc = "WPCLR (rw) register accessor: Write Protection Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`wpclr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wpclr::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@wpclr`]
20module"]
21#[doc(alias = "WPCLR")]
22pub type Wpclr = crate::Reg<wpclr::WpclrSpec>;
23#[doc = "Write Protection Clear"]
24pub mod wpclr;
25#[doc = "WPSET (rw) register accessor: Write Protection Set\n\nYou can [`read`](crate::Reg::read) this register and get [`wpset::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wpset::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@wpset`]
26module"]
27#[doc(alias = "WPSET")]
28pub type Wpset = crate::Reg<wpset::WpsetSpec>;
29#[doc = "Write Protection Set"]
30pub mod wpset;