esp32/sha/
sha256_busy.rs

1#[doc = "Register `SHA256_BUSY` reader"]
2pub type R = crate::R<SHA256_BUSY_SPEC>;
3#[doc = "Field `SHA256_BUSY` reader - SHA-256 operation status: 1 if the SHA accelerator is processing data, 0 if it is idle."]
4pub type SHA256_BUSY_R = crate::BitReader;
5impl R {
6    #[doc = "Bit 0 - SHA-256 operation status: 1 if the SHA accelerator is processing data, 0 if it is idle."]
7    #[inline(always)]
8    pub fn sha256_busy(&self) -> SHA256_BUSY_R {
9        SHA256_BUSY_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("SHA256_BUSY")
16            .field("sha256_busy", &self.sha256_busy())
17            .finish()
18    }
19}
20#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`sha256_busy::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct SHA256_BUSY_SPEC;
22impl crate::RegisterSpec for SHA256_BUSY_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`sha256_busy::R`](R) reader structure"]
26impl crate::Readable for SHA256_BUSY_SPEC {}
27#[doc = "`reset()` method sets SHA256_BUSY to value 0"]
28impl crate::Resettable for SHA256_BUSY_SPEC {}