Type Alias nrf52840_pac::radio::power::POWER_W

source ·
pub type POWER_W<'a, const O: u8> = BitWriter<'a, u32, POWER_SPEC, POWER_A, O>;
Expand description

Field POWER writer - Peripheral power control. The peripheral and its registers will be reset to its initial state by switching the peripheral off and then back on again.

Aliased Type§

struct POWER_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> POWER_W<'a, O>

source

pub fn disabled(self) -> &'a mut W

Peripheral is powered off

source

pub fn enabled(self) -> &'a mut W

Peripheral is powered on