pub type W = W<TimerControlSpec>;Expand description
Register TIMER%s_CONTROL writer
Aliased Type§
pub struct W { /* private fields */ }Implementations§
Source§impl W
impl W
Sourcepub fn enable(&mut self) -> EnableW<'_, TimerControlSpec>
pub fn enable(&mut self) -> EnableW<'_, TimerControlSpec>
Bit 0 - Timer enable: 0=disabled; 1=enabled
Sourcepub fn mode(&mut self) -> ModeW<'_, TimerControlSpec>
pub fn mode(&mut self) -> ModeW<'_, TimerControlSpec>
Bits 1:2 - Timer mode (TIMER_V150, per vendor control_reg_mode_v150_t): 0=one-shot; 1=periodic; 3=free-run (2 is a one-shot alias)
Sourcepub fn int_mask(&mut self) -> IntMaskW<'_, TimerControlSpec>
pub fn int_mask(&mut self) -> IntMaskW<'_, TimerControlSpec>
Bit 3 - Interrupt mask: 0=unmasked; 1=masked
Sourcepub fn rstfsm(&mut self) -> RstfsmW<'_, TimerControlSpec>
pub fn rstfsm(&mut self) -> RstfsmW<'_, TimerControlSpec>
Bit 4 - Reset FSM: 1=reset timer FSM
Sourcepub fn cnt_req(&mut self) -> CntReqW<'_, TimerControlSpec>
pub fn cnt_req(&mut self) -> CntReqW<'_, TimerControlSpec>
Bit 5 - Current-count latch request (TIMER_V150): write 1 to snapshot the live down-counter into the current-value register; the HW asserts cnt_lock when the snapshot is ready. Required to read a fresh count on silicon (the current-value register is a latch, not a live counter).