pub type R = crate::R<FTSR2rs>;
pub type W = crate::W<FTSR2rs>;
pub type FT35_R = crate::BitReader;
pub type FT35_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FT36_R = crate::BitReader;
pub type FT36_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FT37_R = crate::BitReader;
pub type FT37_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type FT38_R = crate::BitReader;
pub type FT38_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ft35(&self) -> FT35_R {
FT35_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn ft36(&self) -> FT36_R {
FT36_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn ft37(&self) -> FT37_R {
FT37_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn ft38(&self) -> FT38_R {
FT38_R::new(((self.bits >> 6) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FTSR2")
.field("ft35", &self.ft35())
.field("ft36", &self.ft36())
.field("ft37", &self.ft37())
.field("ft38", &self.ft38())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ft35(&mut self) -> FT35_W<FTSR2rs> {
FT35_W::new(self, 3)
}
#[inline(always)]
pub fn ft36(&mut self) -> FT36_W<FTSR2rs> {
FT36_W::new(self, 4)
}
#[inline(always)]
pub fn ft37(&mut self) -> FT37_W<FTSR2rs> {
FT37_W::new(self, 5)
}
#[inline(always)]
pub fn ft38(&mut self) -> FT38_W<FTSR2rs> {
FT38_W::new(self, 6)
}
}
pub struct FTSR2rs;
impl crate::RegisterSpec for FTSR2rs {
type Ux = u32;
}
impl crate::Readable for FTSR2rs {}
impl crate::Writable for FTSR2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for FTSR2rs {}