esp32s3/ds/
query_key_wrong.rs1#[doc = "Register `QUERY_KEY_WRONG` reader"]
2pub type R = crate::R<QUERY_KEY_WRONG_SPEC>;
3#[doc = "Field `QUERY_KEY_WRONG` reader - 1-15: HMAC was activated, but the DS peripheral did not successfully receive the DS_KEY from the HMAC peripheral. (The biggest value is 15). 0: HMAC is not activated."]
4pub type QUERY_KEY_WRONG_R = crate::FieldReader;
5impl R {
6 #[doc = "Bits 0:3 - 1-15: HMAC was activated, but the DS peripheral did not successfully receive the DS_KEY from the HMAC peripheral. (The biggest value is 15). 0: HMAC is not activated."]
7 #[inline(always)]
8 pub fn query_key_wrong(&self) -> QUERY_KEY_WRONG_R {
9 QUERY_KEY_WRONG_R::new((self.bits & 0x0f) as u8)
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_KEY_WRONG")
16 .field("query_key_wrong", &self.query_key_wrong())
17 .finish()
18 }
19}
20#[doc = "Checks the reason why DS_KEY is not ready\n\nYou can [`read`](crate::Reg::read) this register and get [`query_key_wrong::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct QUERY_KEY_WRONG_SPEC;
22impl crate::RegisterSpec for QUERY_KEY_WRONG_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`query_key_wrong::R`](R) reader structure"]
26impl crate::Readable for QUERY_KEY_WRONG_SPEC {}
27#[doc = "`reset()` method sets QUERY_KEY_WRONG to value 0"]
28impl crate::Resettable for QUERY_KEY_WRONG_SPEC {
29 const RESET_VALUE: u32 = 0;
30}