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