1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
use crate::generic::*;
#[derive(Copy, Clone)]
pub struct Resets(pub *mut u8);
unsafe impl Send for Resets {}
unsafe impl Sync for Resets {}
impl Resets {
    #[doc = "Reset control. If a bit is set it means the peripheral is in reset. 0 means the peripheral's reset is deasserted."]
    pub fn reset(self) -> Reg<regs::Peripherals, RW> {
        unsafe { Reg::from_ptr(self.0.add(0usize)) }
    }
    #[doc = "Watchdog select. If a bit is set then the watchdog will reset this peripheral when the watchdog fires."]
    pub fn wdsel(self) -> Reg<regs::Wdsel, RW> {
        unsafe { Reg::from_ptr(self.0.add(4usize)) }
    }
    #[doc = "Reset done. If a bit is set then a reset done signal has been returned by the peripheral. This indicates that the peripheral's registers are ready to be accessed."]
    pub fn reset_done(self) -> Reg<regs::Peripherals, RW> {
        unsafe { Reg::from_ptr(self.0.add(8usize)) }
    }
}
pub mod regs;