esp32/slc/
token_lat.rs

1#[doc = "Register `TOKEN_LAT` reader"]
2pub type R = crate::R<TOKEN_LAT_SPEC>;
3#[doc = "Field `SLC0_TOKEN` reader - "]
4pub type SLC0_TOKEN_R = crate::FieldReader<u16>;
5#[doc = "Field `SLC1_TOKEN` reader - "]
6pub type SLC1_TOKEN_R = crate::FieldReader<u16>;
7impl R {
8    #[doc = "Bits 0:11"]
9    #[inline(always)]
10    pub fn slc0_token(&self) -> SLC0_TOKEN_R {
11        SLC0_TOKEN_R::new((self.bits & 0x0fff) as u16)
12    }
13    #[doc = "Bits 16:27"]
14    #[inline(always)]
15    pub fn slc1_token(&self) -> SLC1_TOKEN_R {
16        SLC1_TOKEN_R::new(((self.bits >> 16) & 0x0fff) as u16)
17    }
18}
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for R {
21    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22        f.debug_struct("TOKEN_LAT")
23            .field("slc0_token", &self.slc0_token())
24            .field("slc1_token", &self.slc1_token())
25            .finish()
26    }
27}
28#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`token_lat::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct TOKEN_LAT_SPEC;
30impl crate::RegisterSpec for TOKEN_LAT_SPEC {
31    type Ux = u32;
32}
33#[doc = "`read()` method returns [`token_lat::R`](R) reader structure"]
34impl crate::Readable for TOKEN_LAT_SPEC {}
35#[doc = "`reset()` method sets TOKEN_LAT to value 0"]
36impl crate::Resettable for TOKEN_LAT_SPEC {}