pub type R = crate::R<SCANINPUTSELrs>;
pub type W = crate::W<SCANINPUTSELrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum INPUT0TO7SEL {
Aport0ch0to7 = 0,
Aport0ch8to15 = 1,
Aport1ch0to7 = 4,
Aport1ch8to15 = 5,
Aport1ch16to23 = 6,
Aport1ch24to31 = 7,
Aport2ch0to7 = 8,
Aport2ch8to15 = 9,
Aport2ch16to23 = 10,
Aport2ch24to31 = 11,
Aport3ch0to7 = 12,
Aport3ch8to15 = 13,
Aport3ch16to23 = 14,
Aport3ch24to31 = 15,
Aport4ch0to7 = 16,
Aport4ch8to15 = 17,
Aport4ch16to23 = 18,
Aport4ch24to31 = 19,
}
impl From<INPUT0TO7SEL> for u8 {
#[inline(always)]
fn from(variant: INPUT0TO7SEL) -> Self {
variant as _
}
}
impl crate::FieldSpec for INPUT0TO7SEL {
type Ux = u8;
}
impl crate::IsEnum for INPUT0TO7SEL {}
pub type Input0to7selR = crate::FieldReader<INPUT0TO7SEL>;
impl Input0to7selR {
#[inline(always)]
pub const fn variant(&self) -> Option<INPUT0TO7SEL> {
match self.bits {
0 => Some(INPUT0TO7SEL::Aport0ch0to7),
1 => Some(INPUT0TO7SEL::Aport0ch8to15),
4 => Some(INPUT0TO7SEL::Aport1ch0to7),
5 => Some(INPUT0TO7SEL::Aport1ch8to15),
6 => Some(INPUT0TO7SEL::Aport1ch16to23),
7 => Some(INPUT0TO7SEL::Aport1ch24to31),
8 => Some(INPUT0TO7SEL::Aport2ch0to7),
9 => Some(INPUT0TO7SEL::Aport2ch8to15),
10 => Some(INPUT0TO7SEL::Aport2ch16to23),
11 => Some(INPUT0TO7SEL::Aport2ch24to31),
12 => Some(INPUT0TO7SEL::Aport3ch0to7),
13 => Some(INPUT0TO7SEL::Aport3ch8to15),
14 => Some(INPUT0TO7SEL::Aport3ch16to23),
15 => Some(INPUT0TO7SEL::Aport3ch24to31),
16 => Some(INPUT0TO7SEL::Aport4ch0to7),
17 => Some(INPUT0TO7SEL::Aport4ch8to15),
18 => Some(INPUT0TO7SEL::Aport4ch16to23),
19 => Some(INPUT0TO7SEL::Aport4ch24to31),
_ => None,
}
}
#[inline(always)]
pub fn is_aport0ch0to7(&self) -> bool {
*self == INPUT0TO7SEL::Aport0ch0to7
}
#[inline(always)]
pub fn is_aport0ch8to15(&self) -> bool {
*self == INPUT0TO7SEL::Aport0ch8to15
}
#[inline(always)]
pub fn is_aport1ch0to7(&self) -> bool {
*self == INPUT0TO7SEL::Aport1ch0to7
}
#[inline(always)]
pub fn is_aport1ch8to15(&self) -> bool {
*self == INPUT0TO7SEL::Aport1ch8to15
}
#[inline(always)]
pub fn is_aport1ch16to23(&self) -> bool {
*self == INPUT0TO7SEL::Aport1ch16to23
}
#[inline(always)]
pub fn is_aport1ch24to31(&self) -> bool {
*self == INPUT0TO7SEL::Aport1ch24to31
}
#[inline(always)]
pub fn is_aport2ch0to7(&self) -> bool {
*self == INPUT0TO7SEL::Aport2ch0to7
}
#[inline(always)]
pub fn is_aport2ch8to15(&self) -> bool {
*self == INPUT0TO7SEL::Aport2ch8to15
}
#[inline(always)]
pub fn is_aport2ch16to23(&self) -> bool {
*self == INPUT0TO7SEL::Aport2ch16to23
}
#[inline(always)]
pub fn is_aport2ch24to31(&self) -> bool {
*self == INPUT0TO7SEL::Aport2ch24to31
}
#[inline(always)]
pub fn is_aport3ch0to7(&self) -> bool {
*self == INPUT0TO7SEL::Aport3ch0to7
}
#[inline(always)]
pub fn is_aport3ch8to15(&self) -> bool {
*self == INPUT0TO7SEL::Aport3ch8to15
}
#[inline(always)]
pub fn is_aport3ch16to23(&self) -> bool {
*self == INPUT0TO7SEL::Aport3ch16to23
}
#[inline(always)]
pub fn is_aport3ch24to31(&self) -> bool {
*self == INPUT0TO7SEL::Aport3ch24to31
}
#[inline(always)]
pub fn is_aport4ch0to7(&self) -> bool {
*self == INPUT0TO7SEL::Aport4ch0to7
}
#[inline(always)]
pub fn is_aport4ch8to15(&self) -> bool {
*self == INPUT0TO7SEL::Aport4ch8to15
}
#[inline(always)]
pub fn is_aport4ch16to23(&self) -> bool {
*self == INPUT0TO7SEL::Aport4ch16to23
}
#[inline(always)]
pub fn is_aport4ch24to31(&self) -> bool {
*self == INPUT0TO7SEL::Aport4ch24to31
}
}
pub type Input0to7selW<'a, REG> = crate::FieldWriter<'a, REG, 5, INPUT0TO7SEL>;
impl<'a, REG> Input0to7selW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn aport0ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport0ch0to7)
}
#[inline(always)]
pub fn aport0ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport0ch8to15)
}
#[inline(always)]
pub fn aport1ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport1ch0to7)
}
#[inline(always)]
pub fn aport1ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport1ch8to15)
}
#[inline(always)]
pub fn aport1ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport1ch16to23)
}
#[inline(always)]
pub fn aport1ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport1ch24to31)
}
#[inline(always)]
pub fn aport2ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport2ch0to7)
}
#[inline(always)]
pub fn aport2ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport2ch8to15)
}
#[inline(always)]
pub fn aport2ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport2ch16to23)
}
#[inline(always)]
pub fn aport2ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport2ch24to31)
}
#[inline(always)]
pub fn aport3ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport3ch0to7)
}
#[inline(always)]
pub fn aport3ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport3ch8to15)
}
#[inline(always)]
pub fn aport3ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport3ch16to23)
}
#[inline(always)]
pub fn aport3ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport3ch24to31)
}
#[inline(always)]
pub fn aport4ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport4ch0to7)
}
#[inline(always)]
pub fn aport4ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport4ch8to15)
}
#[inline(always)]
pub fn aport4ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport4ch16to23)
}
#[inline(always)]
pub fn aport4ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT0TO7SEL::Aport4ch24to31)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum INPUT8TO15SEL {
Aport0ch0to7 = 0,
Aport0ch8to15 = 1,
Aport1ch0to7 = 4,
Aport1ch8to15 = 5,
Aport1ch16to23 = 6,
Aport1ch24to31 = 7,
Aport2ch0to7 = 8,
Aport2ch8to15 = 9,
Aport2ch16to23 = 10,
Aport2ch24to31 = 11,
Aport3ch0to7 = 12,
Aport3ch8to15 = 13,
Aport3ch16to23 = 14,
Aport3ch24to31 = 15,
Aport4ch0to7 = 16,
Aport4ch8to15 = 17,
Aport4ch16to23 = 18,
Aport4ch24to31 = 19,
}
impl From<INPUT8TO15SEL> for u8 {
#[inline(always)]
fn from(variant: INPUT8TO15SEL) -> Self {
variant as _
}
}
impl crate::FieldSpec for INPUT8TO15SEL {
type Ux = u8;
}
impl crate::IsEnum for INPUT8TO15SEL {}
pub type Input8to15selR = crate::FieldReader<INPUT8TO15SEL>;
impl Input8to15selR {
#[inline(always)]
pub const fn variant(&self) -> Option<INPUT8TO15SEL> {
match self.bits {
0 => Some(INPUT8TO15SEL::Aport0ch0to7),
1 => Some(INPUT8TO15SEL::Aport0ch8to15),
4 => Some(INPUT8TO15SEL::Aport1ch0to7),
5 => Some(INPUT8TO15SEL::Aport1ch8to15),
6 => Some(INPUT8TO15SEL::Aport1ch16to23),
7 => Some(INPUT8TO15SEL::Aport1ch24to31),
8 => Some(INPUT8TO15SEL::Aport2ch0to7),
9 => Some(INPUT8TO15SEL::Aport2ch8to15),
10 => Some(INPUT8TO15SEL::Aport2ch16to23),
11 => Some(INPUT8TO15SEL::Aport2ch24to31),
12 => Some(INPUT8TO15SEL::Aport3ch0to7),
13 => Some(INPUT8TO15SEL::Aport3ch8to15),
14 => Some(INPUT8TO15SEL::Aport3ch16to23),
15 => Some(INPUT8TO15SEL::Aport3ch24to31),
16 => Some(INPUT8TO15SEL::Aport4ch0to7),
17 => Some(INPUT8TO15SEL::Aport4ch8to15),
18 => Some(INPUT8TO15SEL::Aport4ch16to23),
19 => Some(INPUT8TO15SEL::Aport4ch24to31),
_ => None,
}
}
#[inline(always)]
pub fn is_aport0ch0to7(&self) -> bool {
*self == INPUT8TO15SEL::Aport0ch0to7
}
#[inline(always)]
pub fn is_aport0ch8to15(&self) -> bool {
*self == INPUT8TO15SEL::Aport0ch8to15
}
#[inline(always)]
pub fn is_aport1ch0to7(&self) -> bool {
*self == INPUT8TO15SEL::Aport1ch0to7
}
#[inline(always)]
pub fn is_aport1ch8to15(&self) -> bool {
*self == INPUT8TO15SEL::Aport1ch8to15
}
#[inline(always)]
pub fn is_aport1ch16to23(&self) -> bool {
*self == INPUT8TO15SEL::Aport1ch16to23
}
#[inline(always)]
pub fn is_aport1ch24to31(&self) -> bool {
*self == INPUT8TO15SEL::Aport1ch24to31
}
#[inline(always)]
pub fn is_aport2ch0to7(&self) -> bool {
*self == INPUT8TO15SEL::Aport2ch0to7
}
#[inline(always)]
pub fn is_aport2ch8to15(&self) -> bool {
*self == INPUT8TO15SEL::Aport2ch8to15
}
#[inline(always)]
pub fn is_aport2ch16to23(&self) -> bool {
*self == INPUT8TO15SEL::Aport2ch16to23
}
#[inline(always)]
pub fn is_aport2ch24to31(&self) -> bool {
*self == INPUT8TO15SEL::Aport2ch24to31
}
#[inline(always)]
pub fn is_aport3ch0to7(&self) -> bool {
*self == INPUT8TO15SEL::Aport3ch0to7
}
#[inline(always)]
pub fn is_aport3ch8to15(&self) -> bool {
*self == INPUT8TO15SEL::Aport3ch8to15
}
#[inline(always)]
pub fn is_aport3ch16to23(&self) -> bool {
*self == INPUT8TO15SEL::Aport3ch16to23
}
#[inline(always)]
pub fn is_aport3ch24to31(&self) -> bool {
*self == INPUT8TO15SEL::Aport3ch24to31
}
#[inline(always)]
pub fn is_aport4ch0to7(&self) -> bool {
*self == INPUT8TO15SEL::Aport4ch0to7
}
#[inline(always)]
pub fn is_aport4ch8to15(&self) -> bool {
*self == INPUT8TO15SEL::Aport4ch8to15
}
#[inline(always)]
pub fn is_aport4ch16to23(&self) -> bool {
*self == INPUT8TO15SEL::Aport4ch16to23
}
#[inline(always)]
pub fn is_aport4ch24to31(&self) -> bool {
*self == INPUT8TO15SEL::Aport4ch24to31
}
}
pub type Input8to15selW<'a, REG> = crate::FieldWriter<'a, REG, 5, INPUT8TO15SEL>;
impl<'a, REG> Input8to15selW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn aport0ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport0ch0to7)
}
#[inline(always)]
pub fn aport0ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport0ch8to15)
}
#[inline(always)]
pub fn aport1ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport1ch0to7)
}
#[inline(always)]
pub fn aport1ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport1ch8to15)
}
#[inline(always)]
pub fn aport1ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport1ch16to23)
}
#[inline(always)]
pub fn aport1ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport1ch24to31)
}
#[inline(always)]
pub fn aport2ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport2ch0to7)
}
#[inline(always)]
pub fn aport2ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport2ch8to15)
}
#[inline(always)]
pub fn aport2ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport2ch16to23)
}
#[inline(always)]
pub fn aport2ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport2ch24to31)
}
#[inline(always)]
pub fn aport3ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport3ch0to7)
}
#[inline(always)]
pub fn aport3ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport3ch8to15)
}
#[inline(always)]
pub fn aport3ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport3ch16to23)
}
#[inline(always)]
pub fn aport3ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport3ch24to31)
}
#[inline(always)]
pub fn aport4ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport4ch0to7)
}
#[inline(always)]
pub fn aport4ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport4ch8to15)
}
#[inline(always)]
pub fn aport4ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport4ch16to23)
}
#[inline(always)]
pub fn aport4ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT8TO15SEL::Aport4ch24to31)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum INPUT16TO23SEL {
Aport0ch0to7 = 0,
Aport0ch8to15 = 1,
Aport1ch0to7 = 4,
Aport1ch8to15 = 5,
Aport1ch16to23 = 6,
Aport1ch24to31 = 7,
Aport2ch0to7 = 8,
Aport2ch8to15 = 9,
Aport2ch16to23 = 10,
Aport2ch24to31 = 11,
Aport3ch0to7 = 12,
Aport3ch8to15 = 13,
Aport3ch16to23 = 14,
Aport3ch24to31 = 15,
Aport4ch0to7 = 16,
Aport4ch8to15 = 17,
Aport4ch16to23 = 18,
Aport4ch24to31 = 19,
}
impl From<INPUT16TO23SEL> for u8 {
#[inline(always)]
fn from(variant: INPUT16TO23SEL) -> Self {
variant as _
}
}
impl crate::FieldSpec for INPUT16TO23SEL {
type Ux = u8;
}
impl crate::IsEnum for INPUT16TO23SEL {}
pub type Input16to23selR = crate::FieldReader<INPUT16TO23SEL>;
impl Input16to23selR {
#[inline(always)]
pub const fn variant(&self) -> Option<INPUT16TO23SEL> {
match self.bits {
0 => Some(INPUT16TO23SEL::Aport0ch0to7),
1 => Some(INPUT16TO23SEL::Aport0ch8to15),
4 => Some(INPUT16TO23SEL::Aport1ch0to7),
5 => Some(INPUT16TO23SEL::Aport1ch8to15),
6 => Some(INPUT16TO23SEL::Aport1ch16to23),
7 => Some(INPUT16TO23SEL::Aport1ch24to31),
8 => Some(INPUT16TO23SEL::Aport2ch0to7),
9 => Some(INPUT16TO23SEL::Aport2ch8to15),
10 => Some(INPUT16TO23SEL::Aport2ch16to23),
11 => Some(INPUT16TO23SEL::Aport2ch24to31),
12 => Some(INPUT16TO23SEL::Aport3ch0to7),
13 => Some(INPUT16TO23SEL::Aport3ch8to15),
14 => Some(INPUT16TO23SEL::Aport3ch16to23),
15 => Some(INPUT16TO23SEL::Aport3ch24to31),
16 => Some(INPUT16TO23SEL::Aport4ch0to7),
17 => Some(INPUT16TO23SEL::Aport4ch8to15),
18 => Some(INPUT16TO23SEL::Aport4ch16to23),
19 => Some(INPUT16TO23SEL::Aport4ch24to31),
_ => None,
}
}
#[inline(always)]
pub fn is_aport0ch0to7(&self) -> bool {
*self == INPUT16TO23SEL::Aport0ch0to7
}
#[inline(always)]
pub fn is_aport0ch8to15(&self) -> bool {
*self == INPUT16TO23SEL::Aport0ch8to15
}
#[inline(always)]
pub fn is_aport1ch0to7(&self) -> bool {
*self == INPUT16TO23SEL::Aport1ch0to7
}
#[inline(always)]
pub fn is_aport1ch8to15(&self) -> bool {
*self == INPUT16TO23SEL::Aport1ch8to15
}
#[inline(always)]
pub fn is_aport1ch16to23(&self) -> bool {
*self == INPUT16TO23SEL::Aport1ch16to23
}
#[inline(always)]
pub fn is_aport1ch24to31(&self) -> bool {
*self == INPUT16TO23SEL::Aport1ch24to31
}
#[inline(always)]
pub fn is_aport2ch0to7(&self) -> bool {
*self == INPUT16TO23SEL::Aport2ch0to7
}
#[inline(always)]
pub fn is_aport2ch8to15(&self) -> bool {
*self == INPUT16TO23SEL::Aport2ch8to15
}
#[inline(always)]
pub fn is_aport2ch16to23(&self) -> bool {
*self == INPUT16TO23SEL::Aport2ch16to23
}
#[inline(always)]
pub fn is_aport2ch24to31(&self) -> bool {
*self == INPUT16TO23SEL::Aport2ch24to31
}
#[inline(always)]
pub fn is_aport3ch0to7(&self) -> bool {
*self == INPUT16TO23SEL::Aport3ch0to7
}
#[inline(always)]
pub fn is_aport3ch8to15(&self) -> bool {
*self == INPUT16TO23SEL::Aport3ch8to15
}
#[inline(always)]
pub fn is_aport3ch16to23(&self) -> bool {
*self == INPUT16TO23SEL::Aport3ch16to23
}
#[inline(always)]
pub fn is_aport3ch24to31(&self) -> bool {
*self == INPUT16TO23SEL::Aport3ch24to31
}
#[inline(always)]
pub fn is_aport4ch0to7(&self) -> bool {
*self == INPUT16TO23SEL::Aport4ch0to7
}
#[inline(always)]
pub fn is_aport4ch8to15(&self) -> bool {
*self == INPUT16TO23SEL::Aport4ch8to15
}
#[inline(always)]
pub fn is_aport4ch16to23(&self) -> bool {
*self == INPUT16TO23SEL::Aport4ch16to23
}
#[inline(always)]
pub fn is_aport4ch24to31(&self) -> bool {
*self == INPUT16TO23SEL::Aport4ch24to31
}
}
pub type Input16to23selW<'a, REG> = crate::FieldWriter<'a, REG, 5, INPUT16TO23SEL>;
impl<'a, REG> Input16to23selW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn aport0ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport0ch0to7)
}
#[inline(always)]
pub fn aport0ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport0ch8to15)
}
#[inline(always)]
pub fn aport1ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport1ch0to7)
}
#[inline(always)]
pub fn aport1ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport1ch8to15)
}
#[inline(always)]
pub fn aport1ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport1ch16to23)
}
#[inline(always)]
pub fn aport1ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport1ch24to31)
}
#[inline(always)]
pub fn aport2ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport2ch0to7)
}
#[inline(always)]
pub fn aport2ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport2ch8to15)
}
#[inline(always)]
pub fn aport2ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport2ch16to23)
}
#[inline(always)]
pub fn aport2ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport2ch24to31)
}
#[inline(always)]
pub fn aport3ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport3ch0to7)
}
#[inline(always)]
pub fn aport3ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport3ch8to15)
}
#[inline(always)]
pub fn aport3ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport3ch16to23)
}
#[inline(always)]
pub fn aport3ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport3ch24to31)
}
#[inline(always)]
pub fn aport4ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport4ch0to7)
}
#[inline(always)]
pub fn aport4ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport4ch8to15)
}
#[inline(always)]
pub fn aport4ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport4ch16to23)
}
#[inline(always)]
pub fn aport4ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT16TO23SEL::Aport4ch24to31)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum INPUT24TO31SEL {
Aport0ch0to7 = 0,
Aport0ch8to15 = 1,
Aport1ch0to7 = 4,
Aport1ch8to15 = 5,
Aport1ch16to23 = 6,
Aport1ch24to31 = 7,
Aport2ch0to7 = 8,
Aport2ch8to15 = 9,
Aport2ch16to23 = 10,
Aport2ch24to31 = 11,
Aport3ch0to7 = 12,
Aport3ch8to15 = 13,
Aport3ch16to23 = 14,
Aport3ch24to31 = 15,
Aport4ch0to7 = 16,
Aport4ch8to15 = 17,
Aport4ch16to23 = 18,
Aport4ch24to31 = 19,
}
impl From<INPUT24TO31SEL> for u8 {
#[inline(always)]
fn from(variant: INPUT24TO31SEL) -> Self {
variant as _
}
}
impl crate::FieldSpec for INPUT24TO31SEL {
type Ux = u8;
}
impl crate::IsEnum for INPUT24TO31SEL {}
pub type Input24to31selR = crate::FieldReader<INPUT24TO31SEL>;
impl Input24to31selR {
#[inline(always)]
pub const fn variant(&self) -> Option<INPUT24TO31SEL> {
match self.bits {
0 => Some(INPUT24TO31SEL::Aport0ch0to7),
1 => Some(INPUT24TO31SEL::Aport0ch8to15),
4 => Some(INPUT24TO31SEL::Aport1ch0to7),
5 => Some(INPUT24TO31SEL::Aport1ch8to15),
6 => Some(INPUT24TO31SEL::Aport1ch16to23),
7 => Some(INPUT24TO31SEL::Aport1ch24to31),
8 => Some(INPUT24TO31SEL::Aport2ch0to7),
9 => Some(INPUT24TO31SEL::Aport2ch8to15),
10 => Some(INPUT24TO31SEL::Aport2ch16to23),
11 => Some(INPUT24TO31SEL::Aport2ch24to31),
12 => Some(INPUT24TO31SEL::Aport3ch0to7),
13 => Some(INPUT24TO31SEL::Aport3ch8to15),
14 => Some(INPUT24TO31SEL::Aport3ch16to23),
15 => Some(INPUT24TO31SEL::Aport3ch24to31),
16 => Some(INPUT24TO31SEL::Aport4ch0to7),
17 => Some(INPUT24TO31SEL::Aport4ch8to15),
18 => Some(INPUT24TO31SEL::Aport4ch16to23),
19 => Some(INPUT24TO31SEL::Aport4ch24to31),
_ => None,
}
}
#[inline(always)]
pub fn is_aport0ch0to7(&self) -> bool {
*self == INPUT24TO31SEL::Aport0ch0to7
}
#[inline(always)]
pub fn is_aport0ch8to15(&self) -> bool {
*self == INPUT24TO31SEL::Aport0ch8to15
}
#[inline(always)]
pub fn is_aport1ch0to7(&self) -> bool {
*self == INPUT24TO31SEL::Aport1ch0to7
}
#[inline(always)]
pub fn is_aport1ch8to15(&self) -> bool {
*self == INPUT24TO31SEL::Aport1ch8to15
}
#[inline(always)]
pub fn is_aport1ch16to23(&self) -> bool {
*self == INPUT24TO31SEL::Aport1ch16to23
}
#[inline(always)]
pub fn is_aport1ch24to31(&self) -> bool {
*self == INPUT24TO31SEL::Aport1ch24to31
}
#[inline(always)]
pub fn is_aport2ch0to7(&self) -> bool {
*self == INPUT24TO31SEL::Aport2ch0to7
}
#[inline(always)]
pub fn is_aport2ch8to15(&self) -> bool {
*self == INPUT24TO31SEL::Aport2ch8to15
}
#[inline(always)]
pub fn is_aport2ch16to23(&self) -> bool {
*self == INPUT24TO31SEL::Aport2ch16to23
}
#[inline(always)]
pub fn is_aport2ch24to31(&self) -> bool {
*self == INPUT24TO31SEL::Aport2ch24to31
}
#[inline(always)]
pub fn is_aport3ch0to7(&self) -> bool {
*self == INPUT24TO31SEL::Aport3ch0to7
}
#[inline(always)]
pub fn is_aport3ch8to15(&self) -> bool {
*self == INPUT24TO31SEL::Aport3ch8to15
}
#[inline(always)]
pub fn is_aport3ch16to23(&self) -> bool {
*self == INPUT24TO31SEL::Aport3ch16to23
}
#[inline(always)]
pub fn is_aport3ch24to31(&self) -> bool {
*self == INPUT24TO31SEL::Aport3ch24to31
}
#[inline(always)]
pub fn is_aport4ch0to7(&self) -> bool {
*self == INPUT24TO31SEL::Aport4ch0to7
}
#[inline(always)]
pub fn is_aport4ch8to15(&self) -> bool {
*self == INPUT24TO31SEL::Aport4ch8to15
}
#[inline(always)]
pub fn is_aport4ch16to23(&self) -> bool {
*self == INPUT24TO31SEL::Aport4ch16to23
}
#[inline(always)]
pub fn is_aport4ch24to31(&self) -> bool {
*self == INPUT24TO31SEL::Aport4ch24to31
}
}
pub type Input24to31selW<'a, REG> = crate::FieldWriter<'a, REG, 5, INPUT24TO31SEL>;
impl<'a, REG> Input24to31selW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn aport0ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport0ch0to7)
}
#[inline(always)]
pub fn aport0ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport0ch8to15)
}
#[inline(always)]
pub fn aport1ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport1ch0to7)
}
#[inline(always)]
pub fn aport1ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport1ch8to15)
}
#[inline(always)]
pub fn aport1ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport1ch16to23)
}
#[inline(always)]
pub fn aport1ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport1ch24to31)
}
#[inline(always)]
pub fn aport2ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport2ch0to7)
}
#[inline(always)]
pub fn aport2ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport2ch8to15)
}
#[inline(always)]
pub fn aport2ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport2ch16to23)
}
#[inline(always)]
pub fn aport2ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport2ch24to31)
}
#[inline(always)]
pub fn aport3ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport3ch0to7)
}
#[inline(always)]
pub fn aport3ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport3ch8to15)
}
#[inline(always)]
pub fn aport3ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport3ch16to23)
}
#[inline(always)]
pub fn aport3ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport3ch24to31)
}
#[inline(always)]
pub fn aport4ch0to7(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport4ch0to7)
}
#[inline(always)]
pub fn aport4ch8to15(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport4ch8to15)
}
#[inline(always)]
pub fn aport4ch16to23(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport4ch16to23)
}
#[inline(always)]
pub fn aport4ch24to31(self) -> &'a mut crate::W<REG> {
self.variant(INPUT24TO31SEL::Aport4ch24to31)
}
}
impl R {
#[inline(always)]
pub fn input0to7sel(&self) -> Input0to7selR {
Input0to7selR::new((self.bits & 0x1f) as u8)
}
#[inline(always)]
pub fn input8to15sel(&self) -> Input8to15selR {
Input8to15selR::new(((self.bits >> 8) & 0x1f) as u8)
}
#[inline(always)]
pub fn input16to23sel(&self) -> Input16to23selR {
Input16to23selR::new(((self.bits >> 16) & 0x1f) as u8)
}
#[inline(always)]
pub fn input24to31sel(&self) -> Input24to31selR {
Input24to31selR::new(((self.bits >> 24) & 0x1f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SCANINPUTSEL")
.field("input0to7sel", &self.input0to7sel())
.field("input8to15sel", &self.input8to15sel())
.field("input16to23sel", &self.input16to23sel())
.field("input24to31sel", &self.input24to31sel())
.finish()
}
}
impl W {
#[inline(always)]
pub fn input0to7sel(&mut self) -> Input0to7selW<'_, SCANINPUTSELrs> {
Input0to7selW::new(self, 0)
}
#[inline(always)]
pub fn input8to15sel(&mut self) -> Input8to15selW<'_, SCANINPUTSELrs> {
Input8to15selW::new(self, 8)
}
#[inline(always)]
pub fn input16to23sel(&mut self) -> Input16to23selW<'_, SCANINPUTSELrs> {
Input16to23selW::new(self, 16)
}
#[inline(always)]
pub fn input24to31sel(&mut self) -> Input24to31selW<'_, SCANINPUTSELrs> {
Input24to31selW::new(self, 24)
}
}
pub struct SCANINPUTSELrs;
impl crate::RegisterSpec for SCANINPUTSELrs {
type Ux = u32;
}
impl crate::Readable for SCANINPUTSELrs {}
impl crate::Writable for SCANINPUTSELrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SCANINPUTSELrs {}