esp32s3/ds/
query_check.rs

1#[doc = "Register `QUERY_CHECK` reader"]
2pub type R = crate::R<QUERY_CHECK_SPEC>;
3#[doc = "Field `MD_ERROR` reader - MD checkout result. 1: The MD check fails. 0: The MD check passes."]
4pub type MD_ERROR_R = crate::BitReader;
5#[doc = "Field `PADDING_BAD` reader - padding checkout result. 1: The padding check fails. 0: The padding check passes."]
6pub type PADDING_BAD_R = crate::BitReader;
7impl R {
8    #[doc = "Bit 0 - MD checkout result. 1: The MD check fails. 0: The MD check passes."]
9    #[inline(always)]
10    pub fn md_error(&self) -> MD_ERROR_R {
11        MD_ERROR_R::new((self.bits & 1) != 0)
12    }
13    #[doc = "Bit 1 - padding checkout result. 1: The padding check fails. 0: The padding check passes."]
14    #[inline(always)]
15    pub fn padding_bad(&self) -> PADDING_BAD_R {
16        PADDING_BAD_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("QUERY_CHECK")
23            .field("md_error", &self.md_error())
24            .field("padding_bad", &self.padding_bad())
25            .finish()
26    }
27}
28#[doc = "Queries DS check result\n\nYou can [`read`](crate::Reg::read) this register and get [`query_check::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct QUERY_CHECK_SPEC;
30impl crate::RegisterSpec for QUERY_CHECK_SPEC {
31    type Ux = u32;
32}
33#[doc = "`read()` method returns [`query_check::R`](R) reader structure"]
34impl crate::Readable for QUERY_CHECK_SPEC {}
35#[doc = "`reset()` method sets QUERY_CHECK to value 0"]
36impl crate::Resettable for QUERY_CHECK_SPEC {
37    const RESET_VALUE: u32 = 0;
38}