lpc54606_pac/mrt0/channel/
timer.rs

1#[doc = "Reader of register TIMER"]
2pub type R = crate::R<u32, super::TIMER>;
3#[doc = "Reader of field `VALUE`"]
4pub type VALUE_R = crate::R<u32, u32>;
5impl R {
6    #[doc = "Bits 0:23 - Holds the current timer value of the down-counter. The initial value of the TIMERn register is loaded as IVALUE - 1 from the INTVALn register either at the end of the time interval or immediately in the following cases: INTVALn register is updated in the idle state. INTVALn register is updated with LOAD = 1. When the timer is in idle state, reading this bit fields returns -1 (0x00FF FFFF)."]
7    #[inline(always)]
8    pub fn value(&self) -> VALUE_R {
9        VALUE_R::new((self.bits & 0x00ff_ffff) as u32)
10    }
11}