k210_pac::rtc::interrupt_ctrl

Type Alias R

Source
pub type R = R<u32, INTERRUPT_CTRL>;
Expand description

Reader of register interrupt_ctrl

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn tick_enable(&self) -> TICK_ENABLE_R

Bit 0 - TICK_ENABLE

Source

pub fn alarm_enable(&self) -> ALARM_ENABLE_R

Bit 1 - Alarm interrupt enable

Source

pub fn tick_int_mode(&self) -> TICK_INT_MODE_R

Bits 2:3 - Tick interrupt enable

Source

pub fn alarm_compare_mask(&self) -> ALARM_COMPARE_MASK_R

Bits 24:31 - Alarm compare mask for interrupt