esp32c3/apb_ctrl/
peri_backup_int_clr.rs

1#[doc = "Register `PERI_BACKUP_INT_CLR` writer"]
2pub type W = crate::W<PERI_BACKUP_INT_CLR_SPEC>;
3#[doc = "Field `DONE` writer - reg_peri_backup_done_int_clr"]
4pub type DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
5#[doc = "Field `ERR` writer - reg_peri_backup_err_int_clr"]
6pub type ERR_W<'a, REG> = crate::BitWriter1C<'a, REG>;
7#[cfg(feature = "impl-register-debug")]
8impl core::fmt::Debug for crate::generic::Reg<PERI_BACKUP_INT_CLR_SPEC> {
9    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
10        write!(f, "(not readable)")
11    }
12}
13impl W {
14    #[doc = "Bit 0 - reg_peri_backup_done_int_clr"]
15    #[inline(always)]
16    pub fn done(&mut self) -> DONE_W<PERI_BACKUP_INT_CLR_SPEC> {
17        DONE_W::new(self, 0)
18    }
19    #[doc = "Bit 1 - reg_peri_backup_err_int_clr"]
20    #[inline(always)]
21    pub fn err(&mut self) -> ERR_W<PERI_BACKUP_INT_CLR_SPEC> {
22        ERR_W::new(self, 1)
23    }
24}
25#[doc = "APB_CTRL_PERI_BACKUP_INT_CLR_REG\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`peri_backup_int_clr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
26pub struct PERI_BACKUP_INT_CLR_SPEC;
27impl crate::RegisterSpec for PERI_BACKUP_INT_CLR_SPEC {
28    type Ux = u32;
29}
30#[doc = "`write(|w| ..)` method takes [`peri_backup_int_clr::W`](W) writer structure"]
31impl crate::Writable for PERI_BACKUP_INT_CLR_SPEC {
32    type Safety = crate::Unsafe;
33    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x03;
35}
36#[doc = "`reset()` method sets PERI_BACKUP_INT_CLR to value 0"]
37impl crate::Resettable for PERI_BACKUP_INT_CLR_SPEC {
38    const RESET_VALUE: u32 = 0;
39}