lpc54606_pac/async_syscon/
asyncpresetctrlset.rs1#[doc = "Writer for register ASYNCPRESETCTRLSET"]
2pub type W = crate::W<u32, super::ASYNCPRESETCTRLSET>;
3#[doc = "Register ASYNCPRESETCTRLSET `reset()`'s with value 0"]
4impl crate::ResetValue for super::ASYNCPRESETCTRLSET {
5 type Type = u32;
6 #[inline(always)]
7 fn reset_value() -> Self::Type {
8 0
9 }
10}
11#[doc = "Write proxy for field `ARST_SET`"]
12pub struct ARST_SET_W<'a> {
13 w: &'a mut W,
14}
15impl<'a> ARST_SET_W<'a> {
16 #[doc = r"Writes raw bits to the field"]
17 #[inline(always)]
18 pub unsafe fn bits(self, value: u32) -> &'a mut W {
19 self.w.bits = (self.w.bits & !0xffff_ffff) | ((value as u32) & 0xffff_ffff);
20 self.w
21 }
22}
23impl W {
24 #[doc = "Bits 0:31 - Writing ones to this register sets the corresponding bit or bits in the ASYNCPRESETCTRL register, if they are implemented. Bits that do not correspond to defined bits in ASYNCPRESETCTRL are reserved and only zeroes should be written to them."]
25 #[inline(always)]
26 pub fn arst_set(&mut self) -> ARST_SET_W {
27 ARST_SET_W { w: self }
28 }
29}