k210_pac::timer0::channel::control

Type Alias R

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

Reader of register control

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn enable(&self) -> ENABLE_R

Bit 0 - ENABLE

Source

pub fn mode(&self) -> MODE_R

Bit 1 - MODE

Source

pub fn interrupt(&self) -> INTERRUPT_R

Bit 2 - INTERRUPT_MASK

Source

pub fn pwm_enable(&self) -> PWM_ENABLE_R

Bit 3 - PWM_ENABLE