esp32 0.18.0

Peripheral access crate for the ESP32
Documentation
#[doc = "Register `TOKEN_LAT` reader"]
pub struct R(crate::R<TOKEN_LAT_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<TOKEN_LAT_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<TOKEN_LAT_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<TOKEN_LAT_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `SLC0_TOKEN` reader - "]
pub type SLC0_TOKEN_R = crate::FieldReader<u16, u16>;
#[doc = "Field `SLC1_TOKEN` reader - "]
pub type SLC1_TOKEN_R = crate::FieldReader<u16, u16>;
impl R {
    #[doc = "Bits 0:11"]
    #[inline(always)]
    pub fn slc0_token(&self) -> SLC0_TOKEN_R {
        SLC0_TOKEN_R::new((self.bits & 0x0fff) as u16)
    }
    #[doc = "Bits 16:27"]
    #[inline(always)]
    pub fn slc1_token(&self) -> SLC1_TOKEN_R {
        SLC1_TOKEN_R::new(((self.bits >> 16) & 0x0fff) as u16)
    }
}
#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [token_lat](index.html) module"]
pub struct TOKEN_LAT_SPEC;
impl crate::RegisterSpec for TOKEN_LAT_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [token_lat::R](R) reader structure"]
impl crate::Readable for TOKEN_LAT_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets TOKEN_LAT to value 0"]
impl crate::Resettable for TOKEN_LAT_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}