Skip to main content

mcxa_pac/usb0/
frmnuml.rs

1#[doc = "Register `FRMNUML` reader"]
2pub type R = crate::R<FrmnumlSpec>;
3#[doc = "Field `FRM` reader - Frame Number, Bits 0-7"]
4pub type FrmR = crate::FieldReader;
5impl R {
6    #[doc = "Bits 0:7 - Frame Number, Bits 0-7"]
7    #[inline(always)]
8    pub fn frm(&self) -> FrmR {
9        FrmR::new(self.bits)
10    }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("FRMNUML").field("frm", &self.frm()).finish()
16    }
17}
18#[doc = "Frame Number Register Low\n\nYou can [`read`](crate::Reg::read) this register and get [`frmnuml::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct FrmnumlSpec;
20impl crate::RegisterSpec for FrmnumlSpec {
21    type Ux = u8;
22}
23#[doc = "`read()` method returns [`frmnuml::R`](R) reader structure"]
24impl crate::Readable for FrmnumlSpec {}
25#[doc = "`reset()` method sets FRMNUML to value 0"]
26impl crate::Resettable for FrmnumlSpec {}