#[doc = "Register `FCTL` reader"]
pub type R = crate::R<FctlSpec>;
#[doc = "Register `FCTL` writer"]
pub type W = crate::W<FctlSpec>;
#[doc = "Field `FLD` reader - Filter lock disable"]
pub type FldR = crate::BitReader;
#[doc = "Field `FLD` writer - Filter lock disable"]
pub type FldW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `HBC1F` reader - Header bank of CAN1 filter"]
pub type Hbc1fR = crate::FieldReader;
#[doc = "Field `HBC1F` writer - Header bank of CAN1 filter"]
pub type Hbc1fW<'a, REG> = crate::FieldWriter<'a, REG, 6>;
impl R {
#[doc = "Bit 0 - Filter lock disable"]
#[inline(always)]
pub fn fld(&self) -> FldR {
FldR::new((self.bits & 1) != 0)
}
#[doc = "Bits 8:13 - Header bank of CAN1 filter"]
#[inline(always)]
pub fn hbc1f(&self) -> Hbc1fR {
Hbc1fR::new(((self.bits >> 8) & 0x3f) as u8)
}
}
impl W {
#[doc = "Bit 0 - Filter lock disable"]
#[inline(always)]
pub fn fld(&mut self) -> FldW<FctlSpec> {
FldW::new(self, 0)
}
#[doc = "Bits 8:13 - Header bank of CAN1 filter"]
#[inline(always)]
pub fn hbc1f(&mut self) -> Hbc1fW<FctlSpec> {
Hbc1fW::new(self, 8)
}
}
#[doc = "Filter control register\n\nYou can [`read`](crate::Reg::read) this register and get [`fctl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fctl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FctlSpec;
impl crate::RegisterSpec for FctlSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`fctl::R`](R) reader structure"]
impl crate::Readable for FctlSpec {}
#[doc = "`write(|w| ..)` method takes [`fctl::W`](W) writer structure"]
impl crate::Writable for FctlSpec {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets FCTL to value 0x2a1c_0e01"]
impl crate::Resettable for FctlSpec {
const RESET_VALUE: u32 = 0x2a1c_0e01;
}