1#[doc = "Register `LTIM` reader"]
2pub type R = crate::R<LtimSpec>;
3#[doc = "Field `TIMER` reader - Timer value This field contains the value of the free-running timer."]
4pub type TimerR = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:15 - Timer value This field contains the value of the free-running timer."]
7 #[inline(always)]
8 pub fn timer(&self) -> TimerR {
9 TimerR::new((self.bits & 0xffff) as u16)
10 }
11}
12#[doc = "UART LIN timer The LTIM register contains the current timer value for the free-running timer that is used to calculate the baud rate when in LIN slave mode. The value in this register is used along with the value in the UART LIN snap shot (LSS) register to adjust the baud rate to match that of the master.\n\nYou can [`read`](crate::Reg::read) this register and get [`ltim::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct LtimSpec;
14impl crate::RegisterSpec for LtimSpec {
15 type Ux = u32;
16}
17#[doc = "`read()` method returns [`ltim::R`](R) reader structure"]
18impl crate::Readable for LtimSpec {}
19#[doc = "`reset()` method sets LTIM to value 0"]
20impl crate::Resettable for LtimSpec {
21 const RESET_VALUE: u32 = 0;
22}