rp2040_pac/watchdog/
load.rs
1#[doc = "Register `LOAD` writer"]
2pub type W = crate::W<LOAD_SPEC>;
3#[doc = "Field `LOAD` writer - "]
4pub type LOAD_W<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
5impl W {
6 #[doc = "Bits 0:23"]
7 #[inline(always)]
8 #[must_use]
9 pub fn load(&mut self) -> LOAD_W<LOAD_SPEC> {
10 LOAD_W::new(self, 0)
11 }
12 #[doc = r" Writes raw bits to the register."]
13 #[doc = r""]
14 #[doc = r" # Safety"]
15 #[doc = r""]
16 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
17 #[inline(always)]
18 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
19 self.bits = bits;
20 self
21 }
22}
23#[doc = "Load the watchdog timer. The maximum setting is 0xffffff which corresponds to 0xffffff / 2 ticks before triggering a watchdog reset (see errata RP2040-E1).
24
25You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`load::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
26pub struct LOAD_SPEC;
27impl crate::RegisterSpec for LOAD_SPEC {
28 type Ux = u32;
29}
30#[doc = "`write(|w| ..)` method takes [`load::W`](W) writer structure"]
31impl crate::Writable for LOAD_SPEC {
32 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
33 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34}
35#[doc = "`reset()` method sets LOAD to value 0"]
36impl crate::Resettable for LOAD_SPEC {
37 const RESET_VALUE: u32 = 0;
38}