pub type R = crate::R<RST1Rrs>;
pub type W = crate::W<RST1Rrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum SRT {
NoEffect = 0,
SetInactive = 1,
}
impl From<SRT> for bool {
#[inline(always)]
fn from(variant: SRT) -> Self {
variant as u8 != 0
}
}
pub type SRT_R = crate::BitReader<SRT>;
impl SRT_R {
#[inline(always)]
pub const fn variant(&self) -> SRT {
match self.bits {
false => SRT::NoEffect,
true => SRT::SetInactive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == SRT::NoEffect
}
#[inline(always)]
pub fn is_set_inactive(&self) -> bool {
*self == SRT::SetInactive
}
}
pub type SRT_W<'a, REG> = crate::BitWriter<'a, REG, SRT>;
impl<'a, REG> SRT_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(SRT::NoEffect)
}
#[inline(always)]
pub fn set_inactive(self) -> &'a mut crate::W<REG> {
self.variant(SRT::SetInactive)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RESYNC {
NoEffect = 0,
SetInactive = 1,
}
impl From<RESYNC> for bool {
#[inline(always)]
fn from(variant: RESYNC) -> Self {
variant as u8 != 0
}
}
pub type RESYNC_R = crate::BitReader<RESYNC>;
impl RESYNC_R {
#[inline(always)]
pub const fn variant(&self) -> RESYNC {
match self.bits {
false => RESYNC::NoEffect,
true => RESYNC::SetInactive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == RESYNC::NoEffect
}
#[inline(always)]
pub fn is_set_inactive(&self) -> bool {
*self == RESYNC::SetInactive
}
}
pub type RESYNC_W<'a, REG> = crate::BitWriter<'a, REG, RESYNC>;
impl<'a, REG> RESYNC_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(RESYNC::NoEffect)
}
#[inline(always)]
pub fn set_inactive(self) -> &'a mut crate::W<REG> {
self.variant(RESYNC::SetInactive)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PER {
NoEffect = 0,
SetInactive = 1,
}
impl From<PER> for bool {
#[inline(always)]
fn from(variant: PER) -> Self {
variant as u8 != 0
}
}
pub type PER_R = crate::BitReader<PER>;
impl PER_R {
#[inline(always)]
pub const fn variant(&self) -> PER {
match self.bits {
false => PER::NoEffect,
true => PER::SetInactive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == PER::NoEffect
}
#[inline(always)]
pub fn is_set_inactive(&self) -> bool {
*self == PER::SetInactive
}
}
pub type PER_W<'a, REG> = crate::BitWriter<'a, REG, PER>;
impl<'a, REG> PER_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(PER::NoEffect)
}
#[inline(always)]
pub fn set_inactive(self) -> &'a mut crate::W<REG> {
self.variant(PER::SetInactive)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CMP1 {
NoEffect = 0,
SetInactive = 1,
}
impl From<CMP1> for bool {
#[inline(always)]
fn from(variant: CMP1) -> Self {
variant as u8 != 0
}
}
pub type CMP_R = crate::BitReader<CMP1>;
impl CMP_R {
#[inline(always)]
pub const fn variant(&self) -> CMP1 {
match self.bits {
false => CMP1::NoEffect,
true => CMP1::SetInactive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == CMP1::NoEffect
}
#[inline(always)]
pub fn is_set_inactive(&self) -> bool {
*self == CMP1::SetInactive
}
}
pub type CMP_W<'a, REG> = crate::BitWriter<'a, REG, CMP1>;
impl<'a, REG> CMP_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(CMP1::NoEffect)
}
#[inline(always)]
pub fn set_inactive(self) -> &'a mut crate::W<REG> {
self.variant(CMP1::SetInactive)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum MSTPER {
NoEffect = 0,
SetInactive = 1,
}
impl From<MSTPER> for bool {
#[inline(always)]
fn from(variant: MSTPER) -> Self {
variant as u8 != 0
}
}
pub type MSTPER_R = crate::BitReader<MSTPER>;
impl MSTPER_R {
#[inline(always)]
pub const fn variant(&self) -> MSTPER {
match self.bits {
false => MSTPER::NoEffect,
true => MSTPER::SetInactive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == MSTPER::NoEffect
}
#[inline(always)]
pub fn is_set_inactive(&self) -> bool {
*self == MSTPER::SetInactive
}
}
pub type MSTPER_W<'a, REG> = crate::BitWriter<'a, REG, MSTPER>;
impl<'a, REG> MSTPER_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(MSTPER::NoEffect)
}
#[inline(always)]
pub fn set_inactive(self) -> &'a mut crate::W<REG> {
self.variant(MSTPER::SetInactive)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum MSTCMP1 {
NoEffect = 0,
SetInactive = 1,
}
impl From<MSTCMP1> for bool {
#[inline(always)]
fn from(variant: MSTCMP1) -> Self {
variant as u8 != 0
}
}
pub type MSTCMP_R = crate::BitReader<MSTCMP1>;
impl MSTCMP_R {
#[inline(always)]
pub const fn variant(&self) -> MSTCMP1 {
match self.bits {
false => MSTCMP1::NoEffect,
true => MSTCMP1::SetInactive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == MSTCMP1::NoEffect
}
#[inline(always)]
pub fn is_set_inactive(&self) -> bool {
*self == MSTCMP1::SetInactive
}
}
pub type MSTCMP_W<'a, REG> = crate::BitWriter<'a, REG, MSTCMP1>;
impl<'a, REG> MSTCMP_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(MSTCMP1::NoEffect)
}
#[inline(always)]
pub fn set_inactive(self) -> &'a mut crate::W<REG> {
self.variant(MSTCMP1::SetInactive)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TIMBCMP1 {
NoEffect = 0,
SetInactive = 1,
}
impl From<TIMBCMP1> for bool {
#[inline(always)]
fn from(variant: TIMBCMP1) -> Self {
variant as u8 != 0
}
}
pub type TIMBCMP1_R = crate::BitReader<TIMBCMP1>;
impl TIMBCMP1_R {
#[inline(always)]
pub const fn variant(&self) -> TIMBCMP1 {
match self.bits {
false => TIMBCMP1::NoEffect,
true => TIMBCMP1::SetInactive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == TIMBCMP1::NoEffect
}
#[inline(always)]
pub fn is_set_inactive(&self) -> bool {
*self == TIMBCMP1::SetInactive
}
}
pub type TIMBCMP1_W<'a, REG> = crate::BitWriter<'a, REG, TIMBCMP1>;
impl<'a, REG> TIMBCMP1_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(TIMBCMP1::NoEffect)
}
#[inline(always)]
pub fn set_inactive(self) -> &'a mut crate::W<REG> {
self.variant(TIMBCMP1::SetInactive)
}
}
pub use TIMBCMP1_R as TIMBCMP2_R;
pub use TIMBCMP1_R as TIMBCMP4_R;
pub use TIMBCMP1_R as TIMCCMP2_R;
pub use TIMBCMP1_R as TIMCCMP3_R;
pub use TIMBCMP1_R as TIMDCMP1_R;
pub use TIMBCMP1_R as TIMDCMP2_R;
pub use TIMBCMP1_R as TIMECMP3_R;
pub use TIMBCMP1_R as TIMECMP4_R;
pub use TIMBCMP1_W as TIMBCMP2_W;
pub use TIMBCMP1_W as TIMBCMP4_W;
pub use TIMBCMP1_W as TIMCCMP2_W;
pub use TIMBCMP1_W as TIMCCMP3_W;
pub use TIMBCMP1_W as TIMDCMP1_W;
pub use TIMBCMP1_W as TIMDCMP2_W;
pub use TIMBCMP1_W as TIMECMP3_W;
pub use TIMBCMP1_W as TIMECMP4_W;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EXTEVNT1 {
NoEffect = 0,
SetInactive = 1,
}
impl From<EXTEVNT1> for bool {
#[inline(always)]
fn from(variant: EXTEVNT1) -> Self {
variant as u8 != 0
}
}
pub type EXTEVNT_R = crate::BitReader<EXTEVNT1>;
impl EXTEVNT_R {
#[inline(always)]
pub const fn variant(&self) -> EXTEVNT1 {
match self.bits {
false => EXTEVNT1::NoEffect,
true => EXTEVNT1::SetInactive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == EXTEVNT1::NoEffect
}
#[inline(always)]
pub fn is_set_inactive(&self) -> bool {
*self == EXTEVNT1::SetInactive
}
}
pub type EXTEVNT_W<'a, REG> = crate::BitWriter<'a, REG, EXTEVNT1>;
impl<'a, REG> EXTEVNT_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(EXTEVNT1::NoEffect)
}
#[inline(always)]
pub fn set_inactive(self) -> &'a mut crate::W<REG> {
self.variant(EXTEVNT1::SetInactive)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum UPDATE {
NoEffect = 0,
SetInactive = 1,
}
impl From<UPDATE> for bool {
#[inline(always)]
fn from(variant: UPDATE) -> Self {
variant as u8 != 0
}
}
pub type UPDATE_R = crate::BitReader<UPDATE>;
impl UPDATE_R {
#[inline(always)]
pub const fn variant(&self) -> UPDATE {
match self.bits {
false => UPDATE::NoEffect,
true => UPDATE::SetInactive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == UPDATE::NoEffect
}
#[inline(always)]
pub fn is_set_inactive(&self) -> bool {
*self == UPDATE::SetInactive
}
}
pub type UPDATE_W<'a, REG> = crate::BitWriter<'a, REG, UPDATE>;
impl<'a, REG> UPDATE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(UPDATE::NoEffect)
}
#[inline(always)]
pub fn set_inactive(self) -> &'a mut crate::W<REG> {
self.variant(UPDATE::SetInactive)
}
}
impl R {
#[inline(always)]
pub fn srt(&self) -> SRT_R {
SRT_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn resync(&self) -> RESYNC_R {
RESYNC_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn per(&self) -> PER_R {
PER_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn cmp(&self, n: u8) -> CMP_R {
#[allow(clippy::no_effect)] [(); 4][n as usize];
CMP_R::new(((self.bits >> (n + 3)) & 1) != 0)
}
#[inline(always)]
pub fn cmp_iter(&self) -> impl Iterator<Item = CMP_R> + '_ {
(0..4).map(move |n| CMP_R::new(((self.bits >> (n + 3)) & 1) != 0))
}
#[inline(always)]
pub fn cmp1(&self) -> CMP_R {
CMP_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn cmp2(&self) -> CMP_R {
CMP_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn cmp3(&self) -> CMP_R {
CMP_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn cmp4(&self) -> CMP_R {
CMP_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn mstper(&self) -> MSTPER_R {
MSTPER_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp(&self, n: u8) -> MSTCMP_R {
#[allow(clippy::no_effect)] [(); 4][n as usize];
MSTCMP_R::new(((self.bits >> (n + 8)) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp_iter(&self) -> impl Iterator<Item = MSTCMP_R> + '_ {
(0..4).map(move |n| MSTCMP_R::new(((self.bits >> (n + 8)) & 1) != 0))
}
#[inline(always)]
pub fn mstcmp1(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp2(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp3(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 10) & 1) != 0)
}
#[inline(always)]
pub fn mstcmp4(&self) -> MSTCMP_R {
MSTCMP_R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn timbcmp1(&self) -> TIMBCMP1_R {
TIMBCMP1_R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn timbcmp2(&self) -> TIMBCMP2_R {
TIMBCMP2_R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn timbcmp4(&self) -> TIMBCMP4_R {
TIMBCMP4_R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn timccmp2(&self) -> TIMCCMP2_R {
TIMCCMP2_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn timccmp3(&self) -> TIMCCMP3_R {
TIMCCMP3_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn timdcmp1(&self) -> TIMDCMP1_R {
TIMDCMP1_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn timdcmp2(&self) -> TIMDCMP2_R {
TIMDCMP2_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn timecmp3(&self) -> TIMECMP3_R {
TIMECMP3_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn timecmp4(&self) -> TIMECMP4_R {
TIMECMP4_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn extevnt(&self, n: u8) -> EXTEVNT_R {
#[allow(clippy::no_effect)] [(); 10][n as usize];
EXTEVNT_R::new(((self.bits >> (n + 21)) & 1) != 0)
}
#[inline(always)]
pub fn extevnt_iter(&self) -> impl Iterator<Item = EXTEVNT_R> + '_ {
(0..10).map(move |n| EXTEVNT_R::new(((self.bits >> (n + 21)) & 1) != 0))
}
#[inline(always)]
pub fn extevnt1(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn extevnt2(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn extevnt3(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 23) & 1) != 0)
}
#[inline(always)]
pub fn extevnt4(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn extevnt5(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn extevnt6(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn extevnt7(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn extevnt8(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn extevnt9(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn extevnt10(&self) -> EXTEVNT_R {
EXTEVNT_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn update(&self) -> UPDATE_R {
UPDATE_R::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("RST1R")
.field("update", &self.update())
.field("extevnt1", &self.extevnt1())
.field("extevnt2", &self.extevnt2())
.field("extevnt3", &self.extevnt3())
.field("extevnt4", &self.extevnt4())
.field("extevnt5", &self.extevnt5())
.field("extevnt6", &self.extevnt6())
.field("extevnt7", &self.extevnt7())
.field("extevnt8", &self.extevnt8())
.field("extevnt9", &self.extevnt9())
.field("extevnt10", &self.extevnt10())
.field("timbcmp1", &self.timbcmp1())
.field("timecmp4", &self.timecmp4())
.field("timecmp3", &self.timecmp3())
.field("timdcmp2", &self.timdcmp2())
.field("timdcmp1", &self.timdcmp1())
.field("timccmp3", &self.timccmp3())
.field("timccmp2", &self.timccmp2())
.field("timbcmp4", &self.timbcmp4())
.field("timbcmp2", &self.timbcmp2())
.field("mstcmp1", &self.mstcmp1())
.field("mstcmp2", &self.mstcmp2())
.field("mstcmp3", &self.mstcmp3())
.field("mstcmp4", &self.mstcmp4())
.field("mstper", &self.mstper())
.field("cmp1", &self.cmp1())
.field("cmp2", &self.cmp2())
.field("cmp3", &self.cmp3())
.field("cmp4", &self.cmp4())
.field("per", &self.per())
.field("resync", &self.resync())
.field("srt", &self.srt())
.finish()
}
}
impl W {
#[inline(always)]
pub fn srt(&mut self) -> SRT_W<RST1Rrs> {
SRT_W::new(self, 0)
}
#[inline(always)]
pub fn resync(&mut self) -> RESYNC_W<RST1Rrs> {
RESYNC_W::new(self, 1)
}
#[inline(always)]
pub fn per(&mut self) -> PER_W<RST1Rrs> {
PER_W::new(self, 2)
}
#[inline(always)]
pub fn cmp(&mut self, n: u8) -> CMP_W<RST1Rrs> {
#[allow(clippy::no_effect)] [(); 4][n as usize];
CMP_W::new(self, n + 3)
}
#[inline(always)]
pub fn cmp1(&mut self) -> CMP_W<RST1Rrs> {
CMP_W::new(self, 3)
}
#[inline(always)]
pub fn cmp2(&mut self) -> CMP_W<RST1Rrs> {
CMP_W::new(self, 4)
}
#[inline(always)]
pub fn cmp3(&mut self) -> CMP_W<RST1Rrs> {
CMP_W::new(self, 5)
}
#[inline(always)]
pub fn cmp4(&mut self) -> CMP_W<RST1Rrs> {
CMP_W::new(self, 6)
}
#[inline(always)]
pub fn mstper(&mut self) -> MSTPER_W<RST1Rrs> {
MSTPER_W::new(self, 7)
}
#[inline(always)]
pub fn mstcmp(&mut self, n: u8) -> MSTCMP_W<RST1Rrs> {
#[allow(clippy::no_effect)] [(); 4][n as usize];
MSTCMP_W::new(self, n + 8)
}
#[inline(always)]
pub fn mstcmp1(&mut self) -> MSTCMP_W<RST1Rrs> {
MSTCMP_W::new(self, 8)
}
#[inline(always)]
pub fn mstcmp2(&mut self) -> MSTCMP_W<RST1Rrs> {
MSTCMP_W::new(self, 9)
}
#[inline(always)]
pub fn mstcmp3(&mut self) -> MSTCMP_W<RST1Rrs> {
MSTCMP_W::new(self, 10)
}
#[inline(always)]
pub fn mstcmp4(&mut self) -> MSTCMP_W<RST1Rrs> {
MSTCMP_W::new(self, 11)
}
#[inline(always)]
pub fn timbcmp1(&mut self) -> TIMBCMP1_W<RST1Rrs> {
TIMBCMP1_W::new(self, 12)
}
#[inline(always)]
pub fn timbcmp2(&mut self) -> TIMBCMP2_W<RST1Rrs> {
TIMBCMP2_W::new(self, 13)
}
#[inline(always)]
pub fn timbcmp4(&mut self) -> TIMBCMP4_W<RST1Rrs> {
TIMBCMP4_W::new(self, 14)
}
#[inline(always)]
pub fn timccmp2(&mut self) -> TIMCCMP2_W<RST1Rrs> {
TIMCCMP2_W::new(self, 15)
}
#[inline(always)]
pub fn timccmp3(&mut self) -> TIMCCMP3_W<RST1Rrs> {
TIMCCMP3_W::new(self, 16)
}
#[inline(always)]
pub fn timdcmp1(&mut self) -> TIMDCMP1_W<RST1Rrs> {
TIMDCMP1_W::new(self, 17)
}
#[inline(always)]
pub fn timdcmp2(&mut self) -> TIMDCMP2_W<RST1Rrs> {
TIMDCMP2_W::new(self, 18)
}
#[inline(always)]
pub fn timecmp3(&mut self) -> TIMECMP3_W<RST1Rrs> {
TIMECMP3_W::new(self, 19)
}
#[inline(always)]
pub fn timecmp4(&mut self) -> TIMECMP4_W<RST1Rrs> {
TIMECMP4_W::new(self, 20)
}
#[inline(always)]
pub fn extevnt(&mut self, n: u8) -> EXTEVNT_W<RST1Rrs> {
#[allow(clippy::no_effect)] [(); 10][n as usize];
EXTEVNT_W::new(self, n + 21)
}
#[inline(always)]
pub fn extevnt1(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 21)
}
#[inline(always)]
pub fn extevnt2(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 22)
}
#[inline(always)]
pub fn extevnt3(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 23)
}
#[inline(always)]
pub fn extevnt4(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 24)
}
#[inline(always)]
pub fn extevnt5(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 25)
}
#[inline(always)]
pub fn extevnt6(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 26)
}
#[inline(always)]
pub fn extevnt7(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 27)
}
#[inline(always)]
pub fn extevnt8(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 28)
}
#[inline(always)]
pub fn extevnt9(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 29)
}
#[inline(always)]
pub fn extevnt10(&mut self) -> EXTEVNT_W<RST1Rrs> {
EXTEVNT_W::new(self, 30)
}
#[inline(always)]
pub fn update(&mut self) -> UPDATE_W<RST1Rrs> {
UPDATE_W::new(self, 31)
}
}
pub struct RST1Rrs;
impl crate::RegisterSpec for RST1Rrs {
type Ux = u32;
}
impl crate::Readable for RST1Rrs {}
impl crate::Writable for RST1Rrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for RST1Rrs {}