pub type R = crate::R<CTRLrs>;
pub type W = crate::W<CTRLrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum MODE {
Disable = 0,
Ovssingle = 1,
Extclksingle = 2,
Extclkquad = 3,
Ovsquad1x = 4,
Ovsquad2x = 5,
Ovsquad4x = 6,
}
impl From<MODE> for u8 {
#[inline(always)]
fn from(variant: MODE) -> Self {
variant as _
}
}
impl crate::FieldSpec for MODE {
type Ux = u8;
}
impl crate::IsEnum for MODE {}
pub type ModeR = crate::FieldReader<MODE>;
impl ModeR {
#[inline(always)]
pub const fn variant(&self) -> Option<MODE> {
match self.bits {
0 => Some(MODE::Disable),
1 => Some(MODE::Ovssingle),
2 => Some(MODE::Extclksingle),
3 => Some(MODE::Extclkquad),
4 => Some(MODE::Ovsquad1x),
5 => Some(MODE::Ovsquad2x),
6 => Some(MODE::Ovsquad4x),
_ => None,
}
}
#[inline(always)]
pub fn is_disable(&self) -> bool {
*self == MODE::Disable
}
#[inline(always)]
pub fn is_ovssingle(&self) -> bool {
*self == MODE::Ovssingle
}
#[inline(always)]
pub fn is_extclksingle(&self) -> bool {
*self == MODE::Extclksingle
}
#[inline(always)]
pub fn is_extclkquad(&self) -> bool {
*self == MODE::Extclkquad
}
#[inline(always)]
pub fn is_ovsquad1x(&self) -> bool {
*self == MODE::Ovsquad1x
}
#[inline(always)]
pub fn is_ovsquad2x(&self) -> bool {
*self == MODE::Ovsquad2x
}
#[inline(always)]
pub fn is_ovsquad4x(&self) -> bool {
*self == MODE::Ovsquad4x
}
}
pub type ModeW<'a, REG> = crate::FieldWriter<'a, REG, 3, MODE>;
impl<'a, REG> ModeW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn disable(self) -> &'a mut crate::W<REG> {
self.variant(MODE::Disable)
}
#[inline(always)]
pub fn ovssingle(self) -> &'a mut crate::W<REG> {
self.variant(MODE::Ovssingle)
}
#[inline(always)]
pub fn extclksingle(self) -> &'a mut crate::W<REG> {
self.variant(MODE::Extclksingle)
}
#[inline(always)]
pub fn extclkquad(self) -> &'a mut crate::W<REG> {
self.variant(MODE::Extclkquad)
}
#[inline(always)]
pub fn ovsquad1x(self) -> &'a mut crate::W<REG> {
self.variant(MODE::Ovsquad1x)
}
#[inline(always)]
pub fn ovsquad2x(self) -> &'a mut crate::W<REG> {
self.variant(MODE::Ovsquad2x)
}
#[inline(always)]
pub fn ovsquad4x(self) -> &'a mut crate::W<REG> {
self.variant(MODE::Ovsquad4x)
}
}
pub type FiltR = crate::BitReader;
pub type FiltW<'a, REG> = crate::BitWriter<'a, REG>;
pub type RstenR = crate::BitReader;
pub type RstenW<'a, REG> = crate::BitWriter<'a, REG>;
pub type CntrstenR = crate::BitReader;
pub type CntrstenW<'a, REG> = crate::BitWriter<'a, REG>;
pub type AuxcntrstenR = crate::BitReader;
pub type AuxcntrstenW<'a, REG> = crate::BitWriter<'a, REG>;
pub type DebughaltR = crate::BitReader;
pub type DebughaltW<'a, REG> = crate::BitWriter<'a, REG>;
pub type HystR = crate::BitReader;
pub type HystW<'a, REG> = crate::BitWriter<'a, REG>;
pub type S1cdirR = crate::BitReader;
pub type S1cdirW<'a, REG> = crate::BitWriter<'a, REG>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum CNTEV {
Both = 0,
Up = 1,
Down = 2,
None = 3,
}
impl From<CNTEV> for u8 {
#[inline(always)]
fn from(variant: CNTEV) -> Self {
variant as _
}
}
impl crate::FieldSpec for CNTEV {
type Ux = u8;
}
impl crate::IsEnum for CNTEV {}
pub type CntevR = crate::FieldReader<CNTEV>;
impl CntevR {
#[inline(always)]
pub const fn variant(&self) -> CNTEV {
match self.bits {
0 => CNTEV::Both,
1 => CNTEV::Up,
2 => CNTEV::Down,
3 => CNTEV::None,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_both(&self) -> bool {
*self == CNTEV::Both
}
#[inline(always)]
pub fn is_up(&self) -> bool {
*self == CNTEV::Up
}
#[inline(always)]
pub fn is_down(&self) -> bool {
*self == CNTEV::Down
}
#[inline(always)]
pub fn is_none(&self) -> bool {
*self == CNTEV::None
}
}
pub type CntevW<'a, REG> = crate::FieldWriter<'a, REG, 2, CNTEV, crate::Safe>;
impl<'a, REG> CntevW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn both(self) -> &'a mut crate::W<REG> {
self.variant(CNTEV::Both)
}
#[inline(always)]
pub fn up(self) -> &'a mut crate::W<REG> {
self.variant(CNTEV::Up)
}
#[inline(always)]
pub fn down(self) -> &'a mut crate::W<REG> {
self.variant(CNTEV::Down)
}
#[inline(always)]
pub fn none(self) -> &'a mut crate::W<REG> {
self.variant(CNTEV::None)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum AUXCNTEV {
None = 0,
Up = 1,
Down = 2,
Both = 3,
}
impl From<AUXCNTEV> for u8 {
#[inline(always)]
fn from(variant: AUXCNTEV) -> Self {
variant as _
}
}
impl crate::FieldSpec for AUXCNTEV {
type Ux = u8;
}
impl crate::IsEnum for AUXCNTEV {}
pub type AuxcntevR = crate::FieldReader<AUXCNTEV>;
impl AuxcntevR {
#[inline(always)]
pub const fn variant(&self) -> AUXCNTEV {
match self.bits {
0 => AUXCNTEV::None,
1 => AUXCNTEV::Up,
2 => AUXCNTEV::Down,
3 => AUXCNTEV::Both,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_none(&self) -> bool {
*self == AUXCNTEV::None
}
#[inline(always)]
pub fn is_up(&self) -> bool {
*self == AUXCNTEV::Up
}
#[inline(always)]
pub fn is_down(&self) -> bool {
*self == AUXCNTEV::Down
}
#[inline(always)]
pub fn is_both(&self) -> bool {
*self == AUXCNTEV::Both
}
}
pub type AuxcntevW<'a, REG> = crate::FieldWriter<'a, REG, 2, AUXCNTEV, crate::Safe>;
impl<'a, REG> AuxcntevW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn none(self) -> &'a mut crate::W<REG> {
self.variant(AUXCNTEV::None)
}
#[inline(always)]
pub fn up(self) -> &'a mut crate::W<REG> {
self.variant(AUXCNTEV::Up)
}
#[inline(always)]
pub fn down(self) -> &'a mut crate::W<REG> {
self.variant(AUXCNTEV::Down)
}
#[inline(always)]
pub fn both(self) -> &'a mut crate::W<REG> {
self.variant(AUXCNTEV::Both)
}
}
pub type CntdirR = crate::BitReader;
pub type CntdirW<'a, REG> = crate::BitWriter<'a, REG>;
pub type EdgeR = crate::BitReader;
pub type EdgeW<'a, REG> = crate::BitWriter<'a, REG>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TCCMODE {
Disabled = 0,
Lfa = 1,
Prs = 2,
}
impl From<TCCMODE> for u8 {
#[inline(always)]
fn from(variant: TCCMODE) -> Self {
variant as _
}
}
impl crate::FieldSpec for TCCMODE {
type Ux = u8;
}
impl crate::IsEnum for TCCMODE {}
pub type TccmodeR = crate::FieldReader<TCCMODE>;
impl TccmodeR {
#[inline(always)]
pub const fn variant(&self) -> Option<TCCMODE> {
match self.bits {
0 => Some(TCCMODE::Disabled),
1 => Some(TCCMODE::Lfa),
2 => Some(TCCMODE::Prs),
_ => None,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TCCMODE::Disabled
}
#[inline(always)]
pub fn is_lfa(&self) -> bool {
*self == TCCMODE::Lfa
}
#[inline(always)]
pub fn is_prs(&self) -> bool {
*self == TCCMODE::Prs
}
}
pub type TccmodeW<'a, REG> = crate::FieldWriter<'a, REG, 2, TCCMODE>;
impl<'a, REG> TccmodeW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(TCCMODE::Disabled)
}
#[inline(always)]
pub fn lfa(self) -> &'a mut crate::W<REG> {
self.variant(TCCMODE::Lfa)
}
#[inline(always)]
pub fn prs(self) -> &'a mut crate::W<REG> {
self.variant(TCCMODE::Prs)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TCCPRESC {
Div1 = 0,
Div2 = 1,
Div4 = 2,
Div8 = 3,
}
impl From<TCCPRESC> for u8 {
#[inline(always)]
fn from(variant: TCCPRESC) -> Self {
variant as _
}
}
impl crate::FieldSpec for TCCPRESC {
type Ux = u8;
}
impl crate::IsEnum for TCCPRESC {}
pub type TccprescR = crate::FieldReader<TCCPRESC>;
impl TccprescR {
#[inline(always)]
pub const fn variant(&self) -> TCCPRESC {
match self.bits {
0 => TCCPRESC::Div1,
1 => TCCPRESC::Div2,
2 => TCCPRESC::Div4,
3 => TCCPRESC::Div8,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_div1(&self) -> bool {
*self == TCCPRESC::Div1
}
#[inline(always)]
pub fn is_div2(&self) -> bool {
*self == TCCPRESC::Div2
}
#[inline(always)]
pub fn is_div4(&self) -> bool {
*self == TCCPRESC::Div4
}
#[inline(always)]
pub fn is_div8(&self) -> bool {
*self == TCCPRESC::Div8
}
}
pub type TccprescW<'a, REG> = crate::FieldWriter<'a, REG, 2, TCCPRESC, crate::Safe>;
impl<'a, REG> TccprescW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn div1(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRESC::Div1)
}
#[inline(always)]
pub fn div2(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRESC::Div2)
}
#[inline(always)]
pub fn div4(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRESC::Div4)
}
#[inline(always)]
pub fn div8(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRESC::Div8)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TCCCOMP {
Ltoe = 0,
Gtoe = 1,
Range = 2,
}
impl From<TCCCOMP> for u8 {
#[inline(always)]
fn from(variant: TCCCOMP) -> Self {
variant as _
}
}
impl crate::FieldSpec for TCCCOMP {
type Ux = u8;
}
impl crate::IsEnum for TCCCOMP {}
pub type TcccompR = crate::FieldReader<TCCCOMP>;
impl TcccompR {
#[inline(always)]
pub const fn variant(&self) -> Option<TCCCOMP> {
match self.bits {
0 => Some(TCCCOMP::Ltoe),
1 => Some(TCCCOMP::Gtoe),
2 => Some(TCCCOMP::Range),
_ => None,
}
}
#[inline(always)]
pub fn is_ltoe(&self) -> bool {
*self == TCCCOMP::Ltoe
}
#[inline(always)]
pub fn is_gtoe(&self) -> bool {
*self == TCCCOMP::Gtoe
}
#[inline(always)]
pub fn is_range(&self) -> bool {
*self == TCCCOMP::Range
}
}
pub type TcccompW<'a, REG> = crate::FieldWriter<'a, REG, 2, TCCCOMP>;
impl<'a, REG> TcccompW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn ltoe(self) -> &'a mut crate::W<REG> {
self.variant(TCCCOMP::Ltoe)
}
#[inline(always)]
pub fn gtoe(self) -> &'a mut crate::W<REG> {
self.variant(TCCCOMP::Gtoe)
}
#[inline(always)]
pub fn range(self) -> &'a mut crate::W<REG> {
self.variant(TCCCOMP::Range)
}
}
pub type PrsgateenR = crate::BitReader;
pub type PrsgateenW<'a, REG> = crate::BitWriter<'a, REG>;
pub type TccprspolR = crate::BitReader;
pub type TccprspolW<'a, REG> = crate::BitWriter<'a, REG>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TCCPRSSEL {
Prsch0 = 0,
Prsch1 = 1,
Prsch2 = 2,
Prsch3 = 3,
Prsch4 = 4,
Prsch5 = 5,
Prsch6 = 6,
Prsch7 = 7,
Prsch8 = 8,
Prsch9 = 9,
Prsch10 = 10,
Prsch11 = 11,
}
impl From<TCCPRSSEL> for u8 {
#[inline(always)]
fn from(variant: TCCPRSSEL) -> Self {
variant as _
}
}
impl crate::FieldSpec for TCCPRSSEL {
type Ux = u8;
}
impl crate::IsEnum for TCCPRSSEL {}
pub type TccprsselR = crate::FieldReader<TCCPRSSEL>;
impl TccprsselR {
#[inline(always)]
pub const fn variant(&self) -> Option<TCCPRSSEL> {
match self.bits {
0 => Some(TCCPRSSEL::Prsch0),
1 => Some(TCCPRSSEL::Prsch1),
2 => Some(TCCPRSSEL::Prsch2),
3 => Some(TCCPRSSEL::Prsch3),
4 => Some(TCCPRSSEL::Prsch4),
5 => Some(TCCPRSSEL::Prsch5),
6 => Some(TCCPRSSEL::Prsch6),
7 => Some(TCCPRSSEL::Prsch7),
8 => Some(TCCPRSSEL::Prsch8),
9 => Some(TCCPRSSEL::Prsch9),
10 => Some(TCCPRSSEL::Prsch10),
11 => Some(TCCPRSSEL::Prsch11),
_ => None,
}
}
#[inline(always)]
pub fn is_prsch0(&self) -> bool {
*self == TCCPRSSEL::Prsch0
}
#[inline(always)]
pub fn is_prsch1(&self) -> bool {
*self == TCCPRSSEL::Prsch1
}
#[inline(always)]
pub fn is_prsch2(&self) -> bool {
*self == TCCPRSSEL::Prsch2
}
#[inline(always)]
pub fn is_prsch3(&self) -> bool {
*self == TCCPRSSEL::Prsch3
}
#[inline(always)]
pub fn is_prsch4(&self) -> bool {
*self == TCCPRSSEL::Prsch4
}
#[inline(always)]
pub fn is_prsch5(&self) -> bool {
*self == TCCPRSSEL::Prsch5
}
#[inline(always)]
pub fn is_prsch6(&self) -> bool {
*self == TCCPRSSEL::Prsch6
}
#[inline(always)]
pub fn is_prsch7(&self) -> bool {
*self == TCCPRSSEL::Prsch7
}
#[inline(always)]
pub fn is_prsch8(&self) -> bool {
*self == TCCPRSSEL::Prsch8
}
#[inline(always)]
pub fn is_prsch9(&self) -> bool {
*self == TCCPRSSEL::Prsch9
}
#[inline(always)]
pub fn is_prsch10(&self) -> bool {
*self == TCCPRSSEL::Prsch10
}
#[inline(always)]
pub fn is_prsch11(&self) -> bool {
*self == TCCPRSSEL::Prsch11
}
}
pub type TccprsselW<'a, REG> = crate::FieldWriter<'a, REG, 4, TCCPRSSEL>;
impl<'a, REG> TccprsselW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn prsch0(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch0)
}
#[inline(always)]
pub fn prsch1(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch1)
}
#[inline(always)]
pub fn prsch2(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch2)
}
#[inline(always)]
pub fn prsch3(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch3)
}
#[inline(always)]
pub fn prsch4(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch4)
}
#[inline(always)]
pub fn prsch5(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch5)
}
#[inline(always)]
pub fn prsch6(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch6)
}
#[inline(always)]
pub fn prsch7(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch7)
}
#[inline(always)]
pub fn prsch8(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch8)
}
#[inline(always)]
pub fn prsch9(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch9)
}
#[inline(always)]
pub fn prsch10(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch10)
}
#[inline(always)]
pub fn prsch11(self) -> &'a mut crate::W<REG> {
self.variant(TCCPRSSEL::Prsch11)
}
}
pub type TopbhfselR = crate::BitReader;
pub type TopbhfselW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn mode(&self) -> ModeR {
ModeR::new((self.bits & 7) as u8)
}
#[inline(always)]
pub fn filt(&self) -> FiltR {
FiltR::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn rsten(&self) -> RstenR {
RstenR::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn cntrsten(&self) -> CntrstenR {
CntrstenR::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn auxcntrsten(&self) -> AuxcntrstenR {
AuxcntrstenR::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn debughalt(&self) -> DebughaltR {
DebughaltR::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn hyst(&self) -> HystR {
HystR::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn s1cdir(&self) -> S1cdirR {
S1cdirR::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn cntev(&self) -> CntevR {
CntevR::new(((self.bits >> 10) & 3) as u8)
}
#[inline(always)]
pub fn auxcntev(&self) -> AuxcntevR {
AuxcntevR::new(((self.bits >> 12) & 3) as u8)
}
#[inline(always)]
pub fn cntdir(&self) -> CntdirR {
CntdirR::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn edge(&self) -> EdgeR {
EdgeR::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn tccmode(&self) -> TccmodeR {
TccmodeR::new(((self.bits >> 16) & 3) as u8)
}
#[inline(always)]
pub fn tccpresc(&self) -> TccprescR {
TccprescR::new(((self.bits >> 19) & 3) as u8)
}
#[inline(always)]
pub fn tcccomp(&self) -> TcccompR {
TcccompR::new(((self.bits >> 22) & 3) as u8)
}
#[inline(always)]
pub fn prsgateen(&self) -> PrsgateenR {
PrsgateenR::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn tccprspol(&self) -> TccprspolR {
TccprspolR::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn tccprssel(&self) -> TccprsselR {
TccprsselR::new(((self.bits >> 26) & 0x0f) as u8)
}
#[inline(always)]
pub fn topbhfsel(&self) -> TopbhfselR {
TopbhfselR::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CTRL")
.field("mode", &self.mode())
.field("filt", &self.filt())
.field("rsten", &self.rsten())
.field("cntrsten", &self.cntrsten())
.field("auxcntrsten", &self.auxcntrsten())
.field("debughalt", &self.debughalt())
.field("hyst", &self.hyst())
.field("s1cdir", &self.s1cdir())
.field("cntev", &self.cntev())
.field("auxcntev", &self.auxcntev())
.field("cntdir", &self.cntdir())
.field("edge", &self.edge())
.field("tccmode", &self.tccmode())
.field("tccpresc", &self.tccpresc())
.field("tcccomp", &self.tcccomp())
.field("prsgateen", &self.prsgateen())
.field("tccprspol", &self.tccprspol())
.field("tccprssel", &self.tccprssel())
.field("topbhfsel", &self.topbhfsel())
.finish()
}
}
impl W {
#[inline(always)]
pub fn mode(&mut self) -> ModeW<'_, CTRLrs> {
ModeW::new(self, 0)
}
#[inline(always)]
pub fn filt(&mut self) -> FiltW<'_, CTRLrs> {
FiltW::new(self, 3)
}
#[inline(always)]
pub fn rsten(&mut self) -> RstenW<'_, CTRLrs> {
RstenW::new(self, 4)
}
#[inline(always)]
pub fn cntrsten(&mut self) -> CntrstenW<'_, CTRLrs> {
CntrstenW::new(self, 5)
}
#[inline(always)]
pub fn auxcntrsten(&mut self) -> AuxcntrstenW<'_, CTRLrs> {
AuxcntrstenW::new(self, 6)
}
#[inline(always)]
pub fn debughalt(&mut self) -> DebughaltW<'_, CTRLrs> {
DebughaltW::new(self, 7)
}
#[inline(always)]
pub fn hyst(&mut self) -> HystW<'_, CTRLrs> {
HystW::new(self, 8)
}
#[inline(always)]
pub fn s1cdir(&mut self) -> S1cdirW<'_, CTRLrs> {
S1cdirW::new(self, 9)
}
#[inline(always)]
pub fn cntev(&mut self) -> CntevW<'_, CTRLrs> {
CntevW::new(self, 10)
}
#[inline(always)]
pub fn auxcntev(&mut self) -> AuxcntevW<'_, CTRLrs> {
AuxcntevW::new(self, 12)
}
#[inline(always)]
pub fn cntdir(&mut self) -> CntdirW<'_, CTRLrs> {
CntdirW::new(self, 14)
}
#[inline(always)]
pub fn edge(&mut self) -> EdgeW<'_, CTRLrs> {
EdgeW::new(self, 15)
}
#[inline(always)]
pub fn tccmode(&mut self) -> TccmodeW<'_, CTRLrs> {
TccmodeW::new(self, 16)
}
#[inline(always)]
pub fn tccpresc(&mut self) -> TccprescW<'_, CTRLrs> {
TccprescW::new(self, 19)
}
#[inline(always)]
pub fn tcccomp(&mut self) -> TcccompW<'_, CTRLrs> {
TcccompW::new(self, 22)
}
#[inline(always)]
pub fn prsgateen(&mut self) -> PrsgateenW<'_, CTRLrs> {
PrsgateenW::new(self, 24)
}
#[inline(always)]
pub fn tccprspol(&mut self) -> TccprspolW<'_, CTRLrs> {
TccprspolW::new(self, 25)
}
#[inline(always)]
pub fn tccprssel(&mut self) -> TccprsselW<'_, CTRLrs> {
TccprsselW::new(self, 26)
}
#[inline(always)]
pub fn topbhfsel(&mut self) -> TopbhfselW<'_, CTRLrs> {
TopbhfselW::new(self, 31)
}
}
pub struct CTRLrs;
impl crate::RegisterSpec for CTRLrs {
type Ux = u32;
}
impl crate::Readable for CTRLrs {}
impl crate::Writable for CTRLrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CTRLrs {}