1#[doc = "Register `RXFIR` reader"]
2pub type R = crate::R<RxfirSpec>;
3#[doc = "Field `IDHIT` reader - Identifier Acceptance Filter Hit Indicator"]
4pub type IdhitR = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:8 - Identifier Acceptance Filter Hit Indicator"]
7 #[inline(always)]
8 pub fn idhit(&self) -> IdhitR {
9 IdhitR::new((self.bits & 0x01ff) as u16)
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("RXFIR").field("idhit", &self.idhit()).finish()
16 }
17}
18#[doc = "Legacy RX FIFO Information\n\nYou can [`read`](crate::Reg::read) this register and get [`rxfir::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct RxfirSpec;
20impl crate::RegisterSpec for RxfirSpec {
21 type Ux = u32;
22}
23#[doc = "`read()` method returns [`rxfir::R`](R) reader structure"]
24impl crate::Readable for RxfirSpec {}
25#[doc = "`reset()` method sets RXFIR to value 0"]
26impl crate::Resettable for RxfirSpec {}