pub type R = crate::R<FCRrs>;
pub type W = crate::W<FCRrs>;
pub type HD_R = crate::BitReader;
pub type HD_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type SOFIE_R = crate::BitReader;
pub type SOFIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type UDDIE_R = crate::BitReader;
pub type UDDIE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PON_R = crate::FieldReader;
pub type PON_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type DEAD_R = crate::FieldReader;
pub type DEAD_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type CC_R = crate::FieldReader;
pub type CC_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type BLINKF_R = crate::FieldReader;
pub type BLINKF_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
pub type BLINK_R = crate::FieldReader;
pub type BLINK_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type DIV_R = crate::FieldReader;
pub type DIV_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type PS_R = crate::FieldReader;
pub type PS_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
#[inline(always)]
pub fn hd(&self) -> HD_R {
HD_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn sofie(&self) -> SOFIE_R {
SOFIE_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn uddie(&self) -> UDDIE_R {
UDDIE_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn pon(&self) -> PON_R {
PON_R::new(((self.bits >> 4) & 7) as u8)
}
#[inline(always)]
pub fn dead(&self) -> DEAD_R {
DEAD_R::new(((self.bits >> 7) & 7) as u8)
}
#[inline(always)]
pub fn cc(&self) -> CC_R {
CC_R::new(((self.bits >> 10) & 7) as u8)
}
#[inline(always)]
pub fn blinkf(&self) -> BLINKF_R {
BLINKF_R::new(((self.bits >> 13) & 7) as u8)
}
#[inline(always)]
pub fn blink(&self) -> BLINK_R {
BLINK_R::new(((self.bits >> 16) & 3) as u8)
}
#[inline(always)]
pub fn div(&self) -> DIV_R {
DIV_R::new(((self.bits >> 18) & 0x0f) as u8)
}
#[inline(always)]
pub fn ps(&self) -> PS_R {
PS_R::new(((self.bits >> 22) & 0x0f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FCR")
.field("ps", &self.ps())
.field("div", &self.div())
.field("blink", &self.blink())
.field("blinkf", &self.blinkf())
.field("cc", &self.cc())
.field("dead", &self.dead())
.field("pon", &self.pon())
.field("uddie", &self.uddie())
.field("sofie", &self.sofie())
.field("hd", &self.hd())
.finish()
}
}
impl W {
#[inline(always)]
pub fn hd(&mut self) -> HD_W<FCRrs> {
HD_W::new(self, 0)
}
#[inline(always)]
pub fn sofie(&mut self) -> SOFIE_W<FCRrs> {
SOFIE_W::new(self, 1)
}
#[inline(always)]
pub fn uddie(&mut self) -> UDDIE_W<FCRrs> {
UDDIE_W::new(self, 3)
}
#[inline(always)]
pub fn pon(&mut self) -> PON_W<FCRrs> {
PON_W::new(self, 4)
}
#[inline(always)]
pub fn dead(&mut self) -> DEAD_W<FCRrs> {
DEAD_W::new(self, 7)
}
#[inline(always)]
pub fn cc(&mut self) -> CC_W<FCRrs> {
CC_W::new(self, 10)
}
#[inline(always)]
pub fn blinkf(&mut self) -> BLINKF_W<FCRrs> {
BLINKF_W::new(self, 13)
}
#[inline(always)]
pub fn blink(&mut self) -> BLINK_W<FCRrs> {
BLINK_W::new(self, 16)
}
#[inline(always)]
pub fn div(&mut self) -> DIV_W<FCRrs> {
DIV_W::new(self, 18)
}
#[inline(always)]
pub fn ps(&mut self) -> PS_W<FCRrs> {
PS_W::new(self, 22)
}
}
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 {}