Type Alias atsamd51p::rtc::mode1::ctrla::PRESCALER_W

source ·
pub type PRESCALER_W<'a, REG, const O: u8> = FieldWriter<'a, REG, 4, O, PRESCALERSELECT_A>;
Expand description

Field PRESCALER writer - Prescaler

Aliased Type§

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

Implementations§

source§

impl<'a, REG, const O: u8> PRESCALER_W<'a, REG, O>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

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

CLK_RTC_CNT = GCLK_RTC/1

source

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

CLK_RTC_CNT = GCLK_RTC/1

source

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

CLK_RTC_CNT = GCLK_RTC/2

source

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

CLK_RTC_CNT = GCLK_RTC/4

source

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

CLK_RTC_CNT = GCLK_RTC/8

source

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

CLK_RTC_CNT = GCLK_RTC/16

source

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

CLK_RTC_CNT = GCLK_RTC/32

source

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

CLK_RTC_CNT = GCLK_RTC/64

source

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

CLK_RTC_CNT = GCLK_RTC/128

source

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

CLK_RTC_CNT = GCLK_RTC/256

source

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

CLK_RTC_CNT = GCLK_RTC/512

source

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

CLK_RTC_CNT = GCLK_RTC/1024