nrf-softdevice-s140

Crates

git

Versions

default

Flavors

pub unsafe fn sd_power_pof_thresholdvddh_set(threshold: u8) -> u32
Expand description

@brief Sets the power failure comparator threshold value for high voltage.

@note: Power failure 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).

@param[in] threshold The power-fail threshold value to use, see @ref NRF_POWER_THRESHOLDVDDHS.

@retval ::NRF_SUCCESS The power failure threshold was set. @retval ::NRF_ERROR_SOC_POWER_POF_THRESHOLD_UNKNOWN The power failure threshold is unknown.