#[doc = "Register `CAN_MCR` reader"]
pub type R = crate::R<CanMcrSpec>;
#[doc = "Register `CAN_MCR` writer"]
pub type W = crate::W<CanMcrSpec>;
#[doc = "Field `INRQ` reader - INRQ"]
pub type InrqR = crate::BitReader;
#[doc = "Field `INRQ` writer - INRQ"]
pub type InrqW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `SLEEP` reader - SLEEP"]
pub type SleepR = crate::BitReader;
#[doc = "Field `SLEEP` writer - SLEEP"]
pub type SleepW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TXFP` reader - TXFP"]
pub type TxfpR = crate::BitReader;
#[doc = "Field `TXFP` writer - TXFP"]
pub type TxfpW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RFLM` reader - RFLM"]
pub type RflmR = crate::BitReader;
#[doc = "Field `RFLM` writer - RFLM"]
pub type RflmW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `NART` reader - NART"]
pub type NartR = crate::BitReader;
#[doc = "Field `NART` writer - NART"]
pub type NartW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AWUM` reader - AWUM"]
pub type AwumR = crate::BitReader;
#[doc = "Field `AWUM` writer - AWUM"]
pub type AwumW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ABOM` reader - ABOM"]
pub type AbomR = crate::BitReader;
#[doc = "Field `ABOM` writer - ABOM"]
pub type AbomW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TTCM` reader - TTCM"]
pub type TtcmR = crate::BitReader;
#[doc = "Field `TTCM` writer - TTCM"]
pub type TtcmW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `RESET` reader - RESET"]
pub type ResetR = crate::BitReader;
#[doc = "Field `RESET` writer - RESET"]
pub type ResetW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DBF` reader - DBF"]
pub type DbfR = crate::BitReader;
#[doc = "Field `DBF` writer - DBF"]
pub type DbfW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - INRQ"]
    #[inline(always)]
    pub fn inrq(&self) -> InrqR {
        InrqR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - SLEEP"]
    #[inline(always)]
    pub fn sleep(&self) -> SleepR {
        SleepR::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - TXFP"]
    #[inline(always)]
    pub fn txfp(&self) -> TxfpR {
        TxfpR::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - RFLM"]
    #[inline(always)]
    pub fn rflm(&self) -> RflmR {
        RflmR::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - NART"]
    #[inline(always)]
    pub fn nart(&self) -> NartR {
        NartR::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - AWUM"]
    #[inline(always)]
    pub fn awum(&self) -> AwumR {
        AwumR::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - ABOM"]
    #[inline(always)]
    pub fn abom(&self) -> AbomR {
        AbomR::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - TTCM"]
    #[inline(always)]
    pub fn ttcm(&self) -> TtcmR {
        TtcmR::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 15 - RESET"]
    #[inline(always)]
    pub fn reset(&self) -> ResetR {
        ResetR::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - DBF"]
    #[inline(always)]
    pub fn dbf(&self) -> DbfR {
        DbfR::new(((self.bits >> 16) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - INRQ"]
    #[inline(always)]
    pub fn inrq(&mut self) -> InrqW<'_, CanMcrSpec> {
        InrqW::new(self, 0)
    }
    #[doc = "Bit 1 - SLEEP"]
    #[inline(always)]
    pub fn sleep(&mut self) -> SleepW<'_, CanMcrSpec> {
        SleepW::new(self, 1)
    }
    #[doc = "Bit 2 - TXFP"]
    #[inline(always)]
    pub fn txfp(&mut self) -> TxfpW<'_, CanMcrSpec> {
        TxfpW::new(self, 2)
    }
    #[doc = "Bit 3 - RFLM"]
    #[inline(always)]
    pub fn rflm(&mut self) -> RflmW<'_, CanMcrSpec> {
        RflmW::new(self, 3)
    }
    #[doc = "Bit 4 - NART"]
    #[inline(always)]
    pub fn nart(&mut self) -> NartW<'_, CanMcrSpec> {
        NartW::new(self, 4)
    }
    #[doc = "Bit 5 - AWUM"]
    #[inline(always)]
    pub fn awum(&mut self) -> AwumW<'_, CanMcrSpec> {
        AwumW::new(self, 5)
    }
    #[doc = "Bit 6 - ABOM"]
    #[inline(always)]
    pub fn abom(&mut self) -> AbomW<'_, CanMcrSpec> {
        AbomW::new(self, 6)
    }
    #[doc = "Bit 7 - TTCM"]
    #[inline(always)]
    pub fn ttcm(&mut self) -> TtcmW<'_, CanMcrSpec> {
        TtcmW::new(self, 7)
    }
    #[doc = "Bit 15 - RESET"]
    #[inline(always)]
    pub fn reset(&mut self) -> ResetW<'_, CanMcrSpec> {
        ResetW::new(self, 15)
    }
    #[doc = "Bit 16 - DBF"]
    #[inline(always)]
    pub fn dbf(&mut self) -> DbfW<'_, CanMcrSpec> {
        DbfW::new(self, 16)
    }
}
#[doc = "CAN_MCR\n\nYou can [`read`](crate::Reg::read) this register and get [`can_mcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`can_mcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CanMcrSpec;
impl crate::RegisterSpec for CanMcrSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`can_mcr::R`](R) reader structure"]
impl crate::Readable for CanMcrSpec {}
#[doc = "`write(|w| ..)` method takes [`can_mcr::W`](W) writer structure"]
impl crate::Writable for CanMcrSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets CAN_MCR to value 0"]
impl crate::Resettable for CanMcrSpec {}
