1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use crate::generic::*; #[doc = "control and status for on-chip voltage regulator and chip level reset subsystem"] #[derive(Copy, Clone)] pub struct VregAndChipReset(pub *mut u8); unsafe impl Send for VregAndChipReset {} unsafe impl Sync for VregAndChipReset {} impl VregAndChipReset { #[doc = "Voltage regulator control and status"] pub fn vreg(self) -> Reg<regs::Vreg, RW> { unsafe { Reg::from_ptr(self.0.add(0usize)) } } #[doc = "brown-out detection control"] pub fn bod(self) -> Reg<regs::Bod, RW> { unsafe { Reg::from_ptr(self.0.add(4usize)) } } #[doc = "Chip reset control and status"] pub fn chip_reset(self) -> Reg<regs::ChipReset, RW> { unsafe { Reg::from_ptr(self.0.add(8usize)) } } } pub mod regs;