Type Alias atsame54n::gclk::genctrl::W

source ·
pub type W = W<GENCTRL_SPEC>;
Expand description

Register GENCTRL[%s] writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn src(&mut self) -> SRC_W<'_, GENCTRL_SPEC, 0>

Bits 0:3 - Source Select

source

pub fn genen(&mut self) -> GENEN_W<'_, GENCTRL_SPEC, 8>

Bit 8 - Generic Clock Generator Enable

source

pub fn idc(&mut self) -> IDC_W<'_, GENCTRL_SPEC, 9>

Bit 9 - Improve Duty Cycle

source

pub fn oov(&mut self) -> OOV_W<'_, GENCTRL_SPEC, 10>

Bit 10 - Output Off Value

source

pub fn oe(&mut self) -> OE_W<'_, GENCTRL_SPEC, 11>

Bit 11 - Output Enable

source

pub fn divsel(&mut self) -> DIVSEL_W<'_, GENCTRL_SPEC, 12>

Bit 12 - Divide Selection

source

pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, GENCTRL_SPEC, 13>

Bit 13 - Run in Standby

source

pub fn div(&mut self) -> DIV_W<'_, GENCTRL_SPEC, 16>

Bits 16:31 - Division Factor

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual