esp32/flash_encryption/
done.rs

1#[doc = "Register `DONE` reader"]
2pub type R = crate::R<DONE_SPEC>;
3#[doc = "Field `FLASH_DONE` reader - Set this bit when encryption operation is complete."]
4pub type FLASH_DONE_R = crate::BitReader;
5impl R {
6    #[doc = "Bit 0 - Set this bit when encryption operation is complete."]
7    #[inline(always)]
8    pub fn flash_done(&self) -> FLASH_DONE_R {
9        FLASH_DONE_R::new((self.bits & 1) != 0)
10    }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("DONE")
16            .field("flash_done", &self.flash_done())
17            .finish()
18    }
19}
20#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`done::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct DONE_SPEC;
22impl crate::RegisterSpec for DONE_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`done::R`](R) reader structure"]
26impl crate::Readable for DONE_SPEC {}
27#[doc = "`reset()` method sets DONE to value 0"]
28impl crate::Resettable for DONE_SPEC {
29    const RESET_VALUE: u32 = 0;
30}