#[doc = "Reader of register EMR"]
pub type R = crate::R<u32, super::EMR>;
#[doc = "Writer for register EMR"]
pub type W = crate::W<u32, super::EMR>;
#[doc = "Register EMR `reset()`'s with value 0"]
impl crate::ResetValue for super::EMR {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Event Mask on line 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EM0_A {
#[doc = "0: Interrupt request line is masked"]
MASKED = 0,
#[doc = "1: Interrupt request line is unmasked"]
UNMASKED = 1,
}
impl From<EM0_A> for bool {
#[inline(always)]
fn from(variant: EM0_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `EM0`"]
pub type EM0_R = crate::R<bool, EM0_A>;
impl EM0_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EM0_A {
match self.bits {
false => EM0_A::MASKED,
true => EM0_A::UNMASKED,
}
}
#[doc = "Checks if the value of the field is `MASKED`"]
#[inline(always)]
pub fn is_masked(&self) -> bool {
*self == EM0_A::MASKED
}
#[doc = "Checks if the value of the field is `UNMASKED`"]
#[inline(always)]
pub fn is_unmasked(&self) -> bool {
*self == EM0_A::UNMASKED
}
}
#[doc = "Write proxy for field `EM0`"]
pub struct EM0_W<'a> {
w: &'a mut W,
}
impl<'a> EM0_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM0_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 1"]
pub type EM1_A = EM0_A;
#[doc = "Reader of field `EM1`"]
pub type EM1_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM1`"]
pub struct EM1_W<'a> {
w: &'a mut W,
}
impl<'a> EM1_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM1_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 2"]
pub type EM2_A = EM0_A;
#[doc = "Reader of field `EM2`"]
pub type EM2_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM2`"]
pub struct EM2_W<'a> {
w: &'a mut W,
}
impl<'a> EM2_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM2_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 3"]
pub type EM3_A = EM0_A;
#[doc = "Reader of field `EM3`"]
pub type EM3_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM3`"]
pub struct EM3_W<'a> {
w: &'a mut W,
}
impl<'a> EM3_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM3_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 4"]
pub type EM4_A = EM0_A;
#[doc = "Reader of field `EM4`"]
pub type EM4_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM4`"]
pub struct EM4_W<'a> {
w: &'a mut W,
}
impl<'a> EM4_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM4_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 5"]
pub type EM5_A = EM0_A;
#[doc = "Reader of field `EM5`"]
pub type EM5_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM5`"]
pub struct EM5_W<'a> {
w: &'a mut W,
}
impl<'a> EM5_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM5_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 6"]
pub type EM6_A = EM0_A;
#[doc = "Reader of field `EM6`"]
pub type EM6_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM6`"]
pub struct EM6_W<'a> {
w: &'a mut W,
}
impl<'a> EM6_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM6_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 7"]
pub type EM7_A = EM0_A;
#[doc = "Reader of field `EM7`"]
pub type EM7_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM7`"]
pub struct EM7_W<'a> {
w: &'a mut W,
}
impl<'a> EM7_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM7_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 8"]
pub type EM8_A = EM0_A;
#[doc = "Reader of field `EM8`"]
pub type EM8_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM8`"]
pub struct EM8_W<'a> {
w: &'a mut W,
}
impl<'a> EM8_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM8_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 9"]
pub type EM9_A = EM0_A;
#[doc = "Reader of field `EM9`"]
pub type EM9_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM9`"]
pub struct EM9_W<'a> {
w: &'a mut W,
}
impl<'a> EM9_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM9_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 10"]
pub type EM10_A = EM0_A;
#[doc = "Reader of field `EM10`"]
pub type EM10_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM10`"]
pub struct EM10_W<'a> {
w: &'a mut W,
}
impl<'a> EM10_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM10_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 11"]
pub type EM11_A = EM0_A;
#[doc = "Reader of field `EM11`"]
pub type EM11_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM11`"]
pub struct EM11_W<'a> {
w: &'a mut W,
}
impl<'a> EM11_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM11_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 12"]
pub type EM12_A = EM0_A;
#[doc = "Reader of field `EM12`"]
pub type EM12_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM12`"]
pub struct EM12_W<'a> {
w: &'a mut W,
}
impl<'a> EM12_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM12_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 13"]
pub type EM13_A = EM0_A;
#[doc = "Reader of field `EM13`"]
pub type EM13_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM13`"]
pub struct EM13_W<'a> {
w: &'a mut W,
}
impl<'a> EM13_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM13_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 14"]
pub type EM14_A = EM0_A;
#[doc = "Reader of field `EM14`"]
pub type EM14_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM14`"]
pub struct EM14_W<'a> {
w: &'a mut W,
}
impl<'a> EM14_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM14_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 15"]
pub type EM15_A = EM0_A;
#[doc = "Reader of field `EM15`"]
pub type EM15_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM15`"]
pub struct EM15_W<'a> {
w: &'a mut W,
}
impl<'a> EM15_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM15_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 16"]
pub type EM16_A = EM0_A;
#[doc = "Reader of field `EM16`"]
pub type EM16_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM16`"]
pub struct EM16_W<'a> {
w: &'a mut W,
}
impl<'a> EM16_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM16_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 17"]
pub type EM17_A = EM0_A;
#[doc = "Reader of field `EM17`"]
pub type EM17_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM17`"]
pub struct EM17_W<'a> {
w: &'a mut W,
}
impl<'a> EM17_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM17_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 18"]
pub type EM18_A = EM0_A;
#[doc = "Reader of field `EM18`"]
pub type EM18_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM18`"]
pub struct EM18_W<'a> {
w: &'a mut W,
}
impl<'a> EM18_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM18_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 19"]
pub type EM19_A = EM0_A;
#[doc = "Reader of field `EM19`"]
pub type EM19_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM19`"]
pub struct EM19_W<'a> {
w: &'a mut W,
}
impl<'a> EM19_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM19_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 20"]
pub type EM20_A = EM0_A;
#[doc = "Reader of field `EM20`"]
pub type EM20_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM20`"]
pub struct EM20_W<'a> {
w: &'a mut W,
}
impl<'a> EM20_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM20_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 21"]
pub type EM21_A = EM0_A;
#[doc = "Reader of field `EM21`"]
pub type EM21_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM21`"]
pub struct EM21_W<'a> {
w: &'a mut W,
}
impl<'a> EM21_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM21_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 22"]
pub type EM22_A = EM0_A;
#[doc = "Reader of field `EM22`"]
pub type EM22_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM22`"]
pub struct EM22_W<'a> {
w: &'a mut W,
}
impl<'a> EM22_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM22_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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 = "Event Mask on line 23"]
pub type EM23_A = EM0_A;
#[doc = "Reader of field `EM23`"]
pub type EM23_R = crate::R<bool, EM0_A>;
#[doc = "Write proxy for field `EM23`"]
pub struct EM23_W<'a> {
w: &'a mut W,
}
impl<'a> EM23_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EM23_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Interrupt request line is masked"]
#[inline(always)]
pub fn masked(self) -> &'a mut W {
self.variant(EM0_A::MASKED)
}
#[doc = "Interrupt request line is unmasked"]
#[inline(always)]
pub fn unmasked(self) -> &'a mut W {
self.variant(EM0_A::UNMASKED)
}
#[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
}
}
impl R {
#[doc = "Bit 0 - Event Mask on line 0"]
#[inline(always)]
pub fn em0(&self) -> EM0_R {
EM0_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Event Mask on line 1"]
#[inline(always)]
pub fn em1(&self) -> EM1_R {
EM1_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Event Mask on line 2"]
#[inline(always)]
pub fn em2(&self) -> EM2_R {
EM2_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Event Mask on line 3"]
#[inline(always)]
pub fn em3(&self) -> EM3_R {
EM3_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Event Mask on line 4"]
#[inline(always)]
pub fn em4(&self) -> EM4_R {
EM4_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Event Mask on line 5"]
#[inline(always)]
pub fn em5(&self) -> EM5_R {
EM5_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - Event Mask on line 6"]
#[inline(always)]
pub fn em6(&self) -> EM6_R {
EM6_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Event Mask on line 7"]
#[inline(always)]
pub fn em7(&self) -> EM7_R {
EM7_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Event Mask on line 8"]
#[inline(always)]
pub fn em8(&self) -> EM8_R {
EM8_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Event Mask on line 9"]
#[inline(always)]
pub fn em9(&self) -> EM9_R {
EM9_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - Event Mask on line 10"]
#[inline(always)]
pub fn em10(&self) -> EM10_R {
EM10_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - Event Mask on line 11"]
#[inline(always)]
pub fn em11(&self) -> EM11_R {
EM11_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 12 - Event Mask on line 12"]
#[inline(always)]
pub fn em12(&self) -> EM12_R {
EM12_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 13 - Event Mask on line 13"]
#[inline(always)]
pub fn em13(&self) -> EM13_R {
EM13_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - Event Mask on line 14"]
#[inline(always)]
pub fn em14(&self) -> EM14_R {
EM14_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - Event Mask on line 15"]
#[inline(always)]
pub fn em15(&self) -> EM15_R {
EM15_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 16 - Event Mask on line 16"]
#[inline(always)]
pub fn em16(&self) -> EM16_R {
EM16_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 17 - Event Mask on line 17"]
#[inline(always)]
pub fn em17(&self) -> EM17_R {
EM17_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 18 - Event Mask on line 18"]
#[inline(always)]
pub fn em18(&self) -> EM18_R {
EM18_R::new(((self.bits >> 18) & 0x01) != 0)
}
#[doc = "Bit 19 - Event Mask on line 19"]
#[inline(always)]
pub fn em19(&self) -> EM19_R {
EM19_R::new(((self.bits >> 19) & 0x01) != 0)
}
#[doc = "Bit 20 - Event Mask on line 20"]
#[inline(always)]
pub fn em20(&self) -> EM20_R {
EM20_R::new(((self.bits >> 20) & 0x01) != 0)
}
#[doc = "Bit 21 - Event Mask on line 21"]
#[inline(always)]
pub fn em21(&self) -> EM21_R {
EM21_R::new(((self.bits >> 21) & 0x01) != 0)
}
#[doc = "Bit 22 - Event Mask on line 22"]
#[inline(always)]
pub fn em22(&self) -> EM22_R {
EM22_R::new(((self.bits >> 22) & 0x01) != 0)
}
#[doc = "Bit 23 - Event Mask on line 23"]
#[inline(always)]
pub fn em23(&self) -> EM23_R {
EM23_R::new(((self.bits >> 23) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - Event Mask on line 0"]
#[inline(always)]
pub fn em0(&mut self) -> EM0_W {
EM0_W { w: self }
}
#[doc = "Bit 1 - Event Mask on line 1"]
#[inline(always)]
pub fn em1(&mut self) -> EM1_W {
EM1_W { w: self }
}
#[doc = "Bit 2 - Event Mask on line 2"]
#[inline(always)]
pub fn em2(&mut self) -> EM2_W {
EM2_W { w: self }
}
#[doc = "Bit 3 - Event Mask on line 3"]
#[inline(always)]
pub fn em3(&mut self) -> EM3_W {
EM3_W { w: self }
}
#[doc = "Bit 4 - Event Mask on line 4"]
#[inline(always)]
pub fn em4(&mut self) -> EM4_W {
EM4_W { w: self }
}
#[doc = "Bit 5 - Event Mask on line 5"]
#[inline(always)]
pub fn em5(&mut self) -> EM5_W {
EM5_W { w: self }
}
#[doc = "Bit 6 - Event Mask on line 6"]
#[inline(always)]
pub fn em6(&mut self) -> EM6_W {
EM6_W { w: self }
}
#[doc = "Bit 7 - Event Mask on line 7"]
#[inline(always)]
pub fn em7(&mut self) -> EM7_W {
EM7_W { w: self }
}
#[doc = "Bit 8 - Event Mask on line 8"]
#[inline(always)]
pub fn em8(&mut self) -> EM8_W {
EM8_W { w: self }
}
#[doc = "Bit 9 - Event Mask on line 9"]
#[inline(always)]
pub fn em9(&mut self) -> EM9_W {
EM9_W { w: self }
}
#[doc = "Bit 10 - Event Mask on line 10"]
#[inline(always)]
pub fn em10(&mut self) -> EM10_W {
EM10_W { w: self }
}
#[doc = "Bit 11 - Event Mask on line 11"]
#[inline(always)]
pub fn em11(&mut self) -> EM11_W {
EM11_W { w: self }
}
#[doc = "Bit 12 - Event Mask on line 12"]
#[inline(always)]
pub fn em12(&mut self) -> EM12_W {
EM12_W { w: self }
}
#[doc = "Bit 13 - Event Mask on line 13"]
#[inline(always)]
pub fn em13(&mut self) -> EM13_W {
EM13_W { w: self }
}
#[doc = "Bit 14 - Event Mask on line 14"]
#[inline(always)]
pub fn em14(&mut self) -> EM14_W {
EM14_W { w: self }
}
#[doc = "Bit 15 - Event Mask on line 15"]
#[inline(always)]
pub fn em15(&mut self) -> EM15_W {
EM15_W { w: self }
}
#[doc = "Bit 16 - Event Mask on line 16"]
#[inline(always)]
pub fn em16(&mut self) -> EM16_W {
EM16_W { w: self }
}
#[doc = "Bit 17 - Event Mask on line 17"]
#[inline(always)]
pub fn em17(&mut self) -> EM17_W {
EM17_W { w: self }
}
#[doc = "Bit 18 - Event Mask on line 18"]
#[inline(always)]
pub fn em18(&mut self) -> EM18_W {
EM18_W { w: self }
}
#[doc = "Bit 19 - Event Mask on line 19"]
#[inline(always)]
pub fn em19(&mut self) -> EM19_W {
EM19_W { w: self }
}
#[doc = "Bit 20 - Event Mask on line 20"]
#[inline(always)]
pub fn em20(&mut self) -> EM20_W {
EM20_W { w: self }
}
#[doc = "Bit 21 - Event Mask on line 21"]
#[inline(always)]
pub fn em21(&mut self) -> EM21_W {
EM21_W { w: self }
}
#[doc = "Bit 22 - Event Mask on line 22"]
#[inline(always)]
pub fn em22(&mut self) -> EM22_W {
EM22_W { w: self }
}
#[doc = "Bit 23 - Event Mask on line 23"]
#[inline(always)]
pub fn em23(&mut self) -> EM23_W {
EM23_W { w: self }
}
}