pub type R = crate::R<FCRrs>;
pub type W = crate::W<FCRrs>;
pub type CB0OF_R = crate::BitReader;
pub type CB0OF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CB1OF_R = crate::BitReader;
pub type CB1OF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CB2OF_R = crate::BitReader;
pub type CB2OF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CB3OF_R = crate::BitReader;
pub type CB3OF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CAMEF_R = crate::BitReader;
pub type CAMEF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn cb0of(&self) -> CB0OF_R {
CB0OF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn cb1of(&self) -> CB1OF_R {
CB1OF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn cb2of(&self) -> CB2OF_R {
CB2OF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn cb3of(&self) -> CB3OF_R {
CB3OF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn camef(&self) -> CAMEF_R {
CAMEF_R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FCR")
.field("cb0of", &self.cb0of())
.field("cb1of", &self.cb1of())
.field("cb2of", &self.cb2of())
.field("cb3of", &self.cb3of())
.field("camef", &self.camef())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cb0of(&mut self) -> CB0OF_W<FCRrs> {
CB0OF_W::new(self, 0)
}
#[inline(always)]
pub fn cb1of(&mut self) -> CB1OF_W<FCRrs> {
CB1OF_W::new(self, 1)
}
#[inline(always)]
pub fn cb2of(&mut self) -> CB2OF_W<FCRrs> {
CB2OF_W::new(self, 2)
}
#[inline(always)]
pub fn cb3of(&mut self) -> CB3OF_W<FCRrs> {
CB3OF_W::new(self, 3)
}
#[inline(always)]
pub fn camef(&mut self) -> CAMEF_W<FCRrs> {
CAMEF_W::new(self, 4)
}
}
pub struct FCRrs;
impl crate::RegisterSpec for FCRrs {
type Ux = u32;
}
impl crate::Readable for FCRrs {}
impl crate::Writable for FCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for FCRrs {}