pub struct Ostimer { /* private fields */ }Expand description
OS Event Timer.
Implementations§
Source§impl Ostimer
impl Ostimer
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn evtimerl(self) -> Reg<Evtimerl, R>
pub const fn evtimerl(self) -> Reg<Evtimerl, R>
EVTIMER Low. The central 42-bit counter is Gray encoded and asynchronous to the bus. Split reads may straddle rollover; the documented adjacent-value guarantee requires a bus clock at least twice the timer clock, or the same LP oscillator clock. The shared EVTimer resets only on POR or software reset. Software reset means a complete module reset, not CPU SYSRESETREQ.
Sourcepub const fn capture_l(self) -> Reg<CaptureL, R>
pub const fn capture_l(self) -> Reg<CaptureL, R>
Local Capture Low for CPU. Gray encoded. Do not issue a new capture between reading CAPTURE_L and CAPTURE_H. Each CPU reads its own local capture at the same addresses. The capture pair resets on system reset, not module software reset.
Sourcepub const fn capture_h(self) -> Reg<CaptureH, R>
pub const fn capture_h(self) -> Reg<CaptureH, R>
Local Capture High for CPU. Gray encoded. Do not issue a new capture between reading CAPTURE_L and CAPTURE_H.
Sourcepub const fn match_l(self) -> Reg<MatchLN, RW>
pub const fn match_l(self) -> Reg<MatchLN, RW>
Local Match Low for CPU. Write Gray-encoded MATCH_L before MATCH_H. Do not start another pair until MATCH_WR_RDY is low (transfer complete). Each CPU accesses its own match pair at the same addresses. The match pair resets on system reset, not module software reset.
Sourcepub const fn osevent_ctrl(self) -> Reg<OseventCtrlN, RW>
pub const fn osevent_ctrl(self) -> Reg<OseventCtrlN, RW>
OSTIMER Control for CPU. Each CPU reads its own local state at the same address. Clear OSTIMER_INTRFLAG by writing 1 before programming a new match pair. System reset includes RESETn, CPU SYSRESETREQ, POR and internal low-voltage resets. OSEVENT_CTRL resets on system or module software reset, except MATCH_WR_RDY, which resets only on system reset.