#[doc = "Register `EXTIPSELL` reader"]
pub struct R(crate::R<EXTIPSELL_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<EXTIPSELL_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<EXTIPSELL_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<EXTIPSELL_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `EXTIPSELL` writer"]
pub struct W(crate::W<EXTIPSELL_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<EXTIPSELL_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<EXTIPSELL_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<EXTIPSELL_SPEC>) -> Self {
W(writer)
}
}
#[doc = "External Interrupt Port Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum EXTIPSEL0_A {
#[doc = "0: Port A group selected"]
PORTA = 0,
#[doc = "1: Port B group selected"]
PORTB = 1,
#[doc = "2: Port C group selected"]
PORTC = 2,
#[doc = "3: Port D group selected"]
PORTD = 3,
}
impl From<EXTIPSEL0_A> for u8 {
#[inline(always)]
fn from(variant: EXTIPSEL0_A) -> Self {
variant as _
}
}
#[doc = "Field `EXTIPSEL0` reader - External Interrupt Port Select"]
pub type EXTIPSEL0_R = crate::FieldReader<u8, EXTIPSEL0_A>;
impl EXTIPSEL0_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EXTIPSEL0_A {
match self.bits {
0 => EXTIPSEL0_A::PORTA,
1 => EXTIPSEL0_A::PORTB,
2 => EXTIPSEL0_A::PORTC,
3 => EXTIPSEL0_A::PORTD,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `PORTA`"]
#[inline(always)]
pub fn is_porta(&self) -> bool {
*self == EXTIPSEL0_A::PORTA
}
#[doc = "Checks if the value of the field is `PORTB`"]
#[inline(always)]
pub fn is_portb(&self) -> bool {
*self == EXTIPSEL0_A::PORTB
}
#[doc = "Checks if the value of the field is `PORTC`"]
#[inline(always)]
pub fn is_portc(&self) -> bool {
*self == EXTIPSEL0_A::PORTC
}
#[doc = "Checks if the value of the field is `PORTD`"]
#[inline(always)]
pub fn is_portd(&self) -> bool {
*self == EXTIPSEL0_A::PORTD
}
}
#[doc = "Field `EXTIPSEL0` writer - External Interrupt Port Select"]
pub type EXTIPSEL0_W<'a> = crate::FieldWriterSafe<'a, u32, EXTIPSELL_SPEC, u8, EXTIPSEL0_A, 2, 0>;
impl<'a> EXTIPSEL0_W<'a> {
#[doc = "Port A group selected"]
#[inline(always)]
pub fn porta(self) -> &'a mut W {
self.variant(EXTIPSEL0_A::PORTA)
}
#[doc = "Port B group selected"]
#[inline(always)]
pub fn portb(self) -> &'a mut W {
self.variant(EXTIPSEL0_A::PORTB)
}
#[doc = "Port C group selected"]
#[inline(always)]
pub fn portc(self) -> &'a mut W {
self.variant(EXTIPSEL0_A::PORTC)
}
#[doc = "Port D group selected"]
#[inline(always)]
pub fn portd(self) -> &'a mut W {
self.variant(EXTIPSEL0_A::PORTD)
}
}
#[doc = "External Interrupt Port Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum EXTIPSEL1_A {
#[doc = "0: Port A group selected"]
PORTA = 0,
#[doc = "1: Port B group selected"]
PORTB = 1,
#[doc = "2: Port C group selected"]
PORTC = 2,
#[doc = "3: Port D group selected"]
PORTD = 3,
}
impl From<EXTIPSEL1_A> for u8 {
#[inline(always)]
fn from(variant: EXTIPSEL1_A) -> Self {
variant as _
}
}
#[doc = "Field `EXTIPSEL1` reader - External Interrupt Port Select"]
pub type EXTIPSEL1_R = crate::FieldReader<u8, EXTIPSEL1_A>;
impl EXTIPSEL1_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EXTIPSEL1_A {
match self.bits {
0 => EXTIPSEL1_A::PORTA,
1 => EXTIPSEL1_A::PORTB,
2 => EXTIPSEL1_A::PORTC,
3 => EXTIPSEL1_A::PORTD,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `PORTA`"]
#[inline(always)]
pub fn is_porta(&self) -> bool {
*self == EXTIPSEL1_A::PORTA
}
#[doc = "Checks if the value of the field is `PORTB`"]
#[inline(always)]
pub fn is_portb(&self) -> bool {
*self == EXTIPSEL1_A::PORTB
}
#[doc = "Checks if the value of the field is `PORTC`"]
#[inline(always)]
pub fn is_portc(&self) -> bool {
*self == EXTIPSEL1_A::PORTC
}
#[doc = "Checks if the value of the field is `PORTD`"]
#[inline(always)]
pub fn is_portd(&self) -> bool {
*self == EXTIPSEL1_A::PORTD
}
}
#[doc = "Field `EXTIPSEL1` writer - External Interrupt Port Select"]
pub type EXTIPSEL1_W<'a> = crate::FieldWriterSafe<'a, u32, EXTIPSELL_SPEC, u8, EXTIPSEL1_A, 2, 4>;
impl<'a> EXTIPSEL1_W<'a> {
#[doc = "Port A group selected"]
#[inline(always)]
pub fn porta(self) -> &'a mut W {
self.variant(EXTIPSEL1_A::PORTA)
}
#[doc = "Port B group selected"]
#[inline(always)]
pub fn portb(self) -> &'a mut W {
self.variant(EXTIPSEL1_A::PORTB)
}
#[doc = "Port C group selected"]
#[inline(always)]
pub fn portc(self) -> &'a mut W {
self.variant(EXTIPSEL1_A::PORTC)
}
#[doc = "Port D group selected"]
#[inline(always)]
pub fn portd(self) -> &'a mut W {
self.variant(EXTIPSEL1_A::PORTD)
}
}
#[doc = "External Interrupt Port Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum EXTIPSEL2_A {
#[doc = "0: Port A group selected"]
PORTA = 0,
#[doc = "1: Port B group selected"]
PORTB = 1,
#[doc = "2: Port C group selected"]
PORTC = 2,
#[doc = "3: Port D group selected"]
PORTD = 3,
}
impl From<EXTIPSEL2_A> for u8 {
#[inline(always)]
fn from(variant: EXTIPSEL2_A) -> Self {
variant as _
}
}
#[doc = "Field `EXTIPSEL2` reader - External Interrupt Port Select"]
pub type EXTIPSEL2_R = crate::FieldReader<u8, EXTIPSEL2_A>;
impl EXTIPSEL2_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EXTIPSEL2_A {
match self.bits {
0 => EXTIPSEL2_A::PORTA,
1 => EXTIPSEL2_A::PORTB,
2 => EXTIPSEL2_A::PORTC,
3 => EXTIPSEL2_A::PORTD,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `PORTA`"]
#[inline(always)]
pub fn is_porta(&self) -> bool {
*self == EXTIPSEL2_A::PORTA
}
#[doc = "Checks if the value of the field is `PORTB`"]
#[inline(always)]
pub fn is_portb(&self) -> bool {
*self == EXTIPSEL2_A::PORTB
}
#[doc = "Checks if the value of the field is `PORTC`"]
#[inline(always)]
pub fn is_portc(&self) -> bool {
*self == EXTIPSEL2_A::PORTC
}
#[doc = "Checks if the value of the field is `PORTD`"]
#[inline(always)]
pub fn is_portd(&self) -> bool {
*self == EXTIPSEL2_A::PORTD
}
}
#[doc = "Field `EXTIPSEL2` writer - External Interrupt Port Select"]
pub type EXTIPSEL2_W<'a> = crate::FieldWriterSafe<'a, u32, EXTIPSELL_SPEC, u8, EXTIPSEL2_A, 2, 8>;
impl<'a> EXTIPSEL2_W<'a> {
#[doc = "Port A group selected"]
#[inline(always)]
pub fn porta(self) -> &'a mut W {
self.variant(EXTIPSEL2_A::PORTA)
}
#[doc = "Port B group selected"]
#[inline(always)]
pub fn portb(self) -> &'a mut W {
self.variant(EXTIPSEL2_A::PORTB)
}
#[doc = "Port C group selected"]
#[inline(always)]
pub fn portc(self) -> &'a mut W {
self.variant(EXTIPSEL2_A::PORTC)
}
#[doc = "Port D group selected"]
#[inline(always)]
pub fn portd(self) -> &'a mut W {
self.variant(EXTIPSEL2_A::PORTD)
}
}
#[doc = "External Interrupt Port Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum EXTIPSEL3_A {
#[doc = "0: Port A group selected"]
PORTA = 0,
#[doc = "1: Port B group selected"]
PORTB = 1,
#[doc = "2: Port C group selected"]
PORTC = 2,
#[doc = "3: Port D group selected"]
PORTD = 3,
}
impl From<EXTIPSEL3_A> for u8 {
#[inline(always)]
fn from(variant: EXTIPSEL3_A) -> Self {
variant as _
}
}
#[doc = "Field `EXTIPSEL3` reader - External Interrupt Port Select"]
pub type EXTIPSEL3_R = crate::FieldReader<u8, EXTIPSEL3_A>;
impl EXTIPSEL3_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EXTIPSEL3_A {
match self.bits {
0 => EXTIPSEL3_A::PORTA,
1 => EXTIPSEL3_A::PORTB,
2 => EXTIPSEL3_A::PORTC,
3 => EXTIPSEL3_A::PORTD,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `PORTA`"]
#[inline(always)]
pub fn is_porta(&self) -> bool {
*self == EXTIPSEL3_A::PORTA
}
#[doc = "Checks if the value of the field is `PORTB`"]
#[inline(always)]
pub fn is_portb(&self) -> bool {
*self == EXTIPSEL3_A::PORTB
}
#[doc = "Checks if the value of the field is `PORTC`"]
#[inline(always)]
pub fn is_portc(&self) -> bool {
*self == EXTIPSEL3_A::PORTC
}
#[doc = "Checks if the value of the field is `PORTD`"]
#[inline(always)]
pub fn is_portd(&self) -> bool {
*self == EXTIPSEL3_A::PORTD
}
}
#[doc = "Field `EXTIPSEL3` writer - External Interrupt Port Select"]
pub type EXTIPSEL3_W<'a> = crate::FieldWriterSafe<'a, u32, EXTIPSELL_SPEC, u8, EXTIPSEL3_A, 2, 12>;
impl<'a> EXTIPSEL3_W<'a> {
#[doc = "Port A group selected"]
#[inline(always)]
pub fn porta(self) -> &'a mut W {
self.variant(EXTIPSEL3_A::PORTA)
}
#[doc = "Port B group selected"]
#[inline(always)]
pub fn portb(self) -> &'a mut W {
self.variant(EXTIPSEL3_A::PORTB)
}
#[doc = "Port C group selected"]
#[inline(always)]
pub fn portc(self) -> &'a mut W {
self.variant(EXTIPSEL3_A::PORTC)
}
#[doc = "Port D group selected"]
#[inline(always)]
pub fn portd(self) -> &'a mut W {
self.variant(EXTIPSEL3_A::PORTD)
}
}
#[doc = "External Interrupt Port Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum EXTIPSEL4_A {
#[doc = "0: Port A group selected"]
PORTA = 0,
#[doc = "1: Port B group selected"]
PORTB = 1,
#[doc = "2: Port C group selected"]
PORTC = 2,
#[doc = "3: Port D group selected"]
PORTD = 3,
}
impl From<EXTIPSEL4_A> for u8 {
#[inline(always)]
fn from(variant: EXTIPSEL4_A) -> Self {
variant as _
}
}
#[doc = "Field `EXTIPSEL4` reader - External Interrupt Port Select"]
pub type EXTIPSEL4_R = crate::FieldReader<u8, EXTIPSEL4_A>;
impl EXTIPSEL4_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EXTIPSEL4_A {
match self.bits {
0 => EXTIPSEL4_A::PORTA,
1 => EXTIPSEL4_A::PORTB,
2 => EXTIPSEL4_A::PORTC,
3 => EXTIPSEL4_A::PORTD,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `PORTA`"]
#[inline(always)]
pub fn is_porta(&self) -> bool {
*self == EXTIPSEL4_A::PORTA
}
#[doc = "Checks if the value of the field is `PORTB`"]
#[inline(always)]
pub fn is_portb(&self) -> bool {
*self == EXTIPSEL4_A::PORTB
}
#[doc = "Checks if the value of the field is `PORTC`"]
#[inline(always)]
pub fn is_portc(&self) -> bool {
*self == EXTIPSEL4_A::PORTC
}
#[doc = "Checks if the value of the field is `PORTD`"]
#[inline(always)]
pub fn is_portd(&self) -> bool {
*self == EXTIPSEL4_A::PORTD
}
}
#[doc = "Field `EXTIPSEL4` writer - External Interrupt Port Select"]
pub type EXTIPSEL4_W<'a> = crate::FieldWriterSafe<'a, u32, EXTIPSELL_SPEC, u8, EXTIPSEL4_A, 2, 16>;
impl<'a> EXTIPSEL4_W<'a> {
#[doc = "Port A group selected"]
#[inline(always)]
pub fn porta(self) -> &'a mut W {
self.variant(EXTIPSEL4_A::PORTA)
}
#[doc = "Port B group selected"]
#[inline(always)]
pub fn portb(self) -> &'a mut W {
self.variant(EXTIPSEL4_A::PORTB)
}
#[doc = "Port C group selected"]
#[inline(always)]
pub fn portc(self) -> &'a mut W {
self.variant(EXTIPSEL4_A::PORTC)
}
#[doc = "Port D group selected"]
#[inline(always)]
pub fn portd(self) -> &'a mut W {
self.variant(EXTIPSEL4_A::PORTD)
}
}
#[doc = "External Interrupt Port Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum EXTIPSEL5_A {
#[doc = "0: Port A group selected"]
PORTA = 0,
#[doc = "1: Port B group selected"]
PORTB = 1,
#[doc = "2: Port C group selected"]
PORTC = 2,
#[doc = "3: Port D group selected"]
PORTD = 3,
}
impl From<EXTIPSEL5_A> for u8 {
#[inline(always)]
fn from(variant: EXTIPSEL5_A) -> Self {
variant as _
}
}
#[doc = "Field `EXTIPSEL5` reader - External Interrupt Port Select"]
pub type EXTIPSEL5_R = crate::FieldReader<u8, EXTIPSEL5_A>;
impl EXTIPSEL5_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EXTIPSEL5_A {
match self.bits {
0 => EXTIPSEL5_A::PORTA,
1 => EXTIPSEL5_A::PORTB,
2 => EXTIPSEL5_A::PORTC,
3 => EXTIPSEL5_A::PORTD,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `PORTA`"]
#[inline(always)]
pub fn is_porta(&self) -> bool {
*self == EXTIPSEL5_A::PORTA
}
#[doc = "Checks if the value of the field is `PORTB`"]
#[inline(always)]
pub fn is_portb(&self) -> bool {
*self == EXTIPSEL5_A::PORTB
}
#[doc = "Checks if the value of the field is `PORTC`"]
#[inline(always)]
pub fn is_portc(&self) -> bool {
*self == EXTIPSEL5_A::PORTC
}
#[doc = "Checks if the value of the field is `PORTD`"]
#[inline(always)]
pub fn is_portd(&self) -> bool {
*self == EXTIPSEL5_A::PORTD
}
}
#[doc = "Field `EXTIPSEL5` writer - External Interrupt Port Select"]
pub type EXTIPSEL5_W<'a> = crate::FieldWriterSafe<'a, u32, EXTIPSELL_SPEC, u8, EXTIPSEL5_A, 2, 20>;
impl<'a> EXTIPSEL5_W<'a> {
#[doc = "Port A group selected"]
#[inline(always)]
pub fn porta(self) -> &'a mut W {
self.variant(EXTIPSEL5_A::PORTA)
}
#[doc = "Port B group selected"]
#[inline(always)]
pub fn portb(self) -> &'a mut W {
self.variant(EXTIPSEL5_A::PORTB)
}
#[doc = "Port C group selected"]
#[inline(always)]
pub fn portc(self) -> &'a mut W {
self.variant(EXTIPSEL5_A::PORTC)
}
#[doc = "Port D group selected"]
#[inline(always)]
pub fn portd(self) -> &'a mut W {
self.variant(EXTIPSEL5_A::PORTD)
}
}
#[doc = "External Interrupt Port Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum EXTIPSEL6_A {
#[doc = "0: Port A group selected"]
PORTA = 0,
#[doc = "1: Port B group selected"]
PORTB = 1,
#[doc = "2: Port C group selected"]
PORTC = 2,
#[doc = "3: Port D group selected"]
PORTD = 3,
}
impl From<EXTIPSEL6_A> for u8 {
#[inline(always)]
fn from(variant: EXTIPSEL6_A) -> Self {
variant as _
}
}
#[doc = "Field `EXTIPSEL6` reader - External Interrupt Port Select"]
pub type EXTIPSEL6_R = crate::FieldReader<u8, EXTIPSEL6_A>;
impl EXTIPSEL6_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EXTIPSEL6_A {
match self.bits {
0 => EXTIPSEL6_A::PORTA,
1 => EXTIPSEL6_A::PORTB,
2 => EXTIPSEL6_A::PORTC,
3 => EXTIPSEL6_A::PORTD,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `PORTA`"]
#[inline(always)]
pub fn is_porta(&self) -> bool {
*self == EXTIPSEL6_A::PORTA
}
#[doc = "Checks if the value of the field is `PORTB`"]
#[inline(always)]
pub fn is_portb(&self) -> bool {
*self == EXTIPSEL6_A::PORTB
}
#[doc = "Checks if the value of the field is `PORTC`"]
#[inline(always)]
pub fn is_portc(&self) -> bool {
*self == EXTIPSEL6_A::PORTC
}
#[doc = "Checks if the value of the field is `PORTD`"]
#[inline(always)]
pub fn is_portd(&self) -> bool {
*self == EXTIPSEL6_A::PORTD
}
}
#[doc = "Field `EXTIPSEL6` writer - External Interrupt Port Select"]
pub type EXTIPSEL6_W<'a> = crate::FieldWriterSafe<'a, u32, EXTIPSELL_SPEC, u8, EXTIPSEL6_A, 2, 24>;
impl<'a> EXTIPSEL6_W<'a> {
#[doc = "Port A group selected"]
#[inline(always)]
pub fn porta(self) -> &'a mut W {
self.variant(EXTIPSEL6_A::PORTA)
}
#[doc = "Port B group selected"]
#[inline(always)]
pub fn portb(self) -> &'a mut W {
self.variant(EXTIPSEL6_A::PORTB)
}
#[doc = "Port C group selected"]
#[inline(always)]
pub fn portc(self) -> &'a mut W {
self.variant(EXTIPSEL6_A::PORTC)
}
#[doc = "Port D group selected"]
#[inline(always)]
pub fn portd(self) -> &'a mut W {
self.variant(EXTIPSEL6_A::PORTD)
}
}
#[doc = "External Interrupt Port Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum EXTIPSEL7_A {
#[doc = "0: Port A group selected"]
PORTA = 0,
#[doc = "1: Port B group selected"]
PORTB = 1,
#[doc = "2: Port C group selected"]
PORTC = 2,
#[doc = "3: Port D group selected"]
PORTD = 3,
}
impl From<EXTIPSEL7_A> for u8 {
#[inline(always)]
fn from(variant: EXTIPSEL7_A) -> Self {
variant as _
}
}
#[doc = "Field `EXTIPSEL7` reader - External Interrupt Port Select"]
pub type EXTIPSEL7_R = crate::FieldReader<u8, EXTIPSEL7_A>;
impl EXTIPSEL7_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EXTIPSEL7_A {
match self.bits {
0 => EXTIPSEL7_A::PORTA,
1 => EXTIPSEL7_A::PORTB,
2 => EXTIPSEL7_A::PORTC,
3 => EXTIPSEL7_A::PORTD,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `PORTA`"]
#[inline(always)]
pub fn is_porta(&self) -> bool {
*self == EXTIPSEL7_A::PORTA
}
#[doc = "Checks if the value of the field is `PORTB`"]
#[inline(always)]
pub fn is_portb(&self) -> bool {
*self == EXTIPSEL7_A::PORTB
}
#[doc = "Checks if the value of the field is `PORTC`"]
#[inline(always)]
pub fn is_portc(&self) -> bool {
*self == EXTIPSEL7_A::PORTC
}
#[doc = "Checks if the value of the field is `PORTD`"]
#[inline(always)]
pub fn is_portd(&self) -> bool {
*self == EXTIPSEL7_A::PORTD
}
}
#[doc = "Field `EXTIPSEL7` writer - External Interrupt Port Select"]
pub type EXTIPSEL7_W<'a> = crate::FieldWriterSafe<'a, u32, EXTIPSELL_SPEC, u8, EXTIPSEL7_A, 2, 28>;
impl<'a> EXTIPSEL7_W<'a> {
#[doc = "Port A group selected"]
#[inline(always)]
pub fn porta(self) -> &'a mut W {
self.variant(EXTIPSEL7_A::PORTA)
}
#[doc = "Port B group selected"]
#[inline(always)]
pub fn portb(self) -> &'a mut W {
self.variant(EXTIPSEL7_A::PORTB)
}
#[doc = "Port C group selected"]
#[inline(always)]
pub fn portc(self) -> &'a mut W {
self.variant(EXTIPSEL7_A::PORTC)
}
#[doc = "Port D group selected"]
#[inline(always)]
pub fn portd(self) -> &'a mut W {
self.variant(EXTIPSEL7_A::PORTD)
}
}
impl R {
#[doc = "Bits 0:1 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel0(&self) -> EXTIPSEL0_R {
EXTIPSEL0_R::new((self.bits & 3) as u8)
}
#[doc = "Bits 4:5 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel1(&self) -> EXTIPSEL1_R {
EXTIPSEL1_R::new(((self.bits >> 4) & 3) as u8)
}
#[doc = "Bits 8:9 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel2(&self) -> EXTIPSEL2_R {
EXTIPSEL2_R::new(((self.bits >> 8) & 3) as u8)
}
#[doc = "Bits 12:13 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel3(&self) -> EXTIPSEL3_R {
EXTIPSEL3_R::new(((self.bits >> 12) & 3) as u8)
}
#[doc = "Bits 16:17 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel4(&self) -> EXTIPSEL4_R {
EXTIPSEL4_R::new(((self.bits >> 16) & 3) as u8)
}
#[doc = "Bits 20:21 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel5(&self) -> EXTIPSEL5_R {
EXTIPSEL5_R::new(((self.bits >> 20) & 3) as u8)
}
#[doc = "Bits 24:25 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel6(&self) -> EXTIPSEL6_R {
EXTIPSEL6_R::new(((self.bits >> 24) & 3) as u8)
}
#[doc = "Bits 28:29 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel7(&self) -> EXTIPSEL7_R {
EXTIPSEL7_R::new(((self.bits >> 28) & 3) as u8)
}
}
impl W {
#[doc = "Bits 0:1 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel0(&mut self) -> EXTIPSEL0_W {
EXTIPSEL0_W::new(self)
}
#[doc = "Bits 4:5 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel1(&mut self) -> EXTIPSEL1_W {
EXTIPSEL1_W::new(self)
}
#[doc = "Bits 8:9 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel2(&mut self) -> EXTIPSEL2_W {
EXTIPSEL2_W::new(self)
}
#[doc = "Bits 12:13 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel3(&mut self) -> EXTIPSEL3_W {
EXTIPSEL3_W::new(self)
}
#[doc = "Bits 16:17 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel4(&mut self) -> EXTIPSEL4_W {
EXTIPSEL4_W::new(self)
}
#[doc = "Bits 20:21 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel5(&mut self) -> EXTIPSEL5_W {
EXTIPSEL5_W::new(self)
}
#[doc = "Bits 24:25 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel6(&mut self) -> EXTIPSEL6_W {
EXTIPSEL6_W::new(self)
}
#[doc = "Bits 28:29 - External Interrupt Port Select"]
#[inline(always)]
pub fn extipsel7(&mut self) -> EXTIPSEL7_W {
EXTIPSEL7_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "External Interrupt Port Select Low\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [extipsell](index.html) module"]
pub struct EXTIPSELL_SPEC;
impl crate::RegisterSpec for EXTIPSELL_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [extipsell::R](R) reader structure"]
impl crate::Readable for EXTIPSELL_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [extipsell::W](W) writer structure"]
impl crate::Writable for EXTIPSELL_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets EXTIPSELL to value 0"]
impl crate::Resettable for EXTIPSELL_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}