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