Struct nrf52840::power::pofcon::W [−][src]
pub struct W { /* fields omitted */ }
Value to write to the register
Methods
impl W
[src]
impl W
pub fn reset_value() -> W
[src]
pub fn reset_value() -> W
Reset value of the register
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self
[src]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self
Writes raw bits to the register
pub fn pof(&mut self) -> _POFW
[src]
pub fn pof(&mut self) -> _POFW
Bit 0 - Enable or disable power failure warning
pub fn threshold(&mut self) -> _THRESHOLDW
[src]
pub fn threshold(&mut self) -> _THRESHOLDW
Bits 1:4 - 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.
pub fn thresholdvddh(&mut self) -> _THRESHOLDVDDHW
[src]
pub fn thresholdvddh(&mut self) -> _THRESHOLDVDDHW
Bits 8:11 - 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).