esp32s3/peri_backup/
int_raw.rs1#[doc = "Register `INT_RAW` reader"]
2pub type R = crate::R<INT_RAW_SPEC>;
3#[doc = "Field `DONE` reader - x"]
4pub type DONE_R = crate::BitReader;
5#[doc = "Field `ERR` reader - x"]
6pub type ERR_R = crate::BitReader;
7impl R {
8 #[doc = "Bit 0 - x"]
9 #[inline(always)]
10 pub fn done(&self) -> DONE_R {
11 DONE_R::new((self.bits & 1) != 0)
12 }
13 #[doc = "Bit 1 - x"]
14 #[inline(always)]
15 pub fn err(&self) -> ERR_R {
16 ERR_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("done", &self.done())
24 .field("err", &self.err())
25 .finish()
26 }
27}
28#[doc = "x\n\nYou can [`read`](crate::Reg::read) this register and get [`int_raw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct INT_RAW_SPEC;
30impl crate::RegisterSpec for INT_RAW_SPEC {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
34impl crate::Readable for INT_RAW_SPEC {}
35#[doc = "`reset()` method sets INT_RAW to value 0"]
36impl crate::Resettable for INT_RAW_SPEC {
37 const RESET_VALUE: u32 = 0;
38}