esp32c3/rsa/
query_idle.rs1#[doc = "Register `QUERY_IDLE` reader"]
2pub type R = crate::R<QUERY_IDLE_SPEC>;
3#[doc = "Field `QUERY_IDLE` reader - query rsa idle. 1'b0: busy, 1'b1: idle"]
4pub type QUERY_IDLE_R = crate::BitReader;
5impl R {
6 #[doc = "Bit 0 - query rsa idle. 1'b0: busy, 1'b1: idle"]
7 #[inline(always)]
8 pub fn query_idle(&self) -> QUERY_IDLE_R {
9 QUERY_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("QUERY_IDLE")
16 .field("query_idle", &self.query_idle())
17 .finish()
18 }
19}
20#[doc = "RSA query idle register\n\nYou can [`read`](crate::Reg::read) this register and get [`query_idle::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct QUERY_IDLE_SPEC;
22impl crate::RegisterSpec for QUERY_IDLE_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`query_idle::R`](R) reader structure"]
26impl crate::Readable for QUERY_IDLE_SPEC {}
27#[doc = "`reset()` method sets QUERY_IDLE to value 0"]
28impl crate::Resettable for QUERY_IDLE_SPEC {
29 const RESET_VALUE: u32 = 0;
30}