esp32s3/sensitive/
edma_pms_i2s1_lock.rs1#[doc = "Register `EDMA_PMS_I2S1_LOCK` reader"]
2pub type R = crate::R<EDMA_PMS_I2S1_LOCK_SPEC>;
3#[doc = "Register `EDMA_PMS_I2S1_LOCK` writer"]
4pub type W = crate::W<EDMA_PMS_I2S1_LOCK_SPEC>;
5#[doc = "Field `EDMA_PMS_I2S1_LOCK` reader - Set 1 to lock EDMA-I2S1 permission control registers."]
6pub type EDMA_PMS_I2S1_LOCK_R = crate::BitReader;
7#[doc = "Field `EDMA_PMS_I2S1_LOCK` writer - Set 1 to lock EDMA-I2S1 permission control registers."]
8pub type EDMA_PMS_I2S1_LOCK_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[doc = "Bit 0 - Set 1 to lock EDMA-I2S1 permission control registers."]
11 #[inline(always)]
12 pub fn edma_pms_i2s1_lock(&self) -> EDMA_PMS_I2S1_LOCK_R {
13 EDMA_PMS_I2S1_LOCK_R::new((self.bits & 1) != 0)
14 }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("EDMA_PMS_I2S1_LOCK")
20 .field("edma_pms_i2s1_lock", &self.edma_pms_i2s1_lock())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bit 0 - Set 1 to lock EDMA-I2S1 permission control registers."]
26 #[inline(always)]
27 pub fn edma_pms_i2s1_lock(&mut self) -> EDMA_PMS_I2S1_LOCK_W<EDMA_PMS_I2S1_LOCK_SPEC> {
28 EDMA_PMS_I2S1_LOCK_W::new(self, 0)
29 }
30}
31#[doc = "EDMA-I2S1 permission lock register.\n\nYou can [`read`](crate::Reg::read) this register and get [`edma_pms_i2s1_lock::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`edma_pms_i2s1_lock::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct EDMA_PMS_I2S1_LOCK_SPEC;
33impl crate::RegisterSpec for EDMA_PMS_I2S1_LOCK_SPEC {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`edma_pms_i2s1_lock::R`](R) reader structure"]
37impl crate::Readable for EDMA_PMS_I2S1_LOCK_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`edma_pms_i2s1_lock::W`](W) writer structure"]
39impl crate::Writable for EDMA_PMS_I2S1_LOCK_SPEC {
40 type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets EDMA_PMS_I2S1_LOCK to value 0"]
43impl crate::Resettable for EDMA_PMS_I2S1_LOCK_SPEC {}