#[doc = "Reader of register RTSR1"]
pub type R = crate::R<u32, super::RTSR1>;
#[doc = "Writer for register RTSR1"]
pub type W = crate::W<u32, super::RTSR1>;
#[doc = "Register RTSR1 `reset()`'s with value 0"]
impl crate::ResetValue for super::RTSR1 {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Rising trigger event configuration of line 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RT0_A {
#[doc = "0: Rising edge trigger is disabled"]
DISABLED = 0,
#[doc = "1: Rising edge trigger is enabled"]
ENABLED = 1,
}
impl From<RT0_A> for bool {
#[inline(always)]
fn from(variant: RT0_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `RT0`"]
pub type RT0_R = crate::R<bool, RT0_A>;
impl RT0_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RT0_A {
match self.bits {
false => RT0_A::DISABLED,
true => RT0_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RT0_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RT0_A::ENABLED
}
}
#[doc = "Write proxy for field `RT0`"]
pub struct RT0_W<'a> {
w: &'a mut W,
}
impl<'a> RT0_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT0_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 1"]
pub type RT1_A = RT0_A;
#[doc = "Reader of field `RT1`"]
pub type RT1_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT1`"]
pub struct RT1_W<'a> {
w: &'a mut W,
}
impl<'a> RT1_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT1_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 2"]
pub type RT2_A = RT0_A;
#[doc = "Reader of field `RT2`"]
pub type RT2_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT2`"]
pub struct RT2_W<'a> {
w: &'a mut W,
}
impl<'a> RT2_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT2_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 3"]
pub type RT3_A = RT0_A;
#[doc = "Reader of field `RT3`"]
pub type RT3_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT3`"]
pub struct RT3_W<'a> {
w: &'a mut W,
}
impl<'a> RT3_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT3_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 4"]
pub type RT4_A = RT0_A;
#[doc = "Reader of field `RT4`"]
pub type RT4_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT4`"]
pub struct RT4_W<'a> {
w: &'a mut W,
}
impl<'a> RT4_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT4_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 5"]
pub type RT5_A = RT0_A;
#[doc = "Reader of field `RT5`"]
pub type RT5_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT5`"]
pub struct RT5_W<'a> {
w: &'a mut W,
}
impl<'a> RT5_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT5_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 6"]
pub type RT6_A = RT0_A;
#[doc = "Reader of field `RT6`"]
pub type RT6_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT6`"]
pub struct RT6_W<'a> {
w: &'a mut W,
}
impl<'a> RT6_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT6_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 7"]
pub type RT7_A = RT0_A;
#[doc = "Reader of field `RT7`"]
pub type RT7_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT7`"]
pub struct RT7_W<'a> {
w: &'a mut W,
}
impl<'a> RT7_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT7_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 8"]
pub type RT8_A = RT0_A;
#[doc = "Reader of field `RT8`"]
pub type RT8_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT8`"]
pub struct RT8_W<'a> {
w: &'a mut W,
}
impl<'a> RT8_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT8_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 9"]
pub type RT9_A = RT0_A;
#[doc = "Reader of field `RT9`"]
pub type RT9_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT9`"]
pub struct RT9_W<'a> {
w: &'a mut W,
}
impl<'a> RT9_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT9_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 10"]
pub type RT10_A = RT0_A;
#[doc = "Reader of field `RT10`"]
pub type RT10_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT10`"]
pub struct RT10_W<'a> {
w: &'a mut W,
}
impl<'a> RT10_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT10_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 11"]
pub type RT11_A = RT0_A;
#[doc = "Reader of field `RT11`"]
pub type RT11_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT11`"]
pub struct RT11_W<'a> {
w: &'a mut W,
}
impl<'a> RT11_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT11_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 12"]
pub type RT12_A = RT0_A;
#[doc = "Reader of field `RT12`"]
pub type RT12_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT12`"]
pub struct RT12_W<'a> {
w: &'a mut W,
}
impl<'a> RT12_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT12_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 13"]
pub type RT13_A = RT0_A;
#[doc = "Reader of field `RT13`"]
pub type RT13_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT13`"]
pub struct RT13_W<'a> {
w: &'a mut W,
}
impl<'a> RT13_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT13_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 14"]
pub type RT14_A = RT0_A;
#[doc = "Reader of field `RT14`"]
pub type RT14_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT14`"]
pub struct RT14_W<'a> {
w: &'a mut W,
}
impl<'a> RT14_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT14_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 15"]
pub type RT15_A = RT0_A;
#[doc = "Reader of field `RT15`"]
pub type RT15_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT15`"]
pub struct RT15_W<'a> {
w: &'a mut W,
}
impl<'a> RT15_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT15_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 16"]
pub type RT16_A = RT0_A;
#[doc = "Reader of field `RT16`"]
pub type RT16_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT16`"]
pub struct RT16_W<'a> {
w: &'a mut W,
}
impl<'a> RT16_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT16_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 19"]
pub type RT19_A = RT0_A;
#[doc = "Reader of field `RT19`"]
pub type RT19_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT19`"]
pub struct RT19_W<'a> {
w: &'a mut W,
}
impl<'a> RT19_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT19_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 20"]
pub type RT20_A = RT0_A;
#[doc = "Reader of field `RT20`"]
pub type RT20_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT20`"]
pub struct RT20_W<'a> {
w: &'a mut W,
}
impl<'a> RT20_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT20_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 21"]
pub type RT21_A = RT0_A;
#[doc = "Reader of field `RT21`"]
pub type RT21_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT21`"]
pub struct RT21_W<'a> {
w: &'a mut W,
}
impl<'a> RT21_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT21_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 22"]
pub type RT22_A = RT0_A;
#[doc = "Reader of field `RT22`"]
pub type RT22_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT22`"]
pub struct RT22_W<'a> {
w: &'a mut W,
}
impl<'a> RT22_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT22_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 29"]
pub type RT29_A = RT0_A;
#[doc = "Reader of field `RT29`"]
pub type RT29_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT29`"]
pub struct RT29_W<'a> {
w: &'a mut W,
}
impl<'a> RT29_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT29_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 17"]
pub type RT17_A = RT0_A;
#[doc = "Reader of field `RT17`"]
pub type RT17_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT17`"]
pub struct RT17_W<'a> {
w: &'a mut W,
}
impl<'a> RT17_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT17_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 30"]
pub type RT30_A = RT0_A;
#[doc = "Reader of field `RT30`"]
pub type RT30_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT30`"]
pub struct RT30_W<'a> {
w: &'a mut W,
}
impl<'a> RT30_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT30_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 = "Rising trigger event configuration of line 31"]
pub type RT31_A = RT0_A;
#[doc = "Reader of field `RT31`"]
pub type RT31_R = crate::R<bool, RT0_A>;
#[doc = "Write proxy for field `RT31`"]
pub struct RT31_W<'a> {
w: &'a mut W,
}
impl<'a> RT31_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RT31_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Rising edge trigger is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RT0_A::DISABLED)
}
#[doc = "Rising edge trigger is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RT0_A::ENABLED)
}
#[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 - Rising trigger event configuration of line 0"]
#[inline(always)]
pub fn rt0(&self) -> RT0_R {
RT0_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Rising trigger event configuration of line 1"]
#[inline(always)]
pub fn rt1(&self) -> RT1_R {
RT1_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Rising trigger event configuration of line 2"]
#[inline(always)]
pub fn rt2(&self) -> RT2_R {
RT2_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Rising trigger event configuration of line 3"]
#[inline(always)]
pub fn rt3(&self) -> RT3_R {
RT3_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Rising trigger event configuration of line 4"]
#[inline(always)]
pub fn rt4(&self) -> RT4_R {
RT4_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Rising trigger event configuration of line 5"]
#[inline(always)]
pub fn rt5(&self) -> RT5_R {
RT5_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - Rising trigger event configuration of line 6"]
#[inline(always)]
pub fn rt6(&self) -> RT6_R {
RT6_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Rising trigger event configuration of line 7"]
#[inline(always)]
pub fn rt7(&self) -> RT7_R {
RT7_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Rising trigger event configuration of line 8"]
#[inline(always)]
pub fn rt8(&self) -> RT8_R {
RT8_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Rising trigger event configuration of line 9"]
#[inline(always)]
pub fn rt9(&self) -> RT9_R {
RT9_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - Rising trigger event configuration of line 10"]
#[inline(always)]
pub fn rt10(&self) -> RT10_R {
RT10_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - Rising trigger event configuration of line 11"]
#[inline(always)]
pub fn rt11(&self) -> RT11_R {
RT11_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 12 - Rising trigger event configuration of line 12"]
#[inline(always)]
pub fn rt12(&self) -> RT12_R {
RT12_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 13 - Rising trigger event configuration of line 13"]
#[inline(always)]
pub fn rt13(&self) -> RT13_R {
RT13_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - Rising trigger event configuration of line 14"]
#[inline(always)]
pub fn rt14(&self) -> RT14_R {
RT14_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - Rising trigger event configuration of line 15"]
#[inline(always)]
pub fn rt15(&self) -> RT15_R {
RT15_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 16 - Rising trigger event configuration of line 16"]
#[inline(always)]
pub fn rt16(&self) -> RT16_R {
RT16_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 19 - Rising trigger event configuration of line 19"]
#[inline(always)]
pub fn rt19(&self) -> RT19_R {
RT19_R::new(((self.bits >> 19) & 0x01) != 0)
}
#[doc = "Bit 20 - Rising trigger event configuration of line 20"]
#[inline(always)]
pub fn rt20(&self) -> RT20_R {
RT20_R::new(((self.bits >> 20) & 0x01) != 0)
}
#[doc = "Bit 21 - Rising trigger event configuration of line 21"]
#[inline(always)]
pub fn rt21(&self) -> RT21_R {
RT21_R::new(((self.bits >> 21) & 0x01) != 0)
}
#[doc = "Bit 22 - Rising trigger event configuration of line 22"]
#[inline(always)]
pub fn rt22(&self) -> RT22_R {
RT22_R::new(((self.bits >> 22) & 0x01) != 0)
}
#[doc = "Bit 29 - Rising trigger event configuration of line 29"]
#[inline(always)]
pub fn rt29(&self) -> RT29_R {
RT29_R::new(((self.bits >> 29) & 0x01) != 0)
}
#[doc = "Bit 17 - Rising trigger event configuration of line 17"]
#[inline(always)]
pub fn rt17(&self) -> RT17_R {
RT17_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 30 - Rising trigger event configuration of line 30"]
#[inline(always)]
pub fn rt30(&self) -> RT30_R {
RT30_R::new(((self.bits >> 30) & 0x01) != 0)
}
#[doc = "Bit 31 - Rising trigger event configuration of line 31"]
#[inline(always)]
pub fn rt31(&self) -> RT31_R {
RT31_R::new(((self.bits >> 31) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - Rising trigger event configuration of line 0"]
#[inline(always)]
pub fn rt0(&mut self) -> RT0_W {
RT0_W { w: self }
}
#[doc = "Bit 1 - Rising trigger event configuration of line 1"]
#[inline(always)]
pub fn rt1(&mut self) -> RT1_W {
RT1_W { w: self }
}
#[doc = "Bit 2 - Rising trigger event configuration of line 2"]
#[inline(always)]
pub fn rt2(&mut self) -> RT2_W {
RT2_W { w: self }
}
#[doc = "Bit 3 - Rising trigger event configuration of line 3"]
#[inline(always)]
pub fn rt3(&mut self) -> RT3_W {
RT3_W { w: self }
}
#[doc = "Bit 4 - Rising trigger event configuration of line 4"]
#[inline(always)]
pub fn rt4(&mut self) -> RT4_W {
RT4_W { w: self }
}
#[doc = "Bit 5 - Rising trigger event configuration of line 5"]
#[inline(always)]
pub fn rt5(&mut self) -> RT5_W {
RT5_W { w: self }
}
#[doc = "Bit 6 - Rising trigger event configuration of line 6"]
#[inline(always)]
pub fn rt6(&mut self) -> RT6_W {
RT6_W { w: self }
}
#[doc = "Bit 7 - Rising trigger event configuration of line 7"]
#[inline(always)]
pub fn rt7(&mut self) -> RT7_W {
RT7_W { w: self }
}
#[doc = "Bit 8 - Rising trigger event configuration of line 8"]
#[inline(always)]
pub fn rt8(&mut self) -> RT8_W {
RT8_W { w: self }
}
#[doc = "Bit 9 - Rising trigger event configuration of line 9"]
#[inline(always)]
pub fn rt9(&mut self) -> RT9_W {
RT9_W { w: self }
}
#[doc = "Bit 10 - Rising trigger event configuration of line 10"]
#[inline(always)]
pub fn rt10(&mut self) -> RT10_W {
RT10_W { w: self }
}
#[doc = "Bit 11 - Rising trigger event configuration of line 11"]
#[inline(always)]
pub fn rt11(&mut self) -> RT11_W {
RT11_W { w: self }
}
#[doc = "Bit 12 - Rising trigger event configuration of line 12"]
#[inline(always)]
pub fn rt12(&mut self) -> RT12_W {
RT12_W { w: self }
}
#[doc = "Bit 13 - Rising trigger event configuration of line 13"]
#[inline(always)]
pub fn rt13(&mut self) -> RT13_W {
RT13_W { w: self }
}
#[doc = "Bit 14 - Rising trigger event configuration of line 14"]
#[inline(always)]
pub fn rt14(&mut self) -> RT14_W {
RT14_W { w: self }
}
#[doc = "Bit 15 - Rising trigger event configuration of line 15"]
#[inline(always)]
pub fn rt15(&mut self) -> RT15_W {
RT15_W { w: self }
}
#[doc = "Bit 16 - Rising trigger event configuration of line 16"]
#[inline(always)]
pub fn rt16(&mut self) -> RT16_W {
RT16_W { w: self }
}
#[doc = "Bit 19 - Rising trigger event configuration of line 19"]
#[inline(always)]
pub fn rt19(&mut self) -> RT19_W {
RT19_W { w: self }
}
#[doc = "Bit 20 - Rising trigger event configuration of line 20"]
#[inline(always)]
pub fn rt20(&mut self) -> RT20_W {
RT20_W { w: self }
}
#[doc = "Bit 21 - Rising trigger event configuration of line 21"]
#[inline(always)]
pub fn rt21(&mut self) -> RT21_W {
RT21_W { w: self }
}
#[doc = "Bit 22 - Rising trigger event configuration of line 22"]
#[inline(always)]
pub fn rt22(&mut self) -> RT22_W {
RT22_W { w: self }
}
#[doc = "Bit 29 - Rising trigger event configuration of line 29"]
#[inline(always)]
pub fn rt29(&mut self) -> RT29_W {
RT29_W { w: self }
}
#[doc = "Bit 17 - Rising trigger event configuration of line 17"]
#[inline(always)]
pub fn rt17(&mut self) -> RT17_W {
RT17_W { w: self }
}
#[doc = "Bit 30 - Rising trigger event configuration of line 30"]
#[inline(always)]
pub fn rt30(&mut self) -> RT30_W {
RT30_W { w: self }
}
#[doc = "Bit 31 - Rising trigger event configuration of line 31"]
#[inline(always)]
pub fn rt31(&mut self) -> RT31_W {
RT31_W { w: self }
}
}