nrf-softdevice-s122

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.

@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.