nrf-softdevice-s140

Crates

git

Versions

default

Flavors

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

@brief Sets the power failure comparator threshold value.

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

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

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