#[doc = "Register `CAN_RF1R` reader"]
pub type R = crate::R<CanRf1rSpec>;
#[doc = "Register `CAN_RF1R` writer"]
pub type W = crate::W<CanRf1rSpec>;
#[doc = "Field `FMP1` reader - FMP1"]
pub type Fmp1R = crate::FieldReader;
#[doc = "Field `FULL1` reader - FULL1"]
pub type Full1R = crate::BitReader;
#[doc = "Field `FULL1` writer - FULL1"]
pub type Full1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FOVR1` reader - FOVR1"]
pub type Fovr1R = crate::BitReader;
#[doc = "Field `FOVR1` writer - FOVR1"]
pub type Fovr1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RFOM1` reader - RFOM1"]
pub type Rfom1R = crate::BitReader;
#[doc = "Field `RFOM1` writer - RFOM1"]
pub type Rfom1W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bits 0:1 - FMP1"]
    #[inline(always)]
    pub fn fmp1(&self) -> Fmp1R {
        Fmp1R::new((self.bits & 3) as u8)
    }
    #[doc = "Bit 3 - FULL1"]
    #[inline(always)]
    pub fn full1(&self) -> Full1R {
        Full1R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - FOVR1"]
    #[inline(always)]
    pub fn fovr1(&self) -> Fovr1R {
        Fovr1R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - RFOM1"]
    #[inline(always)]
    pub fn rfom1(&self) -> Rfom1R {
        Rfom1R::new(((self.bits >> 5) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 3 - FULL1"]
    #[inline(always)]
    pub fn full1(&mut self) -> Full1W<'_, CanRf1rSpec> {
        Full1W::new(self, 3)
    }
    #[doc = "Bit 4 - FOVR1"]
    #[inline(always)]
    pub fn fovr1(&mut self) -> Fovr1W<'_, CanRf1rSpec> {
        Fovr1W::new(self, 4)
    }
    #[doc = "Bit 5 - RFOM1"]
    #[inline(always)]
    pub fn rfom1(&mut self) -> Rfom1W<'_, CanRf1rSpec> {
        Rfom1W::new(self, 5)
    }
}
#[doc = "CAN_RF1R\n\nYou can [`read`](crate::Reg::read) this register and get [`can_rf1r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_rf1r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CanRf1rSpec;
impl crate::RegisterSpec for CanRf1rSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`can_rf1r::R`](R) reader structure"]
impl crate::Readable for CanRf1rSpec {}
#[doc = "`write(|w| ..)` method takes [`can_rf1r::W`](W) writer structure"]
impl crate::Writable for CanRf1rSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets CAN_RF1R to value 0"]
impl crate::Resettable for CanRf1rSpec {}
