esp32s2/rsa/
idle.rs

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