Struct nrf52840::power::pofcon::R [−][src]
pub struct R { /* fields omitted */ }
Value read from the register
Methods
impl R
[src]
impl R
pub fn bits(&self) -> u32
[src]
pub fn bits(&self) -> u32
Value of the register as raw bits
pub fn pof(&self) -> POFR
[src]
pub fn pof(&self) -> POFR
Bit 0 - Enable or disable power failure warning
pub fn threshold(&self) -> THRESHOLDR
[src]
pub fn threshold(&self) -> THRESHOLDR
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(&self) -> THRESHOLDVDDHR
[src]
pub fn thresholdvddh(&self) -> THRESHOLDVDDHR
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).