#[doc = "Reader of register SEC_CPU_INT_MASK0"]
pub type R = crate::R<u32, super::SEC_CPU_INT_MASK0>;
#[doc = "Writer for register SEC_CPU_INT_MASK0"]
pub type W = crate::W<u32, super::SEC_CPU_INT_MASK0>;
#[doc = "Register SEC_CPU_INT_MASK0 `reset()`'s with value 0xffff_ffff"]
impl crate::ResetValue for super::SEC_CPU_INT_MASK0 {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0xffff_ffff
}
}
#[doc = "Possible values of the field `SYS_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SYS_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<SYS_IRQ_A> for bool {
#[inline(always)]
fn from(variant: SYS_IRQ_A) -> Self {
match variant {
SYS_IRQ_A::INVISIBLE => false,
SYS_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `SYS_IRQ`"]
pub type SYS_IRQ_R = crate::R<bool, SYS_IRQ_A>;
impl SYS_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SYS_IRQ_A {
match self.bits {
false => SYS_IRQ_A::INVISIBLE,
true => SYS_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == SYS_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == SYS_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `SYS_IRQ`"]
pub struct SYS_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> SYS_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SYS_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(SYS_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(SYS_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
self.w
}
}
#[doc = "Possible values of the field `SDMA0_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SDMA0_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<SDMA0_IRQ_A> for bool {
#[inline(always)]
fn from(variant: SDMA0_IRQ_A) -> Self {
match variant {
SDMA0_IRQ_A::INVISIBLE => false,
SDMA0_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `SDMA0_IRQ`"]
pub type SDMA0_IRQ_R = crate::R<bool, SDMA0_IRQ_A>;
impl SDMA0_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SDMA0_IRQ_A {
match self.bits {
false => SDMA0_IRQ_A::INVISIBLE,
true => SDMA0_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == SDMA0_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == SDMA0_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `SDMA0_IRQ`"]
pub struct SDMA0_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> SDMA0_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SDMA0_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(SDMA0_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(SDMA0_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
self.w
}
}
#[doc = "Possible values of the field `GPIO_GLOBALINT0_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum GPIO_GLOBALINT0_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<GPIO_GLOBALINT0_IRQ_A> for bool {
#[inline(always)]
fn from(variant: GPIO_GLOBALINT0_IRQ_A) -> Self {
match variant {
GPIO_GLOBALINT0_IRQ_A::INVISIBLE => false,
GPIO_GLOBALINT0_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `GPIO_GLOBALINT0_IRQ`"]
pub type GPIO_GLOBALINT0_IRQ_R = crate::R<bool, GPIO_GLOBALINT0_IRQ_A>;
impl GPIO_GLOBALINT0_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> GPIO_GLOBALINT0_IRQ_A {
match self.bits {
false => GPIO_GLOBALINT0_IRQ_A::INVISIBLE,
true => GPIO_GLOBALINT0_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == GPIO_GLOBALINT0_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == GPIO_GLOBALINT0_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `GPIO_GLOBALINT0_IRQ`"]
pub struct GPIO_GLOBALINT0_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> GPIO_GLOBALINT0_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: GPIO_GLOBALINT0_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(GPIO_GLOBALINT0_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(GPIO_GLOBALINT0_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
self.w
}
}
#[doc = "Possible values of the field `GPIO_GLOBALINT1_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum GPIO_GLOBALINT1_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<GPIO_GLOBALINT1_IRQ_A> for bool {
#[inline(always)]
fn from(variant: GPIO_GLOBALINT1_IRQ_A) -> Self {
match variant {
GPIO_GLOBALINT1_IRQ_A::INVISIBLE => false,
GPIO_GLOBALINT1_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `GPIO_GLOBALINT1_IRQ`"]
pub type GPIO_GLOBALINT1_IRQ_R = crate::R<bool, GPIO_GLOBALINT1_IRQ_A>;
impl GPIO_GLOBALINT1_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> GPIO_GLOBALINT1_IRQ_A {
match self.bits {
false => GPIO_GLOBALINT1_IRQ_A::INVISIBLE,
true => GPIO_GLOBALINT1_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == GPIO_GLOBALINT1_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == GPIO_GLOBALINT1_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `GPIO_GLOBALINT1_IRQ`"]
pub struct GPIO_GLOBALINT1_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> GPIO_GLOBALINT1_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: GPIO_GLOBALINT1_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(GPIO_GLOBALINT1_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(GPIO_GLOBALINT1_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
self.w
}
}
#[doc = "Possible values of the field `GPIO_INT0_IRQ0`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum GPIO_INT0_IRQ0_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<GPIO_INT0_IRQ0_A> for bool {
#[inline(always)]
fn from(variant: GPIO_INT0_IRQ0_A) -> Self {
match variant {
GPIO_INT0_IRQ0_A::INVISIBLE => false,
GPIO_INT0_IRQ0_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `GPIO_INT0_IRQ0`"]
pub type GPIO_INT0_IRQ0_R = crate::R<bool, GPIO_INT0_IRQ0_A>;
impl GPIO_INT0_IRQ0_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> GPIO_INT0_IRQ0_A {
match self.bits {
false => GPIO_INT0_IRQ0_A::INVISIBLE,
true => GPIO_INT0_IRQ0_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == GPIO_INT0_IRQ0_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == GPIO_INT0_IRQ0_A::VISIBLE
}
}
#[doc = "Write proxy for field `GPIO_INT0_IRQ0`"]
pub struct GPIO_INT0_IRQ0_W<'a> {
w: &'a mut W,
}
impl<'a> GPIO_INT0_IRQ0_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: GPIO_INT0_IRQ0_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(GPIO_INT0_IRQ0_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(GPIO_INT0_IRQ0_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
self.w
}
}
#[doc = "Possible values of the field `GPIO_INT0_IRQ1`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum GPIO_INT0_IRQ1_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<GPIO_INT0_IRQ1_A> for bool {
#[inline(always)]
fn from(variant: GPIO_INT0_IRQ1_A) -> Self {
match variant {
GPIO_INT0_IRQ1_A::INVISIBLE => false,
GPIO_INT0_IRQ1_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `GPIO_INT0_IRQ1`"]
pub type GPIO_INT0_IRQ1_R = crate::R<bool, GPIO_INT0_IRQ1_A>;
impl GPIO_INT0_IRQ1_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> GPIO_INT0_IRQ1_A {
match self.bits {
false => GPIO_INT0_IRQ1_A::INVISIBLE,
true => GPIO_INT0_IRQ1_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == GPIO_INT0_IRQ1_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == GPIO_INT0_IRQ1_A::VISIBLE
}
}
#[doc = "Write proxy for field `GPIO_INT0_IRQ1`"]
pub struct GPIO_INT0_IRQ1_W<'a> {
w: &'a mut W,
}
impl<'a> GPIO_INT0_IRQ1_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: GPIO_INT0_IRQ1_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(GPIO_INT0_IRQ1_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(GPIO_INT0_IRQ1_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5);
self.w
}
}
#[doc = "Possible values of the field `GPIO_INT0_IRQ2`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum GPIO_INT0_IRQ2_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<GPIO_INT0_IRQ2_A> for bool {
#[inline(always)]
fn from(variant: GPIO_INT0_IRQ2_A) -> Self {
match variant {
GPIO_INT0_IRQ2_A::INVISIBLE => false,
GPIO_INT0_IRQ2_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `GPIO_INT0_IRQ2`"]
pub type GPIO_INT0_IRQ2_R = crate::R<bool, GPIO_INT0_IRQ2_A>;
impl GPIO_INT0_IRQ2_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> GPIO_INT0_IRQ2_A {
match self.bits {
false => GPIO_INT0_IRQ2_A::INVISIBLE,
true => GPIO_INT0_IRQ2_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == GPIO_INT0_IRQ2_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == GPIO_INT0_IRQ2_A::VISIBLE
}
}
#[doc = "Write proxy for field `GPIO_INT0_IRQ2`"]
pub struct GPIO_INT0_IRQ2_W<'a> {
w: &'a mut W,
}
impl<'a> GPIO_INT0_IRQ2_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: GPIO_INT0_IRQ2_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(GPIO_INT0_IRQ2_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(GPIO_INT0_IRQ2_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
self.w
}
}
#[doc = "Possible values of the field `GPIO_INT0_IRQ3`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum GPIO_INT0_IRQ3_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<GPIO_INT0_IRQ3_A> for bool {
#[inline(always)]
fn from(variant: GPIO_INT0_IRQ3_A) -> Self {
match variant {
GPIO_INT0_IRQ3_A::INVISIBLE => false,
GPIO_INT0_IRQ3_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `GPIO_INT0_IRQ3`"]
pub type GPIO_INT0_IRQ3_R = crate::R<bool, GPIO_INT0_IRQ3_A>;
impl GPIO_INT0_IRQ3_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> GPIO_INT0_IRQ3_A {
match self.bits {
false => GPIO_INT0_IRQ3_A::INVISIBLE,
true => GPIO_INT0_IRQ3_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == GPIO_INT0_IRQ3_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == GPIO_INT0_IRQ3_A::VISIBLE
}
}
#[doc = "Write proxy for field `GPIO_INT0_IRQ3`"]
pub struct GPIO_INT0_IRQ3_W<'a> {
w: &'a mut W,
}
impl<'a> GPIO_INT0_IRQ3_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: GPIO_INT0_IRQ3_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(GPIO_INT0_IRQ3_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(GPIO_INT0_IRQ3_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
self.w
}
}
#[doc = "Possible values of the field `UTICK_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UTICK_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<UTICK_IRQ_A> for bool {
#[inline(always)]
fn from(variant: UTICK_IRQ_A) -> Self {
match variant {
UTICK_IRQ_A::INVISIBLE => false,
UTICK_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `UTICK_IRQ`"]
pub type UTICK_IRQ_R = crate::R<bool, UTICK_IRQ_A>;
impl UTICK_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> UTICK_IRQ_A {
match self.bits {
false => UTICK_IRQ_A::INVISIBLE,
true => UTICK_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == UTICK_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == UTICK_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `UTICK_IRQ`"]
pub struct UTICK_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> UTICK_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: UTICK_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(UTICK_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(UTICK_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
self.w
}
}
#[doc = "Possible values of the field `MRT_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MRT_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<MRT_IRQ_A> for bool {
#[inline(always)]
fn from(variant: MRT_IRQ_A) -> Self {
match variant {
MRT_IRQ_A::INVISIBLE => false,
MRT_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `MRT_IRQ`"]
pub type MRT_IRQ_R = crate::R<bool, MRT_IRQ_A>;
impl MRT_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> MRT_IRQ_A {
match self.bits {
false => MRT_IRQ_A::INVISIBLE,
true => MRT_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == MRT_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == MRT_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `MRT_IRQ`"]
pub struct MRT_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> MRT_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: MRT_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(MRT_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(MRT_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
self.w
}
}
#[doc = "Possible values of the field `CTIMER0_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CTIMER0_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<CTIMER0_IRQ_A> for bool {
#[inline(always)]
fn from(variant: CTIMER0_IRQ_A) -> Self {
match variant {
CTIMER0_IRQ_A::INVISIBLE => false,
CTIMER0_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `CTIMER0_IRQ`"]
pub type CTIMER0_IRQ_R = crate::R<bool, CTIMER0_IRQ_A>;
impl CTIMER0_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CTIMER0_IRQ_A {
match self.bits {
false => CTIMER0_IRQ_A::INVISIBLE,
true => CTIMER0_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == CTIMER0_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == CTIMER0_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `CTIMER0_IRQ`"]
pub struct CTIMER0_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> CTIMER0_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CTIMER0_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(CTIMER0_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(CTIMER0_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
self.w
}
}
#[doc = "Possible values of the field `CTIMER1_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CTIMER1_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<CTIMER1_IRQ_A> for bool {
#[inline(always)]
fn from(variant: CTIMER1_IRQ_A) -> Self {
match variant {
CTIMER1_IRQ_A::INVISIBLE => false,
CTIMER1_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `CTIMER1_IRQ`"]
pub type CTIMER1_IRQ_R = crate::R<bool, CTIMER1_IRQ_A>;
impl CTIMER1_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CTIMER1_IRQ_A {
match self.bits {
false => CTIMER1_IRQ_A::INVISIBLE,
true => CTIMER1_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == CTIMER1_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == CTIMER1_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `CTIMER1_IRQ`"]
pub struct CTIMER1_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> CTIMER1_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CTIMER1_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(CTIMER1_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(CTIMER1_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 11)) | (((value as u32) & 0x01) << 11);
self.w
}
}
#[doc = "Possible values of the field `SCT_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SCT_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<SCT_IRQ_A> for bool {
#[inline(always)]
fn from(variant: SCT_IRQ_A) -> Self {
match variant {
SCT_IRQ_A::INVISIBLE => false,
SCT_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `SCT_IRQ`"]
pub type SCT_IRQ_R = crate::R<bool, SCT_IRQ_A>;
impl SCT_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SCT_IRQ_A {
match self.bits {
false => SCT_IRQ_A::INVISIBLE,
true => SCT_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == SCT_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == SCT_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `SCT_IRQ`"]
pub struct SCT_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> SCT_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SCT_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(SCT_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(SCT_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 12)) | (((value as u32) & 0x01) << 12);
self.w
}
}
#[doc = "Possible values of the field `CTIMER3_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CTIMER3_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<CTIMER3_IRQ_A> for bool {
#[inline(always)]
fn from(variant: CTIMER3_IRQ_A) -> Self {
match variant {
CTIMER3_IRQ_A::INVISIBLE => false,
CTIMER3_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `CTIMER3_IRQ`"]
pub type CTIMER3_IRQ_R = crate::R<bool, CTIMER3_IRQ_A>;
impl CTIMER3_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> CTIMER3_IRQ_A {
match self.bits {
false => CTIMER3_IRQ_A::INVISIBLE,
true => CTIMER3_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == CTIMER3_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == CTIMER3_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `CTIMER3_IRQ`"]
pub struct CTIMER3_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> CTIMER3_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CTIMER3_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(CTIMER3_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(CTIMER3_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 13)) | (((value as u32) & 0x01) << 13);
self.w
}
}
#[doc = "Possible values of the field `FLEXCOMM0_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLEXCOMM0_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<FLEXCOMM0_IRQ_A> for bool {
#[inline(always)]
fn from(variant: FLEXCOMM0_IRQ_A) -> Self {
match variant {
FLEXCOMM0_IRQ_A::INVISIBLE => false,
FLEXCOMM0_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `FLEXCOMM0_IRQ`"]
pub type FLEXCOMM0_IRQ_R = crate::R<bool, FLEXCOMM0_IRQ_A>;
impl FLEXCOMM0_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FLEXCOMM0_IRQ_A {
match self.bits {
false => FLEXCOMM0_IRQ_A::INVISIBLE,
true => FLEXCOMM0_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == FLEXCOMM0_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == FLEXCOMM0_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `FLEXCOMM0_IRQ`"]
pub struct FLEXCOMM0_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> FLEXCOMM0_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FLEXCOMM0_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(FLEXCOMM0_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(FLEXCOMM0_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 14)) | (((value as u32) & 0x01) << 14);
self.w
}
}
#[doc = "Possible values of the field `FLEXCOMM1_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLEXCOMM1_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<FLEXCOMM1_IRQ_A> for bool {
#[inline(always)]
fn from(variant: FLEXCOMM1_IRQ_A) -> Self {
match variant {
FLEXCOMM1_IRQ_A::INVISIBLE => false,
FLEXCOMM1_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `FLEXCOMM1_IRQ`"]
pub type FLEXCOMM1_IRQ_R = crate::R<bool, FLEXCOMM1_IRQ_A>;
impl FLEXCOMM1_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FLEXCOMM1_IRQ_A {
match self.bits {
false => FLEXCOMM1_IRQ_A::INVISIBLE,
true => FLEXCOMM1_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == FLEXCOMM1_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == FLEXCOMM1_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `FLEXCOMM1_IRQ`"]
pub struct FLEXCOMM1_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> FLEXCOMM1_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FLEXCOMM1_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(FLEXCOMM1_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(FLEXCOMM1_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 15)) | (((value as u32) & 0x01) << 15);
self.w
}
}
#[doc = "Possible values of the field `FLEXCOMM2_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLEXCOMM2_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<FLEXCOMM2_IRQ_A> for bool {
#[inline(always)]
fn from(variant: FLEXCOMM2_IRQ_A) -> Self {
match variant {
FLEXCOMM2_IRQ_A::INVISIBLE => false,
FLEXCOMM2_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `FLEXCOMM2_IRQ`"]
pub type FLEXCOMM2_IRQ_R = crate::R<bool, FLEXCOMM2_IRQ_A>;
impl FLEXCOMM2_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FLEXCOMM2_IRQ_A {
match self.bits {
false => FLEXCOMM2_IRQ_A::INVISIBLE,
true => FLEXCOMM2_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == FLEXCOMM2_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == FLEXCOMM2_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `FLEXCOMM2_IRQ`"]
pub struct FLEXCOMM2_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> FLEXCOMM2_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FLEXCOMM2_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(FLEXCOMM2_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(FLEXCOMM2_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 16)) | (((value as u32) & 0x01) << 16);
self.w
}
}
#[doc = "Possible values of the field `FLEXCOMM3_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLEXCOMM3_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<FLEXCOMM3_IRQ_A> for bool {
#[inline(always)]
fn from(variant: FLEXCOMM3_IRQ_A) -> Self {
match variant {
FLEXCOMM3_IRQ_A::INVISIBLE => false,
FLEXCOMM3_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `FLEXCOMM3_IRQ`"]
pub type FLEXCOMM3_IRQ_R = crate::R<bool, FLEXCOMM3_IRQ_A>;
impl FLEXCOMM3_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FLEXCOMM3_IRQ_A {
match self.bits {
false => FLEXCOMM3_IRQ_A::INVISIBLE,
true => FLEXCOMM3_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == FLEXCOMM3_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == FLEXCOMM3_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `FLEXCOMM3_IRQ`"]
pub struct FLEXCOMM3_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> FLEXCOMM3_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FLEXCOMM3_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(FLEXCOMM3_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(FLEXCOMM3_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 17)) | (((value as u32) & 0x01) << 17);
self.w
}
}
#[doc = "Possible values of the field `FLEXCOMM4_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLEXCOMM4_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<FLEXCOMM4_IRQ_A> for bool {
#[inline(always)]
fn from(variant: FLEXCOMM4_IRQ_A) -> Self {
match variant {
FLEXCOMM4_IRQ_A::INVISIBLE => false,
FLEXCOMM4_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `FLEXCOMM4_IRQ`"]
pub type FLEXCOMM4_IRQ_R = crate::R<bool, FLEXCOMM4_IRQ_A>;
impl FLEXCOMM4_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FLEXCOMM4_IRQ_A {
match self.bits {
false => FLEXCOMM4_IRQ_A::INVISIBLE,
true => FLEXCOMM4_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == FLEXCOMM4_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == FLEXCOMM4_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `FLEXCOMM4_IRQ`"]
pub struct FLEXCOMM4_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> FLEXCOMM4_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FLEXCOMM4_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(FLEXCOMM4_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(FLEXCOMM4_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 18)) | (((value as u32) & 0x01) << 18);
self.w
}
}
#[doc = "Possible values of the field `FLEXCOMM5_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLEXCOMM5_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<FLEXCOMM5_IRQ_A> for bool {
#[inline(always)]
fn from(variant: FLEXCOMM5_IRQ_A) -> Self {
match variant {
FLEXCOMM5_IRQ_A::INVISIBLE => false,
FLEXCOMM5_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `FLEXCOMM5_IRQ`"]
pub type FLEXCOMM5_IRQ_R = crate::R<bool, FLEXCOMM5_IRQ_A>;
impl FLEXCOMM5_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FLEXCOMM5_IRQ_A {
match self.bits {
false => FLEXCOMM5_IRQ_A::INVISIBLE,
true => FLEXCOMM5_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == FLEXCOMM5_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == FLEXCOMM5_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `FLEXCOMM5_IRQ`"]
pub struct FLEXCOMM5_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> FLEXCOMM5_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FLEXCOMM5_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(FLEXCOMM5_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(FLEXCOMM5_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 19)) | (((value as u32) & 0x01) << 19);
self.w
}
}
#[doc = "Possible values of the field `FLEXCOMM6_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLEXCOMM6_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<FLEXCOMM6_IRQ_A> for bool {
#[inline(always)]
fn from(variant: FLEXCOMM6_IRQ_A) -> Self {
match variant {
FLEXCOMM6_IRQ_A::INVISIBLE => false,
FLEXCOMM6_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `FLEXCOMM6_IRQ`"]
pub type FLEXCOMM6_IRQ_R = crate::R<bool, FLEXCOMM6_IRQ_A>;
impl FLEXCOMM6_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FLEXCOMM6_IRQ_A {
match self.bits {
false => FLEXCOMM6_IRQ_A::INVISIBLE,
true => FLEXCOMM6_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == FLEXCOMM6_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == FLEXCOMM6_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `FLEXCOMM6_IRQ`"]
pub struct FLEXCOMM6_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> FLEXCOMM6_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FLEXCOMM6_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(FLEXCOMM6_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(FLEXCOMM6_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 20)) | (((value as u32) & 0x01) << 20);
self.w
}
}
#[doc = "Possible values of the field `FLEXCOMM7_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum FLEXCOMM7_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<FLEXCOMM7_IRQ_A> for bool {
#[inline(always)]
fn from(variant: FLEXCOMM7_IRQ_A) -> Self {
match variant {
FLEXCOMM7_IRQ_A::INVISIBLE => false,
FLEXCOMM7_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `FLEXCOMM7_IRQ`"]
pub type FLEXCOMM7_IRQ_R = crate::R<bool, FLEXCOMM7_IRQ_A>;
impl FLEXCOMM7_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> FLEXCOMM7_IRQ_A {
match self.bits {
false => FLEXCOMM7_IRQ_A::INVISIBLE,
true => FLEXCOMM7_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == FLEXCOMM7_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == FLEXCOMM7_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `FLEXCOMM7_IRQ`"]
pub struct FLEXCOMM7_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> FLEXCOMM7_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: FLEXCOMM7_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(FLEXCOMM7_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(FLEXCOMM7_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 21)) | (((value as u32) & 0x01) << 21);
self.w
}
}
#[doc = "Possible values of the field `ADC_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADC_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<ADC_IRQ_A> for bool {
#[inline(always)]
fn from(variant: ADC_IRQ_A) -> Self {
match variant {
ADC_IRQ_A::INVISIBLE => false,
ADC_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `ADC_IRQ`"]
pub type ADC_IRQ_R = crate::R<bool, ADC_IRQ_A>;
impl ADC_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> ADC_IRQ_A {
match self.bits {
false => ADC_IRQ_A::INVISIBLE,
true => ADC_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == ADC_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == ADC_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `ADC_IRQ`"]
pub struct ADC_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> ADC_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: ADC_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(ADC_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(ADC_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 22)) | (((value as u32) & 0x01) << 22);
self.w
}
}
#[doc = "Possible values of the field `RESERVED0`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RESERVED0_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<RESERVED0_A> for bool {
#[inline(always)]
fn from(variant: RESERVED0_A) -> Self {
match variant {
RESERVED0_A::INVISIBLE => false,
RESERVED0_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `RESERVED0`"]
pub type RESERVED0_R = crate::R<bool, RESERVED0_A>;
impl RESERVED0_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RESERVED0_A {
match self.bits {
false => RESERVED0_A::INVISIBLE,
true => RESERVED0_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == RESERVED0_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == RESERVED0_A::VISIBLE
}
}
#[doc = "Write proxy for field `RESERVED0`"]
pub struct RESERVED0_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED0_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RESERVED0_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(RESERVED0_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(RESERVED0_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 23)) | (((value as u32) & 0x01) << 23);
self.w
}
}
#[doc = "Possible values of the field `ACMP_CAPT0_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ACMP_CAPT0_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<ACMP_CAPT0_IRQ_A> for bool {
#[inline(always)]
fn from(variant: ACMP_CAPT0_IRQ_A) -> Self {
match variant {
ACMP_CAPT0_IRQ_A::INVISIBLE => false,
ACMP_CAPT0_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `ACMP_CAPT0_IRQ`"]
pub type ACMP_CAPT0_IRQ_R = crate::R<bool, ACMP_CAPT0_IRQ_A>;
impl ACMP_CAPT0_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> ACMP_CAPT0_IRQ_A {
match self.bits {
false => ACMP_CAPT0_IRQ_A::INVISIBLE,
true => ACMP_CAPT0_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == ACMP_CAPT0_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == ACMP_CAPT0_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `ACMP_CAPT0_IRQ`"]
pub struct ACMP_CAPT0_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> ACMP_CAPT0_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: ACMP_CAPT0_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(ACMP_CAPT0_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(ACMP_CAPT0_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 24)) | (((value as u32) & 0x01) << 24);
self.w
}
}
#[doc = "Possible values of the field `RESERVED1`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RESERVED1_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<RESERVED1_A> for bool {
#[inline(always)]
fn from(variant: RESERVED1_A) -> Self {
match variant {
RESERVED1_A::INVISIBLE => false,
RESERVED1_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `RESERVED1`"]
pub type RESERVED1_R = crate::R<bool, RESERVED1_A>;
impl RESERVED1_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RESERVED1_A {
match self.bits {
false => RESERVED1_A::INVISIBLE,
true => RESERVED1_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == RESERVED1_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == RESERVED1_A::VISIBLE
}
}
#[doc = "Write proxy for field `RESERVED1`"]
pub struct RESERVED1_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED1_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RESERVED1_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(RESERVED1_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(RESERVED1_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 25)) | (((value as u32) & 0x01) << 25);
self.w
}
}
#[doc = "Possible values of the field `RESERVED2`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RESERVED2_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<RESERVED2_A> for bool {
#[inline(always)]
fn from(variant: RESERVED2_A) -> Self {
match variant {
RESERVED2_A::INVISIBLE => false,
RESERVED2_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `RESERVED2`"]
pub type RESERVED2_R = crate::R<bool, RESERVED2_A>;
impl RESERVED2_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RESERVED2_A {
match self.bits {
false => RESERVED2_A::INVISIBLE,
true => RESERVED2_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == RESERVED2_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == RESERVED2_A::VISIBLE
}
}
#[doc = "Write proxy for field `RESERVED2`"]
pub struct RESERVED2_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED2_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RESERVED2_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(RESERVED2_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(RESERVED2_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 26)) | (((value as u32) & 0x01) << 26);
self.w
}
}
#[doc = "Possible values of the field `USB0_NEEDCLK`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum USB0_NEEDCLK_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<USB0_NEEDCLK_A> for bool {
#[inline(always)]
fn from(variant: USB0_NEEDCLK_A) -> Self {
match variant {
USB0_NEEDCLK_A::INVISIBLE => false,
USB0_NEEDCLK_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `USB0_NEEDCLK`"]
pub type USB0_NEEDCLK_R = crate::R<bool, USB0_NEEDCLK_A>;
impl USB0_NEEDCLK_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> USB0_NEEDCLK_A {
match self.bits {
false => USB0_NEEDCLK_A::INVISIBLE,
true => USB0_NEEDCLK_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == USB0_NEEDCLK_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == USB0_NEEDCLK_A::VISIBLE
}
}
#[doc = "Write proxy for field `USB0_NEEDCLK`"]
pub struct USB0_NEEDCLK_W<'a> {
w: &'a mut W,
}
impl<'a> USB0_NEEDCLK_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: USB0_NEEDCLK_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(USB0_NEEDCLK_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(USB0_NEEDCLK_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 27)) | (((value as u32) & 0x01) << 27);
self.w
}
}
#[doc = "Possible values of the field `USB0_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum USB0_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<USB0_IRQ_A> for bool {
#[inline(always)]
fn from(variant: USB0_IRQ_A) -> Self {
match variant {
USB0_IRQ_A::INVISIBLE => false,
USB0_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `USB0_IRQ`"]
pub type USB0_IRQ_R = crate::R<bool, USB0_IRQ_A>;
impl USB0_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> USB0_IRQ_A {
match self.bits {
false => USB0_IRQ_A::INVISIBLE,
true => USB0_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == USB0_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == USB0_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `USB0_IRQ`"]
pub struct USB0_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> USB0_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: USB0_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(USB0_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(USB0_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 28)) | (((value as u32) & 0x01) << 28);
self.w
}
}
#[doc = "Possible values of the field `RTC_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RTC_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<RTC_IRQ_A> for bool {
#[inline(always)]
fn from(variant: RTC_IRQ_A) -> Self {
match variant {
RTC_IRQ_A::INVISIBLE => false,
RTC_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `RTC_IRQ`"]
pub type RTC_IRQ_R = crate::R<bool, RTC_IRQ_A>;
impl RTC_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RTC_IRQ_A {
match self.bits {
false => RTC_IRQ_A::INVISIBLE,
true => RTC_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == RTC_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == RTC_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `RTC_IRQ`"]
pub struct RTC_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> RTC_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RTC_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(RTC_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(RTC_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 29)) | (((value as u32) & 0x01) << 29);
self.w
}
}
#[doc = "Possible values of the field `RESERVED3`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RESERVED3_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<RESERVED3_A> for bool {
#[inline(always)]
fn from(variant: RESERVED3_A) -> Self {
match variant {
RESERVED3_A::INVISIBLE => false,
RESERVED3_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `RESERVED3`"]
pub type RESERVED3_R = crate::R<bool, RESERVED3_A>;
impl RESERVED3_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RESERVED3_A {
match self.bits {
false => RESERVED3_A::INVISIBLE,
true => RESERVED3_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == RESERVED3_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == RESERVED3_A::VISIBLE
}
}
#[doc = "Write proxy for field `RESERVED3`"]
pub struct RESERVED3_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED3_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RESERVED3_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(RESERVED3_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(RESERVED3_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 30)) | (((value as u32) & 0x01) << 30);
self.w
}
}
#[doc = "Possible values of the field `MAILBOX_IRQ`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MAILBOX_IRQ_A {
#[doc = "no description available"]
INVISIBLE,
#[doc = "no description available"]
VISIBLE,
}
impl From<MAILBOX_IRQ_A> for bool {
#[inline(always)]
fn from(variant: MAILBOX_IRQ_A) -> Self {
match variant {
MAILBOX_IRQ_A::INVISIBLE => false,
MAILBOX_IRQ_A::VISIBLE => true,
}
}
}
#[doc = "Reader of field `MAILBOX_IRQ`"]
pub type MAILBOX_IRQ_R = crate::R<bool, MAILBOX_IRQ_A>;
impl MAILBOX_IRQ_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> MAILBOX_IRQ_A {
match self.bits {
false => MAILBOX_IRQ_A::INVISIBLE,
true => MAILBOX_IRQ_A::VISIBLE,
}
}
#[doc = "Checks if the value of the field is `INVISIBLE`"]
#[inline(always)]
pub fn is_invisible(&self) -> bool {
*self == MAILBOX_IRQ_A::INVISIBLE
}
#[doc = "Checks if the value of the field is `VISIBLE`"]
#[inline(always)]
pub fn is_visible(&self) -> bool {
*self == MAILBOX_IRQ_A::VISIBLE
}
}
#[doc = "Write proxy for field `MAILBOX_IRQ`"]
pub struct MAILBOX_IRQ_W<'a> {
w: &'a mut W,
}
impl<'a> MAILBOX_IRQ_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: MAILBOX_IRQ_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "no description available"]
#[inline(always)]
pub fn invisible(self) -> &'a mut W {
self.variant(MAILBOX_IRQ_A::INVISIBLE)
}
#[doc = "no description available"]
#[inline(always)]
pub fn visible(self) -> &'a mut W {
self.variant(MAILBOX_IRQ_A::VISIBLE)
}
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 31)) | (((value as u32) & 0x01) << 31);
self.w
}
}
impl R {
#[doc = "Bit 0 - Watchdog Timer, Brown Out Detectors and Flash Controller interrupts"]
#[inline(always)]
pub fn sys_irq(&self) -> SYS_IRQ_R {
SYS_IRQ_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - System DMA 0 (non-secure) interrupt."]
#[inline(always)]
pub fn sdma0_irq(&self) -> SDMA0_IRQ_R {
SDMA0_IRQ_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - GPIO Group 0 interrupt."]
#[inline(always)]
pub fn gpio_globalint0_irq(&self) -> GPIO_GLOBALINT0_IRQ_R {
GPIO_GLOBALINT0_IRQ_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - GPIO Group 1 interrupt."]
#[inline(always)]
pub fn gpio_globalint1_irq(&self) -> GPIO_GLOBALINT1_IRQ_R {
GPIO_GLOBALINT1_IRQ_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Pin interrupt 0 or pattern match engine slice 0 interrupt."]
#[inline(always)]
pub fn gpio_int0_irq0(&self) -> GPIO_INT0_IRQ0_R {
GPIO_INT0_IRQ0_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Pin interrupt 1 or pattern match engine slice 1 interrupt."]
#[inline(always)]
pub fn gpio_int0_irq1(&self) -> GPIO_INT0_IRQ1_R {
GPIO_INT0_IRQ1_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - Pin interrupt 2 or pattern match engine slice 2 interrupt."]
#[inline(always)]
pub fn gpio_int0_irq2(&self) -> GPIO_INT0_IRQ2_R {
GPIO_INT0_IRQ2_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Pin interrupt 3 or pattern match engine slice 3 interrupt."]
#[inline(always)]
pub fn gpio_int0_irq3(&self) -> GPIO_INT0_IRQ3_R {
GPIO_INT0_IRQ3_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Micro Tick Timer interrupt."]
#[inline(always)]
pub fn utick_irq(&self) -> UTICK_IRQ_R {
UTICK_IRQ_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Multi-Rate Timer interrupt."]
#[inline(always)]
pub fn mrt_irq(&self) -> MRT_IRQ_R {
MRT_IRQ_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - Standard counter/timer 0 interrupt."]
#[inline(always)]
pub fn ctimer0_irq(&self) -> CTIMER0_IRQ_R {
CTIMER0_IRQ_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - Standard counter/timer 1 interrupt."]
#[inline(always)]
pub fn ctimer1_irq(&self) -> CTIMER1_IRQ_R {
CTIMER1_IRQ_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 12 - SCTimer/PWM interrupt."]
#[inline(always)]
pub fn sct_irq(&self) -> SCT_IRQ_R {
SCT_IRQ_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 13 - Standard counter/timer 3 interrupt."]
#[inline(always)]
pub fn ctimer3_irq(&self) -> CTIMER3_IRQ_R {
CTIMER3_IRQ_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - Flexcomm 0 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm0_irq(&self) -> FLEXCOMM0_IRQ_R {
FLEXCOMM0_IRQ_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - Flexcomm 1 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm1_irq(&self) -> FLEXCOMM1_IRQ_R {
FLEXCOMM1_IRQ_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 16 - Flexcomm 2 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm2_irq(&self) -> FLEXCOMM2_IRQ_R {
FLEXCOMM2_IRQ_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 17 - Flexcomm 3 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm3_irq(&self) -> FLEXCOMM3_IRQ_R {
FLEXCOMM3_IRQ_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 18 - Flexcomm 4 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm4_irq(&self) -> FLEXCOMM4_IRQ_R {
FLEXCOMM4_IRQ_R::new(((self.bits >> 18) & 0x01) != 0)
}
#[doc = "Bit 19 - Flexcomm 5 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm5_irq(&self) -> FLEXCOMM5_IRQ_R {
FLEXCOMM5_IRQ_R::new(((self.bits >> 19) & 0x01) != 0)
}
#[doc = "Bit 20 - Flexcomm 6 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm6_irq(&self) -> FLEXCOMM6_IRQ_R {
FLEXCOMM6_IRQ_R::new(((self.bits >> 20) & 0x01) != 0)
}
#[doc = "Bit 21 - Flexcomm 7 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm7_irq(&self) -> FLEXCOMM7_IRQ_R {
FLEXCOMM7_IRQ_R::new(((self.bits >> 21) & 0x01) != 0)
}
#[doc = "Bit 22 - General Purpose ADC interrupt."]
#[inline(always)]
pub fn adc_irq(&self) -> ADC_IRQ_R {
ADC_IRQ_R::new(((self.bits >> 22) & 0x01) != 0)
}
#[doc = "Bit 23 - Reserved. Read value is undefined, only zero should be written."]
#[inline(always)]
pub fn reserved0(&self) -> RESERVED0_R {
RESERVED0_R::new(((self.bits >> 23) & 0x01) != 0)
}
#[doc = "Bit 24 - Analog Comparator interrupt."]
#[inline(always)]
pub fn acmp_capt0_irq(&self) -> ACMP_CAPT0_IRQ_R {
ACMP_CAPT0_IRQ_R::new(((self.bits >> 24) & 0x01) != 0)
}
#[doc = "Bit 25 - Reserved. Read value is undefined, only zero should be written."]
#[inline(always)]
pub fn reserved1(&self) -> RESERVED1_R {
RESERVED1_R::new(((self.bits >> 25) & 0x01) != 0)
}
#[doc = "Bit 26 - Reserved. Read value is undefined, only zero should be written."]
#[inline(always)]
pub fn reserved2(&self) -> RESERVED2_R {
RESERVED2_R::new(((self.bits >> 26) & 0x01) != 0)
}
#[doc = "Bit 27 - USB Full Speed Controller Clock request interrupt."]
#[inline(always)]
pub fn usb0_needclk(&self) -> USB0_NEEDCLK_R {
USB0_NEEDCLK_R::new(((self.bits >> 27) & 0x01) != 0)
}
#[doc = "Bit 28 - USB High Speed Controller interrupt."]
#[inline(always)]
pub fn usb0_irq(&self) -> USB0_IRQ_R {
USB0_IRQ_R::new(((self.bits >> 28) & 0x01) != 0)
}
#[doc = "Bit 29 - RTC_LITE0_ALARM_IRQ, RTC_LITE0_WAKEUP_IRQ"]
#[inline(always)]
pub fn rtc_irq(&self) -> RTC_IRQ_R {
RTC_IRQ_R::new(((self.bits >> 29) & 0x01) != 0)
}
#[doc = "Bit 30 - Reserved. Read value is undefined, only zero should be written."]
#[inline(always)]
pub fn reserved3(&self) -> RESERVED3_R {
RESERVED3_R::new(((self.bits >> 30) & 0x01) != 0)
}
#[doc = "Bit 31 - Mailbox interrupt."]
#[inline(always)]
pub fn mailbox_irq(&self) -> MAILBOX_IRQ_R {
MAILBOX_IRQ_R::new(((self.bits >> 31) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - Watchdog Timer, Brown Out Detectors and Flash Controller interrupts"]
#[inline(always)]
pub fn sys_irq(&mut self) -> SYS_IRQ_W {
SYS_IRQ_W { w: self }
}
#[doc = "Bit 1 - System DMA 0 (non-secure) interrupt."]
#[inline(always)]
pub fn sdma0_irq(&mut self) -> SDMA0_IRQ_W {
SDMA0_IRQ_W { w: self }
}
#[doc = "Bit 2 - GPIO Group 0 interrupt."]
#[inline(always)]
pub fn gpio_globalint0_irq(&mut self) -> GPIO_GLOBALINT0_IRQ_W {
GPIO_GLOBALINT0_IRQ_W { w: self }
}
#[doc = "Bit 3 - GPIO Group 1 interrupt."]
#[inline(always)]
pub fn gpio_globalint1_irq(&mut self) -> GPIO_GLOBALINT1_IRQ_W {
GPIO_GLOBALINT1_IRQ_W { w: self }
}
#[doc = "Bit 4 - Pin interrupt 0 or pattern match engine slice 0 interrupt."]
#[inline(always)]
pub fn gpio_int0_irq0(&mut self) -> GPIO_INT0_IRQ0_W {
GPIO_INT0_IRQ0_W { w: self }
}
#[doc = "Bit 5 - Pin interrupt 1 or pattern match engine slice 1 interrupt."]
#[inline(always)]
pub fn gpio_int0_irq1(&mut self) -> GPIO_INT0_IRQ1_W {
GPIO_INT0_IRQ1_W { w: self }
}
#[doc = "Bit 6 - Pin interrupt 2 or pattern match engine slice 2 interrupt."]
#[inline(always)]
pub fn gpio_int0_irq2(&mut self) -> GPIO_INT0_IRQ2_W {
GPIO_INT0_IRQ2_W { w: self }
}
#[doc = "Bit 7 - Pin interrupt 3 or pattern match engine slice 3 interrupt."]
#[inline(always)]
pub fn gpio_int0_irq3(&mut self) -> GPIO_INT0_IRQ3_W {
GPIO_INT0_IRQ3_W { w: self }
}
#[doc = "Bit 8 - Micro Tick Timer interrupt."]
#[inline(always)]
pub fn utick_irq(&mut self) -> UTICK_IRQ_W {
UTICK_IRQ_W { w: self }
}
#[doc = "Bit 9 - Multi-Rate Timer interrupt."]
#[inline(always)]
pub fn mrt_irq(&mut self) -> MRT_IRQ_W {
MRT_IRQ_W { w: self }
}
#[doc = "Bit 10 - Standard counter/timer 0 interrupt."]
#[inline(always)]
pub fn ctimer0_irq(&mut self) -> CTIMER0_IRQ_W {
CTIMER0_IRQ_W { w: self }
}
#[doc = "Bit 11 - Standard counter/timer 1 interrupt."]
#[inline(always)]
pub fn ctimer1_irq(&mut self) -> CTIMER1_IRQ_W {
CTIMER1_IRQ_W { w: self }
}
#[doc = "Bit 12 - SCTimer/PWM interrupt."]
#[inline(always)]
pub fn sct_irq(&mut self) -> SCT_IRQ_W {
SCT_IRQ_W { w: self }
}
#[doc = "Bit 13 - Standard counter/timer 3 interrupt."]
#[inline(always)]
pub fn ctimer3_irq(&mut self) -> CTIMER3_IRQ_W {
CTIMER3_IRQ_W { w: self }
}
#[doc = "Bit 14 - Flexcomm 0 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm0_irq(&mut self) -> FLEXCOMM0_IRQ_W {
FLEXCOMM0_IRQ_W { w: self }
}
#[doc = "Bit 15 - Flexcomm 1 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm1_irq(&mut self) -> FLEXCOMM1_IRQ_W {
FLEXCOMM1_IRQ_W { w: self }
}
#[doc = "Bit 16 - Flexcomm 2 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm2_irq(&mut self) -> FLEXCOMM2_IRQ_W {
FLEXCOMM2_IRQ_W { w: self }
}
#[doc = "Bit 17 - Flexcomm 3 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm3_irq(&mut self) -> FLEXCOMM3_IRQ_W {
FLEXCOMM3_IRQ_W { w: self }
}
#[doc = "Bit 18 - Flexcomm 4 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm4_irq(&mut self) -> FLEXCOMM4_IRQ_W {
FLEXCOMM4_IRQ_W { w: self }
}
#[doc = "Bit 19 - Flexcomm 5 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm5_irq(&mut self) -> FLEXCOMM5_IRQ_W {
FLEXCOMM5_IRQ_W { w: self }
}
#[doc = "Bit 20 - Flexcomm 6 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm6_irq(&mut self) -> FLEXCOMM6_IRQ_W {
FLEXCOMM6_IRQ_W { w: self }
}
#[doc = "Bit 21 - Flexcomm 7 interrupt (USART, SPI, I2C, I2S)."]
#[inline(always)]
pub fn flexcomm7_irq(&mut self) -> FLEXCOMM7_IRQ_W {
FLEXCOMM7_IRQ_W { w: self }
}
#[doc = "Bit 22 - General Purpose ADC interrupt."]
#[inline(always)]
pub fn adc_irq(&mut self) -> ADC_IRQ_W {
ADC_IRQ_W { w: self }
}
#[doc = "Bit 23 - Reserved. Read value is undefined, only zero should be written."]
#[inline(always)]
pub fn reserved0(&mut self) -> RESERVED0_W {
RESERVED0_W { w: self }
}
#[doc = "Bit 24 - Analog Comparator interrupt."]
#[inline(always)]
pub fn acmp_capt0_irq(&mut self) -> ACMP_CAPT0_IRQ_W {
ACMP_CAPT0_IRQ_W { w: self }
}
#[doc = "Bit 25 - Reserved. Read value is undefined, only zero should be written."]
#[inline(always)]
pub fn reserved1(&mut self) -> RESERVED1_W {
RESERVED1_W { w: self }
}
#[doc = "Bit 26 - Reserved. Read value is undefined, only zero should be written."]
#[inline(always)]
pub fn reserved2(&mut self) -> RESERVED2_W {
RESERVED2_W { w: self }
}
#[doc = "Bit 27 - USB Full Speed Controller Clock request interrupt."]
#[inline(always)]
pub fn usb0_needclk(&mut self) -> USB0_NEEDCLK_W {
USB0_NEEDCLK_W { w: self }
}
#[doc = "Bit 28 - USB High Speed Controller interrupt."]
#[inline(always)]
pub fn usb0_irq(&mut self) -> USB0_IRQ_W {
USB0_IRQ_W { w: self }
}
#[doc = "Bit 29 - RTC_LITE0_ALARM_IRQ, RTC_LITE0_WAKEUP_IRQ"]
#[inline(always)]
pub fn rtc_irq(&mut self) -> RTC_IRQ_W {
RTC_IRQ_W { w: self }
}
#[doc = "Bit 30 - Reserved. Read value is undefined, only zero should be written."]
#[inline(always)]
pub fn reserved3(&mut self) -> RESERVED3_W {
RESERVED3_W { w: self }
}
#[doc = "Bit 31 - Mailbox interrupt."]
#[inline(always)]
pub fn mailbox_irq(&mut self) -> MAILBOX_IRQ_W {
MAILBOX_IRQ_W { w: self }
}
}