pub type R = crate::R<TCRrs>;
pub type W = crate::W<TCRrs>;
pub type AFCEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FAFCR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ALCEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FALCR_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RFC1EN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RFC1CM_R = crate::BitReader;
pub type RFC1CM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FRFC1R_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RFC2EN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type RFC2CM_R = crate::BitReader;
pub type RFC2CM_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FRFC2R_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn rfc1cm(&self) -> RFC1CM_R {
RFC1CM_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn rfc2cm(&self) -> RFC2CM_R {
RFC2CM_R::new(((self.bits >> 21) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TCR")
.field("rfc1cm", &self.rfc1cm())
.field("rfc2cm", &self.rfc2cm())
.finish()
}
}
impl W {
#[inline(always)]
pub fn afcen(&mut self) -> AFCEN_W<TCRrs> {
AFCEN_W::new(self, 0)
}
#[inline(always)]
pub fn fafcr(&mut self) -> FAFCR_W<TCRrs> {
FAFCR_W::new(self, 1)
}
#[inline(always)]
pub fn alcen(&mut self) -> ALCEN_W<TCRrs> {
ALCEN_W::new(self, 4)
}
#[inline(always)]
pub fn falcr(&mut self) -> FALCR_W<TCRrs> {
FALCR_W::new(self, 5)
}
#[inline(always)]
pub fn rfc1en(&mut self) -> RFC1EN_W<TCRrs> {
RFC1EN_W::new(self, 16)
}
#[inline(always)]
pub fn rfc1cm(&mut self) -> RFC1CM_W<TCRrs> {
RFC1CM_W::new(self, 17)
}
#[inline(always)]
pub fn frfc1r(&mut self) -> FRFC1R_W<TCRrs> {
FRFC1R_W::new(self, 18)
}
#[inline(always)]
pub fn rfc2en(&mut self) -> RFC2EN_W<TCRrs> {
RFC2EN_W::new(self, 20)
}
#[inline(always)]
pub fn rfc2cm(&mut self) -> RFC2CM_W<TCRrs> {
RFC2CM_W::new(self, 21)
}
#[inline(always)]
pub fn frfc2r(&mut self) -> FRFC2R_W<TCRrs> {
FRFC2R_W::new(self, 22)
}
}
pub struct TCRrs;
impl crate::RegisterSpec for TCRrs {
type Ux = u32;
}
impl crate::Readable for TCRrs {}
impl crate::Writable for TCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TCRrs {}