Skip to main content

R

Type Alias R 

Source
pub type R = R<TimerControlSpec>;
Expand description

Register TIMER%s_CONTROL reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn enable(&self) -> EnableR

Bit 0 - Timer enable: 0=disabled; 1=enabled

Source

pub fn mode(&self) -> ModeR

Bits 1:2 - Timer mode: 00=free running; 01=one-shot; 10=periodic

Source

pub fn int_mask(&self) -> IntMaskR

Bit 3 - Interrupt mask: 0=unmasked; 1=masked