esp32/dport/
ahblite_mpu_table_timergroup.rs#[doc = "Register `AHBLITE_MPU_TABLE_TIMERGROUP` reader"]
pub type R = crate::R<AHBLITE_MPU_TABLE_TIMERGROUP_SPEC>;
#[doc = "Register `AHBLITE_MPU_TABLE_TIMERGROUP` writer"]
pub type W = crate::W<AHBLITE_MPU_TABLE_TIMERGROUP_SPEC>;
#[doc = "Field `TIMERGROUP_ACCESS_GRANT_CONFIG` reader - "]
pub type TIMERGROUP_ACCESS_GRANT_CONFIG_R = crate::FieldReader;
#[doc = "Field `TIMERGROUP_ACCESS_GRANT_CONFIG` writer - "]
pub type TIMERGROUP_ACCESS_GRANT_CONFIG_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
impl R {
#[doc = "Bits 0:5"]
#[inline(always)]
pub fn timergroup_access_grant_config(&self) -> TIMERGROUP_ACCESS_GRANT_CONFIG_R {
TIMERGROUP_ACCESS_GRANT_CONFIG_R::new((self.bits & 0x3f) as u8)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("AHBLITE_MPU_TABLE_TIMERGROUP")
.field(
"timergroup_access_grant_config",
&self.timergroup_access_grant_config(),
)
.finish()
}
}
impl W {
#[doc = "Bits 0:5"]
#[inline(always)]
pub fn timergroup_access_grant_config(
&mut self,
) -> TIMERGROUP_ACCESS_GRANT_CONFIG_W<AHBLITE_MPU_TABLE_TIMERGROUP_SPEC> {
TIMERGROUP_ACCESS_GRANT_CONFIG_W::new(self, 0)
}
}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`ahblite_mpu_table_timergroup::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahblite_mpu_table_timergroup::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct AHBLITE_MPU_TABLE_TIMERGROUP_SPEC;
impl crate::RegisterSpec for AHBLITE_MPU_TABLE_TIMERGROUP_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`ahblite_mpu_table_timergroup::R`](R) reader structure"]
impl crate::Readable for AHBLITE_MPU_TABLE_TIMERGROUP_SPEC {}
#[doc = "`write(|w| ..)` method takes [`ahblite_mpu_table_timergroup::W`](W) writer structure"]
impl crate::Writable for AHBLITE_MPU_TABLE_TIMERGROUP_SPEC {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets AHBLITE_MPU_TABLE_TIMERGROUP to value 0"]
impl crate::Resettable for AHBLITE_MPU_TABLE_TIMERGROUP_SPEC {
const RESET_VALUE: u32 = 0;
}