#[doc = "Register `PMSRC` reader"]
pub struct R(crate::R<PMSRC_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<PMSRC_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<PMSRC_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<PMSRC_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `PMSRC` writer"]
pub struct W(crate::W<PMSRC_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<PMSRC_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<PMSRC_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<PMSRC_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `SRC0` reader - Selects the input source for bit slice 0"]
pub type SRC0_R = crate::FieldReader<u8, SRC0_A>;
#[doc = "Selects the input source for bit slice 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SRC0_A {
#[doc = "0: Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
INPUT0 = 0,
#[doc = "1: Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
INPUT1 = 1,
#[doc = "2: Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
INPUT2 = 2,
#[doc = "3: Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
INPUT3 = 3,
#[doc = "4: Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
INPUT4 = 4,
#[doc = "5: Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
INPUT5 = 5,
#[doc = "6: Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
INPUT6 = 6,
#[doc = "7: Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
INPUT7 = 7,
}
impl From<SRC0_A> for u8 {
#[inline(always)]
fn from(variant: SRC0_A) -> Self {
variant as _
}
}
impl SRC0_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SRC0_A {
match self.bits {
0 => SRC0_A::INPUT0,
1 => SRC0_A::INPUT1,
2 => SRC0_A::INPUT2,
3 => SRC0_A::INPUT3,
4 => SRC0_A::INPUT4,
5 => SRC0_A::INPUT5,
6 => SRC0_A::INPUT6,
7 => SRC0_A::INPUT7,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `INPUT0`"]
#[inline(always)]
pub fn is_input0(&self) -> bool {
*self == SRC0_A::INPUT0
}
#[doc = "Checks if the value of the field is `INPUT1`"]
#[inline(always)]
pub fn is_input1(&self) -> bool {
*self == SRC0_A::INPUT1
}
#[doc = "Checks if the value of the field is `INPUT2`"]
#[inline(always)]
pub fn is_input2(&self) -> bool {
*self == SRC0_A::INPUT2
}
#[doc = "Checks if the value of the field is `INPUT3`"]
#[inline(always)]
pub fn is_input3(&self) -> bool {
*self == SRC0_A::INPUT3
}
#[doc = "Checks if the value of the field is `INPUT4`"]
#[inline(always)]
pub fn is_input4(&self) -> bool {
*self == SRC0_A::INPUT4
}
#[doc = "Checks if the value of the field is `INPUT5`"]
#[inline(always)]
pub fn is_input5(&self) -> bool {
*self == SRC0_A::INPUT5
}
#[doc = "Checks if the value of the field is `INPUT6`"]
#[inline(always)]
pub fn is_input6(&self) -> bool {
*self == SRC0_A::INPUT6
}
#[doc = "Checks if the value of the field is `INPUT7`"]
#[inline(always)]
pub fn is_input7(&self) -> bool {
*self == SRC0_A::INPUT7
}
}
#[doc = "Field `SRC0` writer - Selects the input source for bit slice 0"]
pub type SRC0_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC0_A, 3, O>;
impl<'a, const O: u8> SRC0_W<'a, O> {
#[doc = "Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
#[inline(always)]
pub fn input0(self) -> &'a mut W {
self.variant(SRC0_A::INPUT0)
}
#[doc = "Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
#[inline(always)]
pub fn input1(self) -> &'a mut W {
self.variant(SRC0_A::INPUT1)
}
#[doc = "Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
#[inline(always)]
pub fn input2(self) -> &'a mut W {
self.variant(SRC0_A::INPUT2)
}
#[doc = "Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
#[inline(always)]
pub fn input3(self) -> &'a mut W {
self.variant(SRC0_A::INPUT3)
}
#[doc = "Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
#[inline(always)]
pub fn input4(self) -> &'a mut W {
self.variant(SRC0_A::INPUT4)
}
#[doc = "Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
#[inline(always)]
pub fn input5(self) -> &'a mut W {
self.variant(SRC0_A::INPUT5)
}
#[doc = "Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
#[inline(always)]
pub fn input6(self) -> &'a mut W {
self.variant(SRC0_A::INPUT6)
}
#[doc = "Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
#[inline(always)]
pub fn input7(self) -> &'a mut W {
self.variant(SRC0_A::INPUT7)
}
}
#[doc = "Field `SRC1` reader - Selects the input source for bit slice 1"]
pub type SRC1_R = crate::FieldReader<u8, SRC1_A>;
#[doc = "Selects the input source for bit slice 1\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SRC1_A {
#[doc = "0: Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
INPUT0 = 0,
#[doc = "1: Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
INPUT1 = 1,
#[doc = "2: Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
INPUT2 = 2,
#[doc = "3: Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
INPUT3 = 3,
#[doc = "4: Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
INPUT4 = 4,
#[doc = "5: Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
INPUT5 = 5,
#[doc = "6: Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
INPUT6 = 6,
#[doc = "7: Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
INPUT7 = 7,
}
impl From<SRC1_A> for u8 {
#[inline(always)]
fn from(variant: SRC1_A) -> Self {
variant as _
}
}
impl SRC1_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SRC1_A {
match self.bits {
0 => SRC1_A::INPUT0,
1 => SRC1_A::INPUT1,
2 => SRC1_A::INPUT2,
3 => SRC1_A::INPUT3,
4 => SRC1_A::INPUT4,
5 => SRC1_A::INPUT5,
6 => SRC1_A::INPUT6,
7 => SRC1_A::INPUT7,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `INPUT0`"]
#[inline(always)]
pub fn is_input0(&self) -> bool {
*self == SRC1_A::INPUT0
}
#[doc = "Checks if the value of the field is `INPUT1`"]
#[inline(always)]
pub fn is_input1(&self) -> bool {
*self == SRC1_A::INPUT1
}
#[doc = "Checks if the value of the field is `INPUT2`"]
#[inline(always)]
pub fn is_input2(&self) -> bool {
*self == SRC1_A::INPUT2
}
#[doc = "Checks if the value of the field is `INPUT3`"]
#[inline(always)]
pub fn is_input3(&self) -> bool {
*self == SRC1_A::INPUT3
}
#[doc = "Checks if the value of the field is `INPUT4`"]
#[inline(always)]
pub fn is_input4(&self) -> bool {
*self == SRC1_A::INPUT4
}
#[doc = "Checks if the value of the field is `INPUT5`"]
#[inline(always)]
pub fn is_input5(&self) -> bool {
*self == SRC1_A::INPUT5
}
#[doc = "Checks if the value of the field is `INPUT6`"]
#[inline(always)]
pub fn is_input6(&self) -> bool {
*self == SRC1_A::INPUT6
}
#[doc = "Checks if the value of the field is `INPUT7`"]
#[inline(always)]
pub fn is_input7(&self) -> bool {
*self == SRC1_A::INPUT7
}
}
#[doc = "Field `SRC1` writer - Selects the input source for bit slice 1"]
pub type SRC1_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC1_A, 3, O>;
impl<'a, const O: u8> SRC1_W<'a, O> {
#[doc = "Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
#[inline(always)]
pub fn input0(self) -> &'a mut W {
self.variant(SRC1_A::INPUT0)
}
#[doc = "Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
#[inline(always)]
pub fn input1(self) -> &'a mut W {
self.variant(SRC1_A::INPUT1)
}
#[doc = "Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
#[inline(always)]
pub fn input2(self) -> &'a mut W {
self.variant(SRC1_A::INPUT2)
}
#[doc = "Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
#[inline(always)]
pub fn input3(self) -> &'a mut W {
self.variant(SRC1_A::INPUT3)
}
#[doc = "Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
#[inline(always)]
pub fn input4(self) -> &'a mut W {
self.variant(SRC1_A::INPUT4)
}
#[doc = "Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
#[inline(always)]
pub fn input5(self) -> &'a mut W {
self.variant(SRC1_A::INPUT5)
}
#[doc = "Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
#[inline(always)]
pub fn input6(self) -> &'a mut W {
self.variant(SRC1_A::INPUT6)
}
#[doc = "Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
#[inline(always)]
pub fn input7(self) -> &'a mut W {
self.variant(SRC1_A::INPUT7)
}
}
#[doc = "Field `SRC2` reader - Selects the input source for bit slice 2"]
pub type SRC2_R = crate::FieldReader<u8, SRC2_A>;
#[doc = "Selects the input source for bit slice 2\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SRC2_A {
#[doc = "0: Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
INPUT0 = 0,
#[doc = "1: Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
INPUT1 = 1,
#[doc = "2: Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
INPUT2 = 2,
#[doc = "3: Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
INPUT3 = 3,
#[doc = "4: Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
INPUT4 = 4,
#[doc = "5: Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
INPUT5 = 5,
#[doc = "6: Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
INPUT6 = 6,
#[doc = "7: Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
INPUT7 = 7,
}
impl From<SRC2_A> for u8 {
#[inline(always)]
fn from(variant: SRC2_A) -> Self {
variant as _
}
}
impl SRC2_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SRC2_A {
match self.bits {
0 => SRC2_A::INPUT0,
1 => SRC2_A::INPUT1,
2 => SRC2_A::INPUT2,
3 => SRC2_A::INPUT3,
4 => SRC2_A::INPUT4,
5 => SRC2_A::INPUT5,
6 => SRC2_A::INPUT6,
7 => SRC2_A::INPUT7,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `INPUT0`"]
#[inline(always)]
pub fn is_input0(&self) -> bool {
*self == SRC2_A::INPUT0
}
#[doc = "Checks if the value of the field is `INPUT1`"]
#[inline(always)]
pub fn is_input1(&self) -> bool {
*self == SRC2_A::INPUT1
}
#[doc = "Checks if the value of the field is `INPUT2`"]
#[inline(always)]
pub fn is_input2(&self) -> bool {
*self == SRC2_A::INPUT2
}
#[doc = "Checks if the value of the field is `INPUT3`"]
#[inline(always)]
pub fn is_input3(&self) -> bool {
*self == SRC2_A::INPUT3
}
#[doc = "Checks if the value of the field is `INPUT4`"]
#[inline(always)]
pub fn is_input4(&self) -> bool {
*self == SRC2_A::INPUT4
}
#[doc = "Checks if the value of the field is `INPUT5`"]
#[inline(always)]
pub fn is_input5(&self) -> bool {
*self == SRC2_A::INPUT5
}
#[doc = "Checks if the value of the field is `INPUT6`"]
#[inline(always)]
pub fn is_input6(&self) -> bool {
*self == SRC2_A::INPUT6
}
#[doc = "Checks if the value of the field is `INPUT7`"]
#[inline(always)]
pub fn is_input7(&self) -> bool {
*self == SRC2_A::INPUT7
}
}
#[doc = "Field `SRC2` writer - Selects the input source for bit slice 2"]
pub type SRC2_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC2_A, 3, O>;
impl<'a, const O: u8> SRC2_W<'a, O> {
#[doc = "Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
#[inline(always)]
pub fn input0(self) -> &'a mut W {
self.variant(SRC2_A::INPUT0)
}
#[doc = "Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
#[inline(always)]
pub fn input1(self) -> &'a mut W {
self.variant(SRC2_A::INPUT1)
}
#[doc = "Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
#[inline(always)]
pub fn input2(self) -> &'a mut W {
self.variant(SRC2_A::INPUT2)
}
#[doc = "Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
#[inline(always)]
pub fn input3(self) -> &'a mut W {
self.variant(SRC2_A::INPUT3)
}
#[doc = "Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
#[inline(always)]
pub fn input4(self) -> &'a mut W {
self.variant(SRC2_A::INPUT4)
}
#[doc = "Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
#[inline(always)]
pub fn input5(self) -> &'a mut W {
self.variant(SRC2_A::INPUT5)
}
#[doc = "Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
#[inline(always)]
pub fn input6(self) -> &'a mut W {
self.variant(SRC2_A::INPUT6)
}
#[doc = "Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
#[inline(always)]
pub fn input7(self) -> &'a mut W {
self.variant(SRC2_A::INPUT7)
}
}
#[doc = "Field `SRC3` reader - Selects the input source for bit slice 3"]
pub type SRC3_R = crate::FieldReader<u8, SRC3_A>;
#[doc = "Selects the input source for bit slice 3\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SRC3_A {
#[doc = "0: Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
INPUT0 = 0,
#[doc = "1: Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
INPUT1 = 1,
#[doc = "2: Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
INPUT2 = 2,
#[doc = "3: Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
INPUT3 = 3,
#[doc = "4: Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
INPUT4 = 4,
#[doc = "5: Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
INPUT5 = 5,
#[doc = "6: Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
INPUT6 = 6,
#[doc = "7: Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
INPUT7 = 7,
}
impl From<SRC3_A> for u8 {
#[inline(always)]
fn from(variant: SRC3_A) -> Self {
variant as _
}
}
impl SRC3_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SRC3_A {
match self.bits {
0 => SRC3_A::INPUT0,
1 => SRC3_A::INPUT1,
2 => SRC3_A::INPUT2,
3 => SRC3_A::INPUT3,
4 => SRC3_A::INPUT4,
5 => SRC3_A::INPUT5,
6 => SRC3_A::INPUT6,
7 => SRC3_A::INPUT7,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `INPUT0`"]
#[inline(always)]
pub fn is_input0(&self) -> bool {
*self == SRC3_A::INPUT0
}
#[doc = "Checks if the value of the field is `INPUT1`"]
#[inline(always)]
pub fn is_input1(&self) -> bool {
*self == SRC3_A::INPUT1
}
#[doc = "Checks if the value of the field is `INPUT2`"]
#[inline(always)]
pub fn is_input2(&self) -> bool {
*self == SRC3_A::INPUT2
}
#[doc = "Checks if the value of the field is `INPUT3`"]
#[inline(always)]
pub fn is_input3(&self) -> bool {
*self == SRC3_A::INPUT3
}
#[doc = "Checks if the value of the field is `INPUT4`"]
#[inline(always)]
pub fn is_input4(&self) -> bool {
*self == SRC3_A::INPUT4
}
#[doc = "Checks if the value of the field is `INPUT5`"]
#[inline(always)]
pub fn is_input5(&self) -> bool {
*self == SRC3_A::INPUT5
}
#[doc = "Checks if the value of the field is `INPUT6`"]
#[inline(always)]
pub fn is_input6(&self) -> bool {
*self == SRC3_A::INPUT6
}
#[doc = "Checks if the value of the field is `INPUT7`"]
#[inline(always)]
pub fn is_input7(&self) -> bool {
*self == SRC3_A::INPUT7
}
}
#[doc = "Field `SRC3` writer - Selects the input source for bit slice 3"]
pub type SRC3_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC3_A, 3, O>;
impl<'a, const O: u8> SRC3_W<'a, O> {
#[doc = "Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
#[inline(always)]
pub fn input0(self) -> &'a mut W {
self.variant(SRC3_A::INPUT0)
}
#[doc = "Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
#[inline(always)]
pub fn input1(self) -> &'a mut W {
self.variant(SRC3_A::INPUT1)
}
#[doc = "Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
#[inline(always)]
pub fn input2(self) -> &'a mut W {
self.variant(SRC3_A::INPUT2)
}
#[doc = "Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
#[inline(always)]
pub fn input3(self) -> &'a mut W {
self.variant(SRC3_A::INPUT3)
}
#[doc = "Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
#[inline(always)]
pub fn input4(self) -> &'a mut W {
self.variant(SRC3_A::INPUT4)
}
#[doc = "Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
#[inline(always)]
pub fn input5(self) -> &'a mut W {
self.variant(SRC3_A::INPUT5)
}
#[doc = "Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
#[inline(always)]
pub fn input6(self) -> &'a mut W {
self.variant(SRC3_A::INPUT6)
}
#[doc = "Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
#[inline(always)]
pub fn input7(self) -> &'a mut W {
self.variant(SRC3_A::INPUT7)
}
}
#[doc = "Field `SRC4` reader - Selects the input source for bit slice 4"]
pub type SRC4_R = crate::FieldReader<u8, SRC4_A>;
#[doc = "Selects the input source for bit slice 4\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SRC4_A {
#[doc = "0: Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
INPUT0 = 0,
#[doc = "1: Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
INPUT1 = 1,
#[doc = "2: Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
INPUT2 = 2,
#[doc = "3: Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
INPUT3 = 3,
#[doc = "4: Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
INPUT4 = 4,
#[doc = "5: Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
INPUT5 = 5,
#[doc = "6: Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
INPUT6 = 6,
#[doc = "7: Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
INPUT7 = 7,
}
impl From<SRC4_A> for u8 {
#[inline(always)]
fn from(variant: SRC4_A) -> Self {
variant as _
}
}
impl SRC4_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SRC4_A {
match self.bits {
0 => SRC4_A::INPUT0,
1 => SRC4_A::INPUT1,
2 => SRC4_A::INPUT2,
3 => SRC4_A::INPUT3,
4 => SRC4_A::INPUT4,
5 => SRC4_A::INPUT5,
6 => SRC4_A::INPUT6,
7 => SRC4_A::INPUT7,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `INPUT0`"]
#[inline(always)]
pub fn is_input0(&self) -> bool {
*self == SRC4_A::INPUT0
}
#[doc = "Checks if the value of the field is `INPUT1`"]
#[inline(always)]
pub fn is_input1(&self) -> bool {
*self == SRC4_A::INPUT1
}
#[doc = "Checks if the value of the field is `INPUT2`"]
#[inline(always)]
pub fn is_input2(&self) -> bool {
*self == SRC4_A::INPUT2
}
#[doc = "Checks if the value of the field is `INPUT3`"]
#[inline(always)]
pub fn is_input3(&self) -> bool {
*self == SRC4_A::INPUT3
}
#[doc = "Checks if the value of the field is `INPUT4`"]
#[inline(always)]
pub fn is_input4(&self) -> bool {
*self == SRC4_A::INPUT4
}
#[doc = "Checks if the value of the field is `INPUT5`"]
#[inline(always)]
pub fn is_input5(&self) -> bool {
*self == SRC4_A::INPUT5
}
#[doc = "Checks if the value of the field is `INPUT6`"]
#[inline(always)]
pub fn is_input6(&self) -> bool {
*self == SRC4_A::INPUT6
}
#[doc = "Checks if the value of the field is `INPUT7`"]
#[inline(always)]
pub fn is_input7(&self) -> bool {
*self == SRC4_A::INPUT7
}
}
#[doc = "Field `SRC4` writer - Selects the input source for bit slice 4"]
pub type SRC4_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC4_A, 3, O>;
impl<'a, const O: u8> SRC4_W<'a, O> {
#[doc = "Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
#[inline(always)]
pub fn input0(self) -> &'a mut W {
self.variant(SRC4_A::INPUT0)
}
#[doc = "Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
#[inline(always)]
pub fn input1(self) -> &'a mut W {
self.variant(SRC4_A::INPUT1)
}
#[doc = "Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
#[inline(always)]
pub fn input2(self) -> &'a mut W {
self.variant(SRC4_A::INPUT2)
}
#[doc = "Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
#[inline(always)]
pub fn input3(self) -> &'a mut W {
self.variant(SRC4_A::INPUT3)
}
#[doc = "Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
#[inline(always)]
pub fn input4(self) -> &'a mut W {
self.variant(SRC4_A::INPUT4)
}
#[doc = "Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
#[inline(always)]
pub fn input5(self) -> &'a mut W {
self.variant(SRC4_A::INPUT5)
}
#[doc = "Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
#[inline(always)]
pub fn input6(self) -> &'a mut W {
self.variant(SRC4_A::INPUT6)
}
#[doc = "Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
#[inline(always)]
pub fn input7(self) -> &'a mut W {
self.variant(SRC4_A::INPUT7)
}
}
#[doc = "Field `SRC5` reader - Selects the input source for bit slice 5"]
pub type SRC5_R = crate::FieldReader<u8, SRC5_A>;
#[doc = "Selects the input source for bit slice 5\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SRC5_A {
#[doc = "0: Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
INPUT0 = 0,
#[doc = "1: Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
INPUT1 = 1,
#[doc = "2: Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
INPUT2 = 2,
#[doc = "3: Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
INPUT3 = 3,
#[doc = "4: Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
INPUT4 = 4,
#[doc = "5: Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
INPUT5 = 5,
#[doc = "6: Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
INPUT6 = 6,
#[doc = "7: Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
INPUT7 = 7,
}
impl From<SRC5_A> for u8 {
#[inline(always)]
fn from(variant: SRC5_A) -> Self {
variant as _
}
}
impl SRC5_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SRC5_A {
match self.bits {
0 => SRC5_A::INPUT0,
1 => SRC5_A::INPUT1,
2 => SRC5_A::INPUT2,
3 => SRC5_A::INPUT3,
4 => SRC5_A::INPUT4,
5 => SRC5_A::INPUT5,
6 => SRC5_A::INPUT6,
7 => SRC5_A::INPUT7,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `INPUT0`"]
#[inline(always)]
pub fn is_input0(&self) -> bool {
*self == SRC5_A::INPUT0
}
#[doc = "Checks if the value of the field is `INPUT1`"]
#[inline(always)]
pub fn is_input1(&self) -> bool {
*self == SRC5_A::INPUT1
}
#[doc = "Checks if the value of the field is `INPUT2`"]
#[inline(always)]
pub fn is_input2(&self) -> bool {
*self == SRC5_A::INPUT2
}
#[doc = "Checks if the value of the field is `INPUT3`"]
#[inline(always)]
pub fn is_input3(&self) -> bool {
*self == SRC5_A::INPUT3
}
#[doc = "Checks if the value of the field is `INPUT4`"]
#[inline(always)]
pub fn is_input4(&self) -> bool {
*self == SRC5_A::INPUT4
}
#[doc = "Checks if the value of the field is `INPUT5`"]
#[inline(always)]
pub fn is_input5(&self) -> bool {
*self == SRC5_A::INPUT5
}
#[doc = "Checks if the value of the field is `INPUT6`"]
#[inline(always)]
pub fn is_input6(&self) -> bool {
*self == SRC5_A::INPUT6
}
#[doc = "Checks if the value of the field is `INPUT7`"]
#[inline(always)]
pub fn is_input7(&self) -> bool {
*self == SRC5_A::INPUT7
}
}
#[doc = "Field `SRC5` writer - Selects the input source for bit slice 5"]
pub type SRC5_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC5_A, 3, O>;
impl<'a, const O: u8> SRC5_W<'a, O> {
#[doc = "Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
#[inline(always)]
pub fn input0(self) -> &'a mut W {
self.variant(SRC5_A::INPUT0)
}
#[doc = "Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
#[inline(always)]
pub fn input1(self) -> &'a mut W {
self.variant(SRC5_A::INPUT1)
}
#[doc = "Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
#[inline(always)]
pub fn input2(self) -> &'a mut W {
self.variant(SRC5_A::INPUT2)
}
#[doc = "Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
#[inline(always)]
pub fn input3(self) -> &'a mut W {
self.variant(SRC5_A::INPUT3)
}
#[doc = "Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
#[inline(always)]
pub fn input4(self) -> &'a mut W {
self.variant(SRC5_A::INPUT4)
}
#[doc = "Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
#[inline(always)]
pub fn input5(self) -> &'a mut W {
self.variant(SRC5_A::INPUT5)
}
#[doc = "Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
#[inline(always)]
pub fn input6(self) -> &'a mut W {
self.variant(SRC5_A::INPUT6)
}
#[doc = "Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
#[inline(always)]
pub fn input7(self) -> &'a mut W {
self.variant(SRC5_A::INPUT7)
}
}
#[doc = "Field `SRC6` reader - Selects the input source for bit slice 6"]
pub type SRC6_R = crate::FieldReader<u8, SRC6_A>;
#[doc = "Selects the input source for bit slice 6\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SRC6_A {
#[doc = "0: Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
INPUT0 = 0,
#[doc = "1: Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
INPUT1 = 1,
#[doc = "2: Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
INPUT2 = 2,
#[doc = "3: Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
INPUT3 = 3,
#[doc = "4: Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
INPUT4 = 4,
#[doc = "5: Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
INPUT5 = 5,
#[doc = "6: Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
INPUT6 = 6,
#[doc = "7: Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
INPUT7 = 7,
}
impl From<SRC6_A> for u8 {
#[inline(always)]
fn from(variant: SRC6_A) -> Self {
variant as _
}
}
impl SRC6_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SRC6_A {
match self.bits {
0 => SRC6_A::INPUT0,
1 => SRC6_A::INPUT1,
2 => SRC6_A::INPUT2,
3 => SRC6_A::INPUT3,
4 => SRC6_A::INPUT4,
5 => SRC6_A::INPUT5,
6 => SRC6_A::INPUT6,
7 => SRC6_A::INPUT7,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `INPUT0`"]
#[inline(always)]
pub fn is_input0(&self) -> bool {
*self == SRC6_A::INPUT0
}
#[doc = "Checks if the value of the field is `INPUT1`"]
#[inline(always)]
pub fn is_input1(&self) -> bool {
*self == SRC6_A::INPUT1
}
#[doc = "Checks if the value of the field is `INPUT2`"]
#[inline(always)]
pub fn is_input2(&self) -> bool {
*self == SRC6_A::INPUT2
}
#[doc = "Checks if the value of the field is `INPUT3`"]
#[inline(always)]
pub fn is_input3(&self) -> bool {
*self == SRC6_A::INPUT3
}
#[doc = "Checks if the value of the field is `INPUT4`"]
#[inline(always)]
pub fn is_input4(&self) -> bool {
*self == SRC6_A::INPUT4
}
#[doc = "Checks if the value of the field is `INPUT5`"]
#[inline(always)]
pub fn is_input5(&self) -> bool {
*self == SRC6_A::INPUT5
}
#[doc = "Checks if the value of the field is `INPUT6`"]
#[inline(always)]
pub fn is_input6(&self) -> bool {
*self == SRC6_A::INPUT6
}
#[doc = "Checks if the value of the field is `INPUT7`"]
#[inline(always)]
pub fn is_input7(&self) -> bool {
*self == SRC6_A::INPUT7
}
}
#[doc = "Field `SRC6` writer - Selects the input source for bit slice 6"]
pub type SRC6_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC6_A, 3, O>;
impl<'a, const O: u8> SRC6_W<'a, O> {
#[doc = "Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
#[inline(always)]
pub fn input0(self) -> &'a mut W {
self.variant(SRC6_A::INPUT0)
}
#[doc = "Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
#[inline(always)]
pub fn input1(self) -> &'a mut W {
self.variant(SRC6_A::INPUT1)
}
#[doc = "Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
#[inline(always)]
pub fn input2(self) -> &'a mut W {
self.variant(SRC6_A::INPUT2)
}
#[doc = "Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
#[inline(always)]
pub fn input3(self) -> &'a mut W {
self.variant(SRC6_A::INPUT3)
}
#[doc = "Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
#[inline(always)]
pub fn input4(self) -> &'a mut W {
self.variant(SRC6_A::INPUT4)
}
#[doc = "Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
#[inline(always)]
pub fn input5(self) -> &'a mut W {
self.variant(SRC6_A::INPUT5)
}
#[doc = "Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
#[inline(always)]
pub fn input6(self) -> &'a mut W {
self.variant(SRC6_A::INPUT6)
}
#[doc = "Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
#[inline(always)]
pub fn input7(self) -> &'a mut W {
self.variant(SRC6_A::INPUT7)
}
}
#[doc = "Field `SRC7` reader - Selects the input source for bit slice 7"]
pub type SRC7_R = crate::FieldReader<u8, SRC7_A>;
#[doc = "Selects the input source for bit slice 7\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum SRC7_A {
#[doc = "0: Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
INPUT0 = 0,
#[doc = "1: Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
INPUT1 = 1,
#[doc = "2: Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
INPUT2 = 2,
#[doc = "3: Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
INPUT3 = 3,
#[doc = "4: Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
INPUT4 = 4,
#[doc = "5: Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
INPUT5 = 5,
#[doc = "6: Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
INPUT6 = 6,
#[doc = "7: Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
INPUT7 = 7,
}
impl From<SRC7_A> for u8 {
#[inline(always)]
fn from(variant: SRC7_A) -> Self {
variant as _
}
}
impl SRC7_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> SRC7_A {
match self.bits {
0 => SRC7_A::INPUT0,
1 => SRC7_A::INPUT1,
2 => SRC7_A::INPUT2,
3 => SRC7_A::INPUT3,
4 => SRC7_A::INPUT4,
5 => SRC7_A::INPUT5,
6 => SRC7_A::INPUT6,
7 => SRC7_A::INPUT7,
_ => unreachable!(),
}
}
#[doc = "Checks if the value of the field is `INPUT0`"]
#[inline(always)]
pub fn is_input0(&self) -> bool {
*self == SRC7_A::INPUT0
}
#[doc = "Checks if the value of the field is `INPUT1`"]
#[inline(always)]
pub fn is_input1(&self) -> bool {
*self == SRC7_A::INPUT1
}
#[doc = "Checks if the value of the field is `INPUT2`"]
#[inline(always)]
pub fn is_input2(&self) -> bool {
*self == SRC7_A::INPUT2
}
#[doc = "Checks if the value of the field is `INPUT3`"]
#[inline(always)]
pub fn is_input3(&self) -> bool {
*self == SRC7_A::INPUT3
}
#[doc = "Checks if the value of the field is `INPUT4`"]
#[inline(always)]
pub fn is_input4(&self) -> bool {
*self == SRC7_A::INPUT4
}
#[doc = "Checks if the value of the field is `INPUT5`"]
#[inline(always)]
pub fn is_input5(&self) -> bool {
*self == SRC7_A::INPUT5
}
#[doc = "Checks if the value of the field is `INPUT6`"]
#[inline(always)]
pub fn is_input6(&self) -> bool {
*self == SRC7_A::INPUT6
}
#[doc = "Checks if the value of the field is `INPUT7`"]
#[inline(always)]
pub fn is_input7(&self) -> bool {
*self == SRC7_A::INPUT7
}
}
#[doc = "Field `SRC7` writer - Selects the input source for bit slice 7"]
pub type SRC7_W<'a, const O: u8> = crate::FieldWriterSafe<'a, u32, PMSRC_SPEC, u8, SRC7_A, 3, O>;
impl<'a, const O: u8> SRC7_W<'a, O> {
#[doc = "Input 0. Selects the pin selected in the PINT_SEL0 register as the source to bit slice n."]
#[inline(always)]
pub fn input0(self) -> &'a mut W {
self.variant(SRC7_A::INPUT0)
}
#[doc = "Input 1. Selects the pin selected in the PINT_SEL1 register as the source to bit slice n."]
#[inline(always)]
pub fn input1(self) -> &'a mut W {
self.variant(SRC7_A::INPUT1)
}
#[doc = "Input 2. Selects the pin selected in the PINT_SEL2 register as the source to bit slice n."]
#[inline(always)]
pub fn input2(self) -> &'a mut W {
self.variant(SRC7_A::INPUT2)
}
#[doc = "Input 3. Selects the pin selected in the PINT_SEL3 register as the source to bit slice n."]
#[inline(always)]
pub fn input3(self) -> &'a mut W {
self.variant(SRC7_A::INPUT3)
}
#[doc = "Input 4. Selects the pin selected in the PINT_SEL4 register as the source to bit slice n."]
#[inline(always)]
pub fn input4(self) -> &'a mut W {
self.variant(SRC7_A::INPUT4)
}
#[doc = "Input 5. Selects the pin selected in the PINT_SEL5 register as the source to bit slice n."]
#[inline(always)]
pub fn input5(self) -> &'a mut W {
self.variant(SRC7_A::INPUT5)
}
#[doc = "Input 6. Selects the pin selected in the PINT_SEL6 register as the source to bit slice n."]
#[inline(always)]
pub fn input6(self) -> &'a mut W {
self.variant(SRC7_A::INPUT6)
}
#[doc = "Input 7. Selects the pin selected in the PINT_SEL7 register as the source to bit slice n."]
#[inline(always)]
pub fn input7(self) -> &'a mut W {
self.variant(SRC7_A::INPUT7)
}
}
impl R {
#[doc = "Bits 8:10 - Selects the input source for bit slice 0"]
#[inline(always)]
pub fn src0(&self) -> SRC0_R {
SRC0_R::new(((self.bits >> 8) & 7) as u8)
}
#[doc = "Bits 11:13 - Selects the input source for bit slice 1"]
#[inline(always)]
pub fn src1(&self) -> SRC1_R {
SRC1_R::new(((self.bits >> 11) & 7) as u8)
}
#[doc = "Bits 14:16 - Selects the input source for bit slice 2"]
#[inline(always)]
pub fn src2(&self) -> SRC2_R {
SRC2_R::new(((self.bits >> 14) & 7) as u8)
}
#[doc = "Bits 17:19 - Selects the input source for bit slice 3"]
#[inline(always)]
pub fn src3(&self) -> SRC3_R {
SRC3_R::new(((self.bits >> 17) & 7) as u8)
}
#[doc = "Bits 20:22 - Selects the input source for bit slice 4"]
#[inline(always)]
pub fn src4(&self) -> SRC4_R {
SRC4_R::new(((self.bits >> 20) & 7) as u8)
}
#[doc = "Bits 23:25 - Selects the input source for bit slice 5"]
#[inline(always)]
pub fn src5(&self) -> SRC5_R {
SRC5_R::new(((self.bits >> 23) & 7) as u8)
}
#[doc = "Bits 26:28 - Selects the input source for bit slice 6"]
#[inline(always)]
pub fn src6(&self) -> SRC6_R {
SRC6_R::new(((self.bits >> 26) & 7) as u8)
}
#[doc = "Bits 29:31 - Selects the input source for bit slice 7"]
#[inline(always)]
pub fn src7(&self) -> SRC7_R {
SRC7_R::new(((self.bits >> 29) & 7) as u8)
}
}
impl W {
#[doc = "Bits 8:10 - Selects the input source for bit slice 0"]
#[inline(always)]
#[must_use]
pub fn src0(&mut self) -> SRC0_W<8> {
SRC0_W::new(self)
}
#[doc = "Bits 11:13 - Selects the input source for bit slice 1"]
#[inline(always)]
#[must_use]
pub fn src1(&mut self) -> SRC1_W<11> {
SRC1_W::new(self)
}
#[doc = "Bits 14:16 - Selects the input source for bit slice 2"]
#[inline(always)]
#[must_use]
pub fn src2(&mut self) -> SRC2_W<14> {
SRC2_W::new(self)
}
#[doc = "Bits 17:19 - Selects the input source for bit slice 3"]
#[inline(always)]
#[must_use]
pub fn src3(&mut self) -> SRC3_W<17> {
SRC3_W::new(self)
}
#[doc = "Bits 20:22 - Selects the input source for bit slice 4"]
#[inline(always)]
#[must_use]
pub fn src4(&mut self) -> SRC4_W<20> {
SRC4_W::new(self)
}
#[doc = "Bits 23:25 - Selects the input source for bit slice 5"]
#[inline(always)]
#[must_use]
pub fn src5(&mut self) -> SRC5_W<23> {
SRC5_W::new(self)
}
#[doc = "Bits 26:28 - Selects the input source for bit slice 6"]
#[inline(always)]
#[must_use]
pub fn src6(&mut self) -> SRC6_W<26> {
SRC6_W::new(self)
}
#[doc = "Bits 29:31 - Selects the input source for bit slice 7"]
#[inline(always)]
#[must_use]
pub fn src7(&mut self) -> SRC7_W<29> {
SRC7_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 = "Pattern Match Interrupt Bit-Slice Source\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 [pmsrc](index.html) module"]
pub struct PMSRC_SPEC;
impl crate::RegisterSpec for PMSRC_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [pmsrc::R](R) reader structure"]
impl crate::Readable for PMSRC_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [pmsrc::W](W) writer structure"]
impl crate::Writable for PMSRC_SPEC {
type Writer = W;
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets PMSRC to value 0"]
impl crate::Resettable for PMSRC_SPEC {
const RESET_VALUE: Self::Ux = 0;
}