#[doc = "Reader of register INTENSET"]
pub type R = crate::R<u32, super::INTENSET>;
#[doc = "Writer for register INTENSET"]
pub type W = crate::W<u32, super::INTENSET>;
#[doc = "Register INTENSET `reset()`'s with value 0"]
impl crate::ResetValue for super::INTENSET {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[0\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE0_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE0_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE0_A) -> Self {
match variant {
RECEIVE0_A::DISABLED => false,
RECEIVE0_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE0`"]
pub type RECEIVE0_R = crate::R<bool, RECEIVE0_A>;
impl RECEIVE0_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE0_A {
match self.bits {
false => RECEIVE0_A::DISABLED,
true => RECEIVE0_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE0_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE0_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[0\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE0_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE0_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE0_AW) -> Self {
match variant {
RECEIVE0_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE0`"]
pub struct RECEIVE0_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE0_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE0_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE0_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[1\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE1_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE1_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE1_A) -> Self {
match variant {
RECEIVE1_A::DISABLED => false,
RECEIVE1_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE1`"]
pub type RECEIVE1_R = crate::R<bool, RECEIVE1_A>;
impl RECEIVE1_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE1_A {
match self.bits {
false => RECEIVE1_A::DISABLED,
true => RECEIVE1_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE1_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE1_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[1\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE1_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE1_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE1_AW) -> Self {
match variant {
RECEIVE1_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE1`"]
pub struct RECEIVE1_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE1_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE1_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE1_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[2\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE2_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE2_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE2_A) -> Self {
match variant {
RECEIVE2_A::DISABLED => false,
RECEIVE2_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE2`"]
pub type RECEIVE2_R = crate::R<bool, RECEIVE2_A>;
impl RECEIVE2_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE2_A {
match self.bits {
false => RECEIVE2_A::DISABLED,
true => RECEIVE2_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE2_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE2_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[2\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE2_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE2_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE2_AW) -> Self {
match variant {
RECEIVE2_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE2`"]
pub struct RECEIVE2_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE2_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE2_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE2_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[3\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE3_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE3_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE3_A) -> Self {
match variant {
RECEIVE3_A::DISABLED => false,
RECEIVE3_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE3`"]
pub type RECEIVE3_R = crate::R<bool, RECEIVE3_A>;
impl RECEIVE3_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE3_A {
match self.bits {
false => RECEIVE3_A::DISABLED,
true => RECEIVE3_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE3_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE3_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[3\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE3_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE3_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE3_AW) -> Self {
match variant {
RECEIVE3_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE3`"]
pub struct RECEIVE3_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE3_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE3_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE3_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[4\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE4_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE4_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE4_A) -> Self {
match variant {
RECEIVE4_A::DISABLED => false,
RECEIVE4_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE4`"]
pub type RECEIVE4_R = crate::R<bool, RECEIVE4_A>;
impl RECEIVE4_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE4_A {
match self.bits {
false => RECEIVE4_A::DISABLED,
true => RECEIVE4_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE4_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE4_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[4\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE4_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE4_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE4_AW) -> Self {
match variant {
RECEIVE4_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE4`"]
pub struct RECEIVE4_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE4_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE4_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE4_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[5\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE5_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE5_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE5_A) -> Self {
match variant {
RECEIVE5_A::DISABLED => false,
RECEIVE5_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE5`"]
pub type RECEIVE5_R = crate::R<bool, RECEIVE5_A>;
impl RECEIVE5_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE5_A {
match self.bits {
false => RECEIVE5_A::DISABLED,
true => RECEIVE5_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE5_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE5_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[5\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE5_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE5_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE5_AW) -> Self {
match variant {
RECEIVE5_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE5`"]
pub struct RECEIVE5_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE5_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE5_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE5_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[6\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE6_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE6_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE6_A) -> Self {
match variant {
RECEIVE6_A::DISABLED => false,
RECEIVE6_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE6`"]
pub type RECEIVE6_R = crate::R<bool, RECEIVE6_A>;
impl RECEIVE6_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE6_A {
match self.bits {
false => RECEIVE6_A::DISABLED,
true => RECEIVE6_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE6_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE6_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[6\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE6_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE6_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE6_AW) -> Self {
match variant {
RECEIVE6_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE6`"]
pub struct RECEIVE6_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE6_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE6_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE6_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[7\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE7_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE7_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE7_A) -> Self {
match variant {
RECEIVE7_A::DISABLED => false,
RECEIVE7_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE7`"]
pub type RECEIVE7_R = crate::R<bool, RECEIVE7_A>;
impl RECEIVE7_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE7_A {
match self.bits {
false => RECEIVE7_A::DISABLED,
true => RECEIVE7_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE7_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE7_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[7\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE7_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE7_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE7_AW) -> Self {
match variant {
RECEIVE7_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE7`"]
pub struct RECEIVE7_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE7_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE7_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE7_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[8\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE8_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE8_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE8_A) -> Self {
match variant {
RECEIVE8_A::DISABLED => false,
RECEIVE8_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE8`"]
pub type RECEIVE8_R = crate::R<bool, RECEIVE8_A>;
impl RECEIVE8_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE8_A {
match self.bits {
false => RECEIVE8_A::DISABLED,
true => RECEIVE8_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE8_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE8_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[8\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE8_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE8_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE8_AW) -> Self {
match variant {
RECEIVE8_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE8`"]
pub struct RECEIVE8_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE8_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE8_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE8_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[9\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE9_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE9_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE9_A) -> Self {
match variant {
RECEIVE9_A::DISABLED => false,
RECEIVE9_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE9`"]
pub type RECEIVE9_R = crate::R<bool, RECEIVE9_A>;
impl RECEIVE9_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE9_A {
match self.bits {
false => RECEIVE9_A::DISABLED,
true => RECEIVE9_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE9_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE9_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[9\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE9_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE9_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE9_AW) -> Self {
match variant {
RECEIVE9_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE9`"]
pub struct RECEIVE9_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE9_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE9_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE9_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[10\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE10_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE10_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE10_A) -> Self {
match variant {
RECEIVE10_A::DISABLED => false,
RECEIVE10_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE10`"]
pub type RECEIVE10_R = crate::R<bool, RECEIVE10_A>;
impl RECEIVE10_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE10_A {
match self.bits {
false => RECEIVE10_A::DISABLED,
true => RECEIVE10_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE10_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE10_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[10\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE10_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE10_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE10_AW) -> Self {
match variant {
RECEIVE10_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE10`"]
pub struct RECEIVE10_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE10_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE10_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE10_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[11\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE11_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE11_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE11_A) -> Self {
match variant {
RECEIVE11_A::DISABLED => false,
RECEIVE11_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE11`"]
pub type RECEIVE11_R = crate::R<bool, RECEIVE11_A>;
impl RECEIVE11_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE11_A {
match self.bits {
false => RECEIVE11_A::DISABLED,
true => RECEIVE11_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE11_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE11_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[11\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE11_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE11_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE11_AW) -> Self {
match variant {
RECEIVE11_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE11`"]
pub struct RECEIVE11_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE11_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE11_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE11_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[12\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE12_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE12_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE12_A) -> Self {
match variant {
RECEIVE12_A::DISABLED => false,
RECEIVE12_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE12`"]
pub type RECEIVE12_R = crate::R<bool, RECEIVE12_A>;
impl RECEIVE12_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE12_A {
match self.bits {
false => RECEIVE12_A::DISABLED,
true => RECEIVE12_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE12_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE12_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[12\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE12_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE12_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE12_AW) -> Self {
match variant {
RECEIVE12_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE12`"]
pub struct RECEIVE12_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE12_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE12_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE12_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[13\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE13_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE13_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE13_A) -> Self {
match variant {
RECEIVE13_A::DISABLED => false,
RECEIVE13_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE13`"]
pub type RECEIVE13_R = crate::R<bool, RECEIVE13_A>;
impl RECEIVE13_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE13_A {
match self.bits {
false => RECEIVE13_A::DISABLED,
true => RECEIVE13_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE13_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE13_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[13\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE13_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE13_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE13_AW) -> Self {
match variant {
RECEIVE13_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE13`"]
pub struct RECEIVE13_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE13_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE13_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE13_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[14\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE14_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE14_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE14_A) -> Self {
match variant {
RECEIVE14_A::DISABLED => false,
RECEIVE14_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE14`"]
pub type RECEIVE14_R = crate::R<bool, RECEIVE14_A>;
impl RECEIVE14_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE14_A {
match self.bits {
false => RECEIVE14_A::DISABLED,
true => RECEIVE14_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE14_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE14_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[14\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE14_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE14_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE14_AW) -> Self {
match variant {
RECEIVE14_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE14`"]
pub struct RECEIVE14_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE14_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE14_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE14_AW::SET)
}
#[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 = "Write '1' to enable interrupt for event RECEIVE\\[15\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE15_A {
#[doc = "0: Read: Disabled"]
DISABLED,
#[doc = "1: Read: Enabled"]
ENABLED,
}
impl From<RECEIVE15_A> for bool {
#[inline(always)]
fn from(variant: RECEIVE15_A) -> Self {
match variant {
RECEIVE15_A::DISABLED => false,
RECEIVE15_A::ENABLED => true,
}
}
}
#[doc = "Reader of field `RECEIVE15`"]
pub type RECEIVE15_R = crate::R<bool, RECEIVE15_A>;
impl RECEIVE15_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RECEIVE15_A {
match self.bits {
false => RECEIVE15_A::DISABLED,
true => RECEIVE15_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RECEIVE15_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RECEIVE15_A::ENABLED
}
}
#[doc = "Write '1' to enable interrupt for event RECEIVE\\[15\\]\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RECEIVE15_AW {
#[doc = "1: Enable"]
SET,
}
impl From<RECEIVE15_AW> for bool {
#[inline(always)]
fn from(variant: RECEIVE15_AW) -> Self {
match variant {
RECEIVE15_AW::SET => true,
}
}
}
#[doc = "Write proxy for field `RECEIVE15`"]
pub struct RECEIVE15_W<'a> {
w: &'a mut W,
}
impl<'a> RECEIVE15_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RECEIVE15_AW) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Enable"]
#[inline(always)]
pub fn set(self) -> &'a mut W {
self.variant(RECEIVE15_AW::SET)
}
#[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
}
}
impl R {
#[doc = "Bit 0 - Write '1' to enable interrupt for event RECEIVE\\[0\\]"]
#[inline(always)]
pub fn receive0(&self) -> RECEIVE0_R {
RECEIVE0_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Write '1' to enable interrupt for event RECEIVE\\[1\\]"]
#[inline(always)]
pub fn receive1(&self) -> RECEIVE1_R {
RECEIVE1_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Write '1' to enable interrupt for event RECEIVE\\[2\\]"]
#[inline(always)]
pub fn receive2(&self) -> RECEIVE2_R {
RECEIVE2_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Write '1' to enable interrupt for event RECEIVE\\[3\\]"]
#[inline(always)]
pub fn receive3(&self) -> RECEIVE3_R {
RECEIVE3_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Write '1' to enable interrupt for event RECEIVE\\[4\\]"]
#[inline(always)]
pub fn receive4(&self) -> RECEIVE4_R {
RECEIVE4_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Write '1' to enable interrupt for event RECEIVE\\[5\\]"]
#[inline(always)]
pub fn receive5(&self) -> RECEIVE5_R {
RECEIVE5_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - Write '1' to enable interrupt for event RECEIVE\\[6\\]"]
#[inline(always)]
pub fn receive6(&self) -> RECEIVE6_R {
RECEIVE6_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Write '1' to enable interrupt for event RECEIVE\\[7\\]"]
#[inline(always)]
pub fn receive7(&self) -> RECEIVE7_R {
RECEIVE7_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Write '1' to enable interrupt for event RECEIVE\\[8\\]"]
#[inline(always)]
pub fn receive8(&self) -> RECEIVE8_R {
RECEIVE8_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Write '1' to enable interrupt for event RECEIVE\\[9\\]"]
#[inline(always)]
pub fn receive9(&self) -> RECEIVE9_R {
RECEIVE9_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - Write '1' to enable interrupt for event RECEIVE\\[10\\]"]
#[inline(always)]
pub fn receive10(&self) -> RECEIVE10_R {
RECEIVE10_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - Write '1' to enable interrupt for event RECEIVE\\[11\\]"]
#[inline(always)]
pub fn receive11(&self) -> RECEIVE11_R {
RECEIVE11_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 12 - Write '1' to enable interrupt for event RECEIVE\\[12\\]"]
#[inline(always)]
pub fn receive12(&self) -> RECEIVE12_R {
RECEIVE12_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 13 - Write '1' to enable interrupt for event RECEIVE\\[13\\]"]
#[inline(always)]
pub fn receive13(&self) -> RECEIVE13_R {
RECEIVE13_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - Write '1' to enable interrupt for event RECEIVE\\[14\\]"]
#[inline(always)]
pub fn receive14(&self) -> RECEIVE14_R {
RECEIVE14_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - Write '1' to enable interrupt for event RECEIVE\\[15\\]"]
#[inline(always)]
pub fn receive15(&self) -> RECEIVE15_R {
RECEIVE15_R::new(((self.bits >> 15) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - Write '1' to enable interrupt for event RECEIVE\\[0\\]"]
#[inline(always)]
pub fn receive0(&mut self) -> RECEIVE0_W {
RECEIVE0_W { w: self }
}
#[doc = "Bit 1 - Write '1' to enable interrupt for event RECEIVE\\[1\\]"]
#[inline(always)]
pub fn receive1(&mut self) -> RECEIVE1_W {
RECEIVE1_W { w: self }
}
#[doc = "Bit 2 - Write '1' to enable interrupt for event RECEIVE\\[2\\]"]
#[inline(always)]
pub fn receive2(&mut self) -> RECEIVE2_W {
RECEIVE2_W { w: self }
}
#[doc = "Bit 3 - Write '1' to enable interrupt for event RECEIVE\\[3\\]"]
#[inline(always)]
pub fn receive3(&mut self) -> RECEIVE3_W {
RECEIVE3_W { w: self }
}
#[doc = "Bit 4 - Write '1' to enable interrupt for event RECEIVE\\[4\\]"]
#[inline(always)]
pub fn receive4(&mut self) -> RECEIVE4_W {
RECEIVE4_W { w: self }
}
#[doc = "Bit 5 - Write '1' to enable interrupt for event RECEIVE\\[5\\]"]
#[inline(always)]
pub fn receive5(&mut self) -> RECEIVE5_W {
RECEIVE5_W { w: self }
}
#[doc = "Bit 6 - Write '1' to enable interrupt for event RECEIVE\\[6\\]"]
#[inline(always)]
pub fn receive6(&mut self) -> RECEIVE6_W {
RECEIVE6_W { w: self }
}
#[doc = "Bit 7 - Write '1' to enable interrupt for event RECEIVE\\[7\\]"]
#[inline(always)]
pub fn receive7(&mut self) -> RECEIVE7_W {
RECEIVE7_W { w: self }
}
#[doc = "Bit 8 - Write '1' to enable interrupt for event RECEIVE\\[8\\]"]
#[inline(always)]
pub fn receive8(&mut self) -> RECEIVE8_W {
RECEIVE8_W { w: self }
}
#[doc = "Bit 9 - Write '1' to enable interrupt for event RECEIVE\\[9\\]"]
#[inline(always)]
pub fn receive9(&mut self) -> RECEIVE9_W {
RECEIVE9_W { w: self }
}
#[doc = "Bit 10 - Write '1' to enable interrupt for event RECEIVE\\[10\\]"]
#[inline(always)]
pub fn receive10(&mut self) -> RECEIVE10_W {
RECEIVE10_W { w: self }
}
#[doc = "Bit 11 - Write '1' to enable interrupt for event RECEIVE\\[11\\]"]
#[inline(always)]
pub fn receive11(&mut self) -> RECEIVE11_W {
RECEIVE11_W { w: self }
}
#[doc = "Bit 12 - Write '1' to enable interrupt for event RECEIVE\\[12\\]"]
#[inline(always)]
pub fn receive12(&mut self) -> RECEIVE12_W {
RECEIVE12_W { w: self }
}
#[doc = "Bit 13 - Write '1' to enable interrupt for event RECEIVE\\[13\\]"]
#[inline(always)]
pub fn receive13(&mut self) -> RECEIVE13_W {
RECEIVE13_W { w: self }
}
#[doc = "Bit 14 - Write '1' to enable interrupt for event RECEIVE\\[14\\]"]
#[inline(always)]
pub fn receive14(&mut self) -> RECEIVE14_W {
RECEIVE14_W { w: self }
}
#[doc = "Bit 15 - Write '1' to enable interrupt for event RECEIVE\\[15\\]"]
#[inline(always)]
pub fn receive15(&mut self) -> RECEIVE15_W {
RECEIVE15_W { w: self }
}
}