#[repr(transparent)]pub struct Pofcon(pub u32);
Expand description
Power-fail comparator configuration
Tuple Fields§
§0: u32
Implementations§
Source§impl Pofcon
impl Pofcon
Sourcepub const fn threshold(&self) -> Threshold
pub const fn threshold(&self) -> Threshold
Power-fail comparator threshold setting. This setting applies both for normal voltage mode (supply connected to both VDD and VDDH) and high voltage mode (supply connected to VDDH only). Values 0-3 set threshold below 1.7 V and should not be used as brown out detection will be activated before power failure warning on such low voltages.
Sourcepub fn set_threshold(&mut self, val: Threshold)
pub fn set_threshold(&mut self, val: Threshold)
Power-fail comparator threshold setting. This setting applies both for normal voltage mode (supply connected to both VDD and VDDH) and high voltage mode (supply connected to VDDH only). Values 0-3 set threshold below 1.7 V and should not be used as brown out detection will be activated before power failure warning on such low voltages.
Sourcepub const fn thresholdvddh(&self) -> Thresholdvddh
pub const fn thresholdvddh(&self) -> Thresholdvddh
Power-fail comparator threshold setting for high voltage mode (supply connected to VDDH only). This setting does not apply for normal voltage mode (supply connected to both VDD and VDDH).
Sourcepub fn set_thresholdvddh(&mut self, val: Thresholdvddh)
pub fn set_thresholdvddh(&mut self, val: Thresholdvddh)
Power-fail comparator threshold setting for high voltage mode (supply connected to VDDH only). This setting does not apply for normal voltage mode (supply connected to both VDD and VDDH).
Trait Implementations§
impl Copy for Pofcon
impl Eq for Pofcon
impl StructuralPartialEq for Pofcon
Auto Trait Implementations§
impl Freeze for Pofcon
impl RefUnwindSafe for Pofcon
impl Send for Pofcon
impl Sync for Pofcon
impl Unpin for Pofcon
impl UnwindSafe for Pofcon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)