#[doc = "Reader of register EMR1"]
pub type R = crate::R<u32, super::EMR1>;
#[doc = "Writer for register EMR1"]
pub type W = crate::W<u32, super::EMR1>;
#[doc = "Register EMR1 `reset()`'s with value 0"]
impl crate::ResetValue for super::EMR1 {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Reader of field `MR0`"]
pub type MR0_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR0`"]
pub struct MR0_W<'a> {
w: &'a mut W,
}
impl<'a> MR0_W<'a> {
#[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 = "Reader of field `MR1`"]
pub type MR1_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR1`"]
pub struct MR1_W<'a> {
w: &'a mut W,
}
impl<'a> MR1_W<'a> {
#[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 = "Reader of field `MR2`"]
pub type MR2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR2`"]
pub struct MR2_W<'a> {
w: &'a mut W,
}
impl<'a> MR2_W<'a> {
#[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 = "Reader of field `MR3`"]
pub type MR3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR3`"]
pub struct MR3_W<'a> {
w: &'a mut W,
}
impl<'a> MR3_W<'a> {
#[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 = "Reader of field `MR4`"]
pub type MR4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR4`"]
pub struct MR4_W<'a> {
w: &'a mut W,
}
impl<'a> MR4_W<'a> {
#[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 = "Reader of field `MR5`"]
pub type MR5_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR5`"]
pub struct MR5_W<'a> {
w: &'a mut W,
}
impl<'a> MR5_W<'a> {
#[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 = "Reader of field `MR6`"]
pub type MR6_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR6`"]
pub struct MR6_W<'a> {
w: &'a mut W,
}
impl<'a> MR6_W<'a> {
#[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 = "Reader of field `MR7`"]
pub type MR7_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR7`"]
pub struct MR7_W<'a> {
w: &'a mut W,
}
impl<'a> MR7_W<'a> {
#[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 = "Reader of field `MR8`"]
pub type MR8_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR8`"]
pub struct MR8_W<'a> {
w: &'a mut W,
}
impl<'a> MR8_W<'a> {
#[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 = "Reader of field `MR9`"]
pub type MR9_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR9`"]
pub struct MR9_W<'a> {
w: &'a mut W,
}
impl<'a> MR9_W<'a> {
#[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 = "Reader of field `MR10`"]
pub type MR10_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR10`"]
pub struct MR10_W<'a> {
w: &'a mut W,
}
impl<'a> MR10_W<'a> {
#[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 = "Reader of field `MR11`"]
pub type MR11_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR11`"]
pub struct MR11_W<'a> {
w: &'a mut W,
}
impl<'a> MR11_W<'a> {
#[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 = "Reader of field `MR12`"]
pub type MR12_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR12`"]
pub struct MR12_W<'a> {
w: &'a mut W,
}
impl<'a> MR12_W<'a> {
#[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 = "Reader of field `MR13`"]
pub type MR13_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR13`"]
pub struct MR13_W<'a> {
w: &'a mut W,
}
impl<'a> MR13_W<'a> {
#[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 = "Reader of field `MR14`"]
pub type MR14_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR14`"]
pub struct MR14_W<'a> {
w: &'a mut W,
}
impl<'a> MR14_W<'a> {
#[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 = "Reader of field `MR15`"]
pub type MR15_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR15`"]
pub struct MR15_W<'a> {
w: &'a mut W,
}
impl<'a> MR15_W<'a> {
#[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 = "Reader of field `MR16`"]
pub type MR16_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR16`"]
pub struct MR16_W<'a> {
w: &'a mut W,
}
impl<'a> MR16_W<'a> {
#[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 = "Reader of field `MR17`"]
pub type MR17_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR17`"]
pub struct MR17_W<'a> {
w: &'a mut W,
}
impl<'a> MR17_W<'a> {
#[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 = "Reader of field `MR18`"]
pub type MR18_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR18`"]
pub struct MR18_W<'a> {
w: &'a mut W,
}
impl<'a> MR18_W<'a> {
#[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 = "Reader of field `MR19`"]
pub type MR19_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR19`"]
pub struct MR19_W<'a> {
w: &'a mut W,
}
impl<'a> MR19_W<'a> {
#[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 = "Reader of field `MR20`"]
pub type MR20_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR20`"]
pub struct MR20_W<'a> {
w: &'a mut W,
}
impl<'a> MR20_W<'a> {
#[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 = "Reader of field `MR21`"]
pub type MR21_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR21`"]
pub struct MR21_W<'a> {
w: &'a mut W,
}
impl<'a> MR21_W<'a> {
#[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 = "Reader of field `MR22`"]
pub type MR22_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR22`"]
pub struct MR22_W<'a> {
w: &'a mut W,
}
impl<'a> MR22_W<'a> {
#[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 = "Reader of field `MR23`"]
pub type MR23_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR23`"]
pub struct MR23_W<'a> {
w: &'a mut W,
}
impl<'a> MR23_W<'a> {
#[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 = "Reader of field `MR24`"]
pub type MR24_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR24`"]
pub struct MR24_W<'a> {
w: &'a mut W,
}
impl<'a> MR24_W<'a> {
#[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 = "Reader of field `MR25`"]
pub type MR25_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR25`"]
pub struct MR25_W<'a> {
w: &'a mut W,
}
impl<'a> MR25_W<'a> {
#[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 = "Reader of field `MR26`"]
pub type MR26_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR26`"]
pub struct MR26_W<'a> {
w: &'a mut W,
}
impl<'a> MR26_W<'a> {
#[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 = "Reader of field `MR27`"]
pub type MR27_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR27`"]
pub struct MR27_W<'a> {
w: &'a mut W,
}
impl<'a> MR27_W<'a> {
#[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 = "Reader of field `MR28`"]
pub type MR28_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR28`"]
pub struct MR28_W<'a> {
w: &'a mut W,
}
impl<'a> MR28_W<'a> {
#[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 = "Reader of field `MR29`"]
pub type MR29_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR29`"]
pub struct MR29_W<'a> {
w: &'a mut W,
}
impl<'a> MR29_W<'a> {
#[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 = "Reader of field `MR30`"]
pub type MR30_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR30`"]
pub struct MR30_W<'a> {
w: &'a mut W,
}
impl<'a> MR30_W<'a> {
#[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 = "Reader of field `MR31`"]
pub type MR31_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `MR31`"]
pub struct MR31_W<'a> {
w: &'a mut W,
}
impl<'a> MR31_W<'a> {
#[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 - Event Mask on line 0"]
#[inline(always)]
pub fn mr0(&self) -> MR0_R {
MR0_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Event Mask on line 1"]
#[inline(always)]
pub fn mr1(&self) -> MR1_R {
MR1_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Event Mask on line 2"]
#[inline(always)]
pub fn mr2(&self) -> MR2_R {
MR2_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Event Mask on line 3"]
#[inline(always)]
pub fn mr3(&self) -> MR3_R {
MR3_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Event Mask on line 4"]
#[inline(always)]
pub fn mr4(&self) -> MR4_R {
MR4_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Event Mask on line 5"]
#[inline(always)]
pub fn mr5(&self) -> MR5_R {
MR5_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - Event Mask on line 6"]
#[inline(always)]
pub fn mr6(&self) -> MR6_R {
MR6_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Event Mask on line 7"]
#[inline(always)]
pub fn mr7(&self) -> MR7_R {
MR7_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Event Mask on line 8"]
#[inline(always)]
pub fn mr8(&self) -> MR8_R {
MR8_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Event Mask on line 9"]
#[inline(always)]
pub fn mr9(&self) -> MR9_R {
MR9_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - Event Mask on line 10"]
#[inline(always)]
pub fn mr10(&self) -> MR10_R {
MR10_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - Event Mask on line 11"]
#[inline(always)]
pub fn mr11(&self) -> MR11_R {
MR11_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 12 - Event Mask on line 12"]
#[inline(always)]
pub fn mr12(&self) -> MR12_R {
MR12_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 13 - Event Mask on line 13"]
#[inline(always)]
pub fn mr13(&self) -> MR13_R {
MR13_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - Event Mask on line 14"]
#[inline(always)]
pub fn mr14(&self) -> MR14_R {
MR14_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - Event Mask on line 15"]
#[inline(always)]
pub fn mr15(&self) -> MR15_R {
MR15_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 16 - Event Mask on line 16"]
#[inline(always)]
pub fn mr16(&self) -> MR16_R {
MR16_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 17 - Event Mask on line 17"]
#[inline(always)]
pub fn mr17(&self) -> MR17_R {
MR17_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 18 - Event Mask on line 18"]
#[inline(always)]
pub fn mr18(&self) -> MR18_R {
MR18_R::new(((self.bits >> 18) & 0x01) != 0)
}
#[doc = "Bit 19 - Event Mask on line 19"]
#[inline(always)]
pub fn mr19(&self) -> MR19_R {
MR19_R::new(((self.bits >> 19) & 0x01) != 0)
}
#[doc = "Bit 20 - Event Mask on line 20"]
#[inline(always)]
pub fn mr20(&self) -> MR20_R {
MR20_R::new(((self.bits >> 20) & 0x01) != 0)
}
#[doc = "Bit 21 - Event Mask on line 21"]
#[inline(always)]
pub fn mr21(&self) -> MR21_R {
MR21_R::new(((self.bits >> 21) & 0x01) != 0)
}
#[doc = "Bit 22 - Event Mask on line 22"]
#[inline(always)]
pub fn mr22(&self) -> MR22_R {
MR22_R::new(((self.bits >> 22) & 0x01) != 0)
}
#[doc = "Bit 23 - Event Mask on line 23"]
#[inline(always)]
pub fn mr23(&self) -> MR23_R {
MR23_R::new(((self.bits >> 23) & 0x01) != 0)
}
#[doc = "Bit 24 - Event Mask on line 24"]
#[inline(always)]
pub fn mr24(&self) -> MR24_R {
MR24_R::new(((self.bits >> 24) & 0x01) != 0)
}
#[doc = "Bit 25 - Event Mask on line 25"]
#[inline(always)]
pub fn mr25(&self) -> MR25_R {
MR25_R::new(((self.bits >> 25) & 0x01) != 0)
}
#[doc = "Bit 26 - Event Mask on line 26"]
#[inline(always)]
pub fn mr26(&self) -> MR26_R {
MR26_R::new(((self.bits >> 26) & 0x01) != 0)
}
#[doc = "Bit 27 - Event Mask on line 27"]
#[inline(always)]
pub fn mr27(&self) -> MR27_R {
MR27_R::new(((self.bits >> 27) & 0x01) != 0)
}
#[doc = "Bit 28 - Event Mask on line 28"]
#[inline(always)]
pub fn mr28(&self) -> MR28_R {
MR28_R::new(((self.bits >> 28) & 0x01) != 0)
}
#[doc = "Bit 29 - Event Mask on line 29"]
#[inline(always)]
pub fn mr29(&self) -> MR29_R {
MR29_R::new(((self.bits >> 29) & 0x01) != 0)
}
#[doc = "Bit 30 - Event Mask on line 30"]
#[inline(always)]
pub fn mr30(&self) -> MR30_R {
MR30_R::new(((self.bits >> 30) & 0x01) != 0)
}
#[doc = "Bit 31 - Event Mask on line 31"]
#[inline(always)]
pub fn mr31(&self) -> MR31_R {
MR31_R::new(((self.bits >> 31) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - Event Mask on line 0"]
#[inline(always)]
pub fn mr0(&mut self) -> MR0_W {
MR0_W { w: self }
}
#[doc = "Bit 1 - Event Mask on line 1"]
#[inline(always)]
pub fn mr1(&mut self) -> MR1_W {
MR1_W { w: self }
}
#[doc = "Bit 2 - Event Mask on line 2"]
#[inline(always)]
pub fn mr2(&mut self) -> MR2_W {
MR2_W { w: self }
}
#[doc = "Bit 3 - Event Mask on line 3"]
#[inline(always)]
pub fn mr3(&mut self) -> MR3_W {
MR3_W { w: self }
}
#[doc = "Bit 4 - Event Mask on line 4"]
#[inline(always)]
pub fn mr4(&mut self) -> MR4_W {
MR4_W { w: self }
}
#[doc = "Bit 5 - Event Mask on line 5"]
#[inline(always)]
pub fn mr5(&mut self) -> MR5_W {
MR5_W { w: self }
}
#[doc = "Bit 6 - Event Mask on line 6"]
#[inline(always)]
pub fn mr6(&mut self) -> MR6_W {
MR6_W { w: self }
}
#[doc = "Bit 7 - Event Mask on line 7"]
#[inline(always)]
pub fn mr7(&mut self) -> MR7_W {
MR7_W { w: self }
}
#[doc = "Bit 8 - Event Mask on line 8"]
#[inline(always)]
pub fn mr8(&mut self) -> MR8_W {
MR8_W { w: self }
}
#[doc = "Bit 9 - Event Mask on line 9"]
#[inline(always)]
pub fn mr9(&mut self) -> MR9_W {
MR9_W { w: self }
}
#[doc = "Bit 10 - Event Mask on line 10"]
#[inline(always)]
pub fn mr10(&mut self) -> MR10_W {
MR10_W { w: self }
}
#[doc = "Bit 11 - Event Mask on line 11"]
#[inline(always)]
pub fn mr11(&mut self) -> MR11_W {
MR11_W { w: self }
}
#[doc = "Bit 12 - Event Mask on line 12"]
#[inline(always)]
pub fn mr12(&mut self) -> MR12_W {
MR12_W { w: self }
}
#[doc = "Bit 13 - Event Mask on line 13"]
#[inline(always)]
pub fn mr13(&mut self) -> MR13_W {
MR13_W { w: self }
}
#[doc = "Bit 14 - Event Mask on line 14"]
#[inline(always)]
pub fn mr14(&mut self) -> MR14_W {
MR14_W { w: self }
}
#[doc = "Bit 15 - Event Mask on line 15"]
#[inline(always)]
pub fn mr15(&mut self) -> MR15_W {
MR15_W { w: self }
}
#[doc = "Bit 16 - Event Mask on line 16"]
#[inline(always)]
pub fn mr16(&mut self) -> MR16_W {
MR16_W { w: self }
}
#[doc = "Bit 17 - Event Mask on line 17"]
#[inline(always)]
pub fn mr17(&mut self) -> MR17_W {
MR17_W { w: self }
}
#[doc = "Bit 18 - Event Mask on line 18"]
#[inline(always)]
pub fn mr18(&mut self) -> MR18_W {
MR18_W { w: self }
}
#[doc = "Bit 19 - Event Mask on line 19"]
#[inline(always)]
pub fn mr19(&mut self) -> MR19_W {
MR19_W { w: self }
}
#[doc = "Bit 20 - Event Mask on line 20"]
#[inline(always)]
pub fn mr20(&mut self) -> MR20_W {
MR20_W { w: self }
}
#[doc = "Bit 21 - Event Mask on line 21"]
#[inline(always)]
pub fn mr21(&mut self) -> MR21_W {
MR21_W { w: self }
}
#[doc = "Bit 22 - Event Mask on line 22"]
#[inline(always)]
pub fn mr22(&mut self) -> MR22_W {
MR22_W { w: self }
}
#[doc = "Bit 23 - Event Mask on line 23"]
#[inline(always)]
pub fn mr23(&mut self) -> MR23_W {
MR23_W { w: self }
}
#[doc = "Bit 24 - Event Mask on line 24"]
#[inline(always)]
pub fn mr24(&mut self) -> MR24_W {
MR24_W { w: self }
}
#[doc = "Bit 25 - Event Mask on line 25"]
#[inline(always)]
pub fn mr25(&mut self) -> MR25_W {
MR25_W { w: self }
}
#[doc = "Bit 26 - Event Mask on line 26"]
#[inline(always)]
pub fn mr26(&mut self) -> MR26_W {
MR26_W { w: self }
}
#[doc = "Bit 27 - Event Mask on line 27"]
#[inline(always)]
pub fn mr27(&mut self) -> MR27_W {
MR27_W { w: self }
}
#[doc = "Bit 28 - Event Mask on line 28"]
#[inline(always)]
pub fn mr28(&mut self) -> MR28_W {
MR28_W { w: self }
}
#[doc = "Bit 29 - Event Mask on line 29"]
#[inline(always)]
pub fn mr29(&mut self) -> MR29_W {
MR29_W { w: self }
}
#[doc = "Bit 30 - Event Mask on line 30"]
#[inline(always)]
pub fn mr30(&mut self) -> MR30_W {
MR30_W { w: self }
}
#[doc = "Bit 31 - Event Mask on line 31"]
#[inline(always)]
pub fn mr31(&mut self) -> MR31_W {
MR31_W { w: self }
}
}