1#[doc = "Register `INT_RAW` reader"]
2pub type R = crate::R<INT_RAW_SPEC>;
3#[doc = "Field `CALC_DONE` reader - The raw interrupt status bit for the ecdsa_calc_done_int interrupt"]
4pub type CALC_DONE_R = crate::BitReader;
5#[doc = "Field `SHA_RELEASE` reader - The raw interrupt status bit for the ecdsa_sha_release_int interrupt"]
6pub type SHA_RELEASE_R = crate::BitReader;
7impl R {
8 #[doc = "Bit 0 - The raw interrupt status bit for the ecdsa_calc_done_int interrupt"]
9 #[inline(always)]
10 pub fn calc_done(&self) -> CALC_DONE_R {
11 CALC_DONE_R::new((self.bits & 1) != 0)
12 }
13 #[doc = "Bit 1 - The raw interrupt status bit for the ecdsa_sha_release_int interrupt"]
14 #[inline(always)]
15 pub fn sha_release(&self) -> SHA_RELEASE_R {
16 SHA_RELEASE_R::new(((self.bits >> 1) & 1) != 0)
17 }
18}
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for R {
21 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22 f.debug_struct("INT_RAW")
23 .field("calc_done", &format_args!("{}", self.calc_done().bit()))
24 .field("sha_release", &format_args!("{}", self.sha_release().bit()))
25 .finish()
26 }
27}
28#[cfg(feature = "impl-register-debug")]
29impl core::fmt::Debug for crate::generic::Reg<INT_RAW_SPEC> {
30 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
31 core::fmt::Debug::fmt(&self.read(), f)
32 }
33}
34#[doc = "ECDSA interrupt raw register, valid in level.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_raw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
35pub struct INT_RAW_SPEC;
36impl crate::RegisterSpec for INT_RAW_SPEC {
37 type Ux = u32;
38}
39#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
40impl crate::Readable for INT_RAW_SPEC {}
41#[doc = "`reset()` method sets INT_RAW to value 0"]
42impl crate::Resettable for INT_RAW_SPEC {
43 const RESET_VALUE: u32 = 0;
44}