esp32s3/usb0/
haint.rs

1#[doc = "Register `HAINT` reader"]
2pub type R = crate::R<HAINT_SPEC>;
3#[doc = "Field `HAINT` reader - "]
4pub type HAINT_R = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7"]
7    #[inline(always)]
8    pub fn haint(&self) -> HAINT_R {
9        HAINT_R::new((self.bits & 0xff) 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("HAINT")
16            .field("haint", &self.haint())
17            .finish()
18    }
19}
20#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`haint::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct HAINT_SPEC;
22impl crate::RegisterSpec for HAINT_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`haint::R`](R) reader structure"]
26impl crate::Readable for HAINT_SPEC {}
27#[doc = "`reset()` method sets HAINT to value 0"]
28impl crate::Resettable for HAINT_SPEC {
29    const RESET_VALUE: u32 = 0;
30}