Type Alias rp2040_pac::rosc::ctrl::ENABLE_W

source ·
pub type ENABLE_W<'a, REG> = FieldWriter<'a, REG, 12, ENABLE_A>;
Expand description

Field ENABLE writer - On power-up this field is initialised to ENABLE
The system clock must be switched to another source before setting this field to DISABLE otherwise the chip will lock up
The 12-bit code is intended to give some protection against accidental writes. An invalid setting will enable the oscillator.

Aliased Type§

struct ENABLE_W<'a, REG> { /* private fields */ }

Implementations§

source§

impl<'a, REG> ENABLE_W<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u16>,

source

pub fn disable(self) -> &'a mut W<REG>

110100011110

source

pub fn enable(self) -> &'a mut W<REG>

111110101011