#[doc = "DMA Channel Trigger Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pubenumTRIG_A{
#[doc = "0: Triggering is disabled. If triggering is disabled and ENBL is set, the DMA Channel will simply route the specified source to the DMA channel. (Normal mode)"]
_0=0,
#[doc = "1: Triggering is enabled. If triggering is enabled and ENBL is set, the DMAMUX is in Periodic Trigger mode."]
_1=1,
}
implFrom<TRIG_A>forbool{
#[inline(always)]
fnfrom(variant: TRIG_A)-> Self{
variantasu8!=0
}
}
#[doc = "Reader of field `TRIG`"]
pubtypeTRIG_R=crate::R<bool,TRIG_A>;
implTRIG_R{
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pubfnvariant(&self)-> TRIG_A{
matchself.bits{
false=>TRIG_A::_0,
true=>TRIG_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pubfnis_0(&self)-> bool{
*self==TRIG_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pubfnis_1(&self)-> bool{
*self==TRIG_A::_1
}
}
#[doc = "Write proxy for field `TRIG`"]
pubstructTRIG_W<'a>{
w: &'amutW,
}
impl<'a>TRIG_W<'a>{
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pubfnvariant(self,variant: TRIG_A)-> &'amutW{
{
self.bit(variant.into())
}
}
#[doc = "Triggering is disabled. If triggering is disabled and ENBL is set, the DMA Channel will simply route the specified source to the DMA channel. (Normal mode)"]
#[inline(always)]
pubfn_0(self)-> &'amutW{
self.variant(TRIG_A::_0)
}
#[doc = "Triggering is enabled. If triggering is enabled and ENBL is set, the DMAMUX is in Periodic Trigger mode."]
#[doc = "DMA Channel Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pubenumENBL_A{
#[doc = "0: DMA channel is disabled. This mode is primarily used during configuration of the DMAMux. The DMA has separate channel enables/disables, which should be used to disable or reconfigure a DMA channel."]
_0=0,
#[doc = "1: DMA channel is enabled"]
_1=1,
}
implFrom<ENBL_A>forbool{
#[inline(always)]
fnfrom(variant: ENBL_A)-> Self{
variantasu8!=0
}
}
#[doc = "Reader of field `ENBL`"]
pubtypeENBL_R=crate::R<bool,ENBL_A>;
implENBL_R{
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pubfnvariant(&self)-> ENBL_A{
matchself.bits{
false=>ENBL_A::_0,
true=>ENBL_A::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline(always)]
pubfnis_0(&self)-> bool{
*self==ENBL_A::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline(always)]
pubfnis_1(&self)-> bool{
*self==ENBL_A::_1
}
}
#[doc = "Write proxy for field `ENBL`"]
pubstructENBL_W<'a>{
w: &'amutW,
}
impl<'a>ENBL_W<'a>{
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pubfnvariant(self,variant: ENBL_A)-> &'amutW{
{
self.bit(variant.into())
}
}
#[doc = "DMA channel is disabled. This mode is primarily used during configuration of the DMAMux. The DMA has separate channel enables/disables, which should be used to disable or reconfigure a DMA channel."]