#[doc = "Register `SCANINPUTSEL0` reader"]
pub struct R(crate::R<SCANINPUTSEL0_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<SCANINPUTSEL0_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<SCANINPUTSEL0_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<SCANINPUTSEL0_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `SCANINPUTSEL0` writer"]
pub struct W(crate::W<SCANINPUTSEL0_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<SCANINPUTSEL0_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<SCANINPUTSEL0_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<SCANINPUTSEL0_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `INPUT0TO7SEL` reader - CSEN_INPUT0-7 Select"]
pub type INPUT0TO7SEL_R = crate::FieldReader<u8, INPUT0TO7SEL_A>;
#[doc = "CSEN_INPUT0-7 Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum INPUT0TO7SEL_A {
#[doc = "4: `100`"]
APORT1CH0TO7 = 4,
#[doc = "5: `101`"]
APORT1CH8TO15 = 5,
#[doc = "6: `110`"]
APORT1CH16TO23 = 6,
#[doc = "7: `111`"]
APORT1CH24TO31 = 7,
#[doc = "12: `1100`"]
APORT3CH0TO7 = 12,
#[doc = "13: `1101`"]
APORT3CH8TO15 = 13,
#[doc = "14: `1110`"]
APORT3CH16TO23 = 14,
#[doc = "15: `1111`"]
APORT3CH24TO31 = 15,
}
impl From<INPUT0TO7SEL_A> for u8 {
#[inline(always)]
fn from(variant: INPUT0TO7SEL_A) -> Self {
variant as _
}
}
impl INPUT0TO7SEL_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> Option<INPUT0TO7SEL_A> {
match self.bits {
4 => Some(INPUT0TO7SEL_A::APORT1CH0TO7),
5 => Some(INPUT0TO7SEL_A::APORT1CH8TO15),
6 => Some(INPUT0TO7SEL_A::APORT1CH16TO23),
7 => Some(INPUT0TO7SEL_A::APORT1CH24TO31),
12 => Some(INPUT0TO7SEL_A::APORT3CH0TO7),
13 => Some(INPUT0TO7SEL_A::APORT3CH8TO15),
14 => Some(INPUT0TO7SEL_A::APORT3CH16TO23),
15 => Some(INPUT0TO7SEL_A::APORT3CH24TO31),
_ => None,
}
}
#[doc = "Checks if the value of the field is `APORT1CH0TO7`"]
#[inline(always)]
pub fn is_aport1ch0to7(&self) -> bool {
*self == INPUT0TO7SEL_A::APORT1CH0TO7
}
#[doc = "Checks if the value of the field is `APORT1CH8TO15`"]
#[inline(always)]
pub fn is_aport1ch8to15(&self) -> bool {
*self == INPUT0TO7SEL_A::APORT1CH8TO15
}
#[doc = "Checks if the value of the field is `APORT1CH16TO23`"]
#[inline(always)]
pub fn is_aport1ch16to23(&self) -> bool {
*self == INPUT0TO7SEL_A::APORT1CH16TO23
}
#[doc = "Checks if the value of the field is `APORT1CH24TO31`"]
#[inline(always)]
pub fn is_aport1ch24to31(&self) -> bool {
*self == INPUT0TO7SEL_A::APORT1CH24TO31
}
#[doc = "Checks if the value of the field is `APORT3CH0TO7`"]
#[inline(always)]
pub fn is_aport3ch0to7(&self) -> bool {
*self == INPUT0TO7SEL_A::APORT3CH0TO7
}
#[doc = "Checks if the value of the field is `APORT3CH8TO15`"]
#[inline(always)]
pub fn is_aport3ch8to15(&self) -> bool {
*self == INPUT0TO7SEL_A::APORT3CH8TO15
}
#[doc = "Checks if the value of the field is `APORT3CH16TO23`"]
#[inline(always)]
pub fn is_aport3ch16to23(&self) -> bool {
*self == INPUT0TO7SEL_A::APORT3CH16TO23
}
#[doc = "Checks if the value of the field is `APORT3CH24TO31`"]
#[inline(always)]
pub fn is_aport3ch24to31(&self) -> bool {
*self == INPUT0TO7SEL_A::APORT3CH24TO31
}
}
#[doc = "Field `INPUT0TO7SEL` writer - CSEN_INPUT0-7 Select"]
pub type INPUT0TO7SEL_W<'a, const O: u8> =
crate::FieldWriter<'a, u32, SCANINPUTSEL0_SPEC, u8, INPUT0TO7SEL_A, 4, O>;
impl<'a, const O: u8> INPUT0TO7SEL_W<'a, O> {
#[doc = "`100`"]
#[inline(always)]
pub fn aport1ch0to7(self) -> &'a mut W {
self.variant(INPUT0TO7SEL_A::APORT1CH0TO7)
}
#[doc = "`101`"]
#[inline(always)]
pub fn aport1ch8to15(self) -> &'a mut W {
self.variant(INPUT0TO7SEL_A::APORT1CH8TO15)
}
#[doc = "`110`"]
#[inline(always)]
pub fn aport1ch16to23(self) -> &'a mut W {
self.variant(INPUT0TO7SEL_A::APORT1CH16TO23)
}
#[doc = "`111`"]
#[inline(always)]
pub fn aport1ch24to31(self) -> &'a mut W {
self.variant(INPUT0TO7SEL_A::APORT1CH24TO31)
}
#[doc = "`1100`"]
#[inline(always)]
pub fn aport3ch0to7(self) -> &'a mut W {
self.variant(INPUT0TO7SEL_A::APORT3CH0TO7)
}
#[doc = "`1101`"]
#[inline(always)]
pub fn aport3ch8to15(self) -> &'a mut W {
self.variant(INPUT0TO7SEL_A::APORT3CH8TO15)
}
#[doc = "`1110`"]
#[inline(always)]
pub fn aport3ch16to23(self) -> &'a mut W {
self.variant(INPUT0TO7SEL_A::APORT3CH16TO23)
}
#[doc = "`1111`"]
#[inline(always)]
pub fn aport3ch24to31(self) -> &'a mut W {
self.variant(INPUT0TO7SEL_A::APORT3CH24TO31)
}
}
#[doc = "Field `INPUT8TO15SEL` reader - CSEN_INPUT8-15 Select"]
pub type INPUT8TO15SEL_R = crate::FieldReader<u8, INPUT8TO15SEL_A>;
#[doc = "CSEN_INPUT8-15 Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum INPUT8TO15SEL_A {
#[doc = "4: `100`"]
APORT1CH0TO7 = 4,
#[doc = "5: `101`"]
APORT1CH8TO15 = 5,
#[doc = "6: `110`"]
APORT1CH16TO23 = 6,
#[doc = "7: `111`"]
APORT1CH24TO31 = 7,
#[doc = "12: `1100`"]
APORT3CH0TO7 = 12,
#[doc = "13: `1101`"]
APORT3CH8TO15 = 13,
#[doc = "14: `1110`"]
APORT3CH16TO23 = 14,
#[doc = "15: `1111`"]
APORT3CH24TO31 = 15,
}
impl From<INPUT8TO15SEL_A> for u8 {
#[inline(always)]
fn from(variant: INPUT8TO15SEL_A) -> Self {
variant as _
}
}
impl INPUT8TO15SEL_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> Option<INPUT8TO15SEL_A> {
match self.bits {
4 => Some(INPUT8TO15SEL_A::APORT1CH0TO7),
5 => Some(INPUT8TO15SEL_A::APORT1CH8TO15),
6 => Some(INPUT8TO15SEL_A::APORT1CH16TO23),
7 => Some(INPUT8TO15SEL_A::APORT1CH24TO31),
12 => Some(INPUT8TO15SEL_A::APORT3CH0TO7),
13 => Some(INPUT8TO15SEL_A::APORT3CH8TO15),
14 => Some(INPUT8TO15SEL_A::APORT3CH16TO23),
15 => Some(INPUT8TO15SEL_A::APORT3CH24TO31),
_ => None,
}
}
#[doc = "Checks if the value of the field is `APORT1CH0TO7`"]
#[inline(always)]
pub fn is_aport1ch0to7(&self) -> bool {
*self == INPUT8TO15SEL_A::APORT1CH0TO7
}
#[doc = "Checks if the value of the field is `APORT1CH8TO15`"]
#[inline(always)]
pub fn is_aport1ch8to15(&self) -> bool {
*self == INPUT8TO15SEL_A::APORT1CH8TO15
}
#[doc = "Checks if the value of the field is `APORT1CH16TO23`"]
#[inline(always)]
pub fn is_aport1ch16to23(&self) -> bool {
*self == INPUT8TO15SEL_A::APORT1CH16TO23
}
#[doc = "Checks if the value of the field is `APORT1CH24TO31`"]
#[inline(always)]
pub fn is_aport1ch24to31(&self) -> bool {
*self == INPUT8TO15SEL_A::APORT1CH24TO31
}
#[doc = "Checks if the value of the field is `APORT3CH0TO7`"]
#[inline(always)]
pub fn is_aport3ch0to7(&self) -> bool {
*self == INPUT8TO15SEL_A::APORT3CH0TO7
}
#[doc = "Checks if the value of the field is `APORT3CH8TO15`"]
#[inline(always)]
pub fn is_aport3ch8to15(&self) -> bool {
*self == INPUT8TO15SEL_A::APORT3CH8TO15
}
#[doc = "Checks if the value of the field is `APORT3CH16TO23`"]
#[inline(always)]
pub fn is_aport3ch16to23(&self) -> bool {
*self == INPUT8TO15SEL_A::APORT3CH16TO23
}
#[doc = "Checks if the value of the field is `APORT3CH24TO31`"]
#[inline(always)]
pub fn is_aport3ch24to31(&self) -> bool {
*self == INPUT8TO15SEL_A::APORT3CH24TO31
}
}
#[doc = "Field `INPUT8TO15SEL` writer - CSEN_INPUT8-15 Select"]
pub type INPUT8TO15SEL_W<'a, const O: u8> =
crate::FieldWriter<'a, u32, SCANINPUTSEL0_SPEC, u8, INPUT8TO15SEL_A, 4, O>;
impl<'a, const O: u8> INPUT8TO15SEL_W<'a, O> {
#[doc = "`100`"]
#[inline(always)]
pub fn aport1ch0to7(self) -> &'a mut W {
self.variant(INPUT8TO15SEL_A::APORT1CH0TO7)
}
#[doc = "`101`"]
#[inline(always)]
pub fn aport1ch8to15(self) -> &'a mut W {
self.variant(INPUT8TO15SEL_A::APORT1CH8TO15)
}
#[doc = "`110`"]
#[inline(always)]
pub fn aport1ch16to23(self) -> &'a mut W {
self.variant(INPUT8TO15SEL_A::APORT1CH16TO23)
}
#[doc = "`111`"]
#[inline(always)]
pub fn aport1ch24to31(self) -> &'a mut W {
self.variant(INPUT8TO15SEL_A::APORT1CH24TO31)
}
#[doc = "`1100`"]
#[inline(always)]
pub fn aport3ch0to7(self) -> &'a mut W {
self.variant(INPUT8TO15SEL_A::APORT3CH0TO7)
}
#[doc = "`1101`"]
#[inline(always)]
pub fn aport3ch8to15(self) -> &'a mut W {
self.variant(INPUT8TO15SEL_A::APORT3CH8TO15)
}
#[doc = "`1110`"]
#[inline(always)]
pub fn aport3ch16to23(self) -> &'a mut W {
self.variant(INPUT8TO15SEL_A::APORT3CH16TO23)
}
#[doc = "`1111`"]
#[inline(always)]
pub fn aport3ch24to31(self) -> &'a mut W {
self.variant(INPUT8TO15SEL_A::APORT3CH24TO31)
}
}
#[doc = "Field `INPUT16TO23SEL` reader - CSEN_INPUT16-23 Select"]
pub type INPUT16TO23SEL_R = crate::FieldReader<u8, INPUT16TO23SEL_A>;
#[doc = "CSEN_INPUT16-23 Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum INPUT16TO23SEL_A {
#[doc = "4: `100`"]
APORT1CH0TO7 = 4,
#[doc = "5: `101`"]
APORT1CH8TO15 = 5,
#[doc = "6: `110`"]
APORT1CH16TO23 = 6,
#[doc = "7: `111`"]
APORT1CH24TO31 = 7,
#[doc = "12: `1100`"]
APORT3CH0TO7 = 12,
#[doc = "13: `1101`"]
APORT3CH8TO15 = 13,
#[doc = "14: `1110`"]
APORT3CH16TO23 = 14,
#[doc = "15: `1111`"]
APORT3CH24TO31 = 15,
}
impl From<INPUT16TO23SEL_A> for u8 {
#[inline(always)]
fn from(variant: INPUT16TO23SEL_A) -> Self {
variant as _
}
}
impl INPUT16TO23SEL_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> Option<INPUT16TO23SEL_A> {
match self.bits {
4 => Some(INPUT16TO23SEL_A::APORT1CH0TO7),
5 => Some(INPUT16TO23SEL_A::APORT1CH8TO15),
6 => Some(INPUT16TO23SEL_A::APORT1CH16TO23),
7 => Some(INPUT16TO23SEL_A::APORT1CH24TO31),
12 => Some(INPUT16TO23SEL_A::APORT3CH0TO7),
13 => Some(INPUT16TO23SEL_A::APORT3CH8TO15),
14 => Some(INPUT16TO23SEL_A::APORT3CH16TO23),
15 => Some(INPUT16TO23SEL_A::APORT3CH24TO31),
_ => None,
}
}
#[doc = "Checks if the value of the field is `APORT1CH0TO7`"]
#[inline(always)]
pub fn is_aport1ch0to7(&self) -> bool {
*self == INPUT16TO23SEL_A::APORT1CH0TO7
}
#[doc = "Checks if the value of the field is `APORT1CH8TO15`"]
#[inline(always)]
pub fn is_aport1ch8to15(&self) -> bool {
*self == INPUT16TO23SEL_A::APORT1CH8TO15
}
#[doc = "Checks if the value of the field is `APORT1CH16TO23`"]
#[inline(always)]
pub fn is_aport1ch16to23(&self) -> bool {
*self == INPUT16TO23SEL_A::APORT1CH16TO23
}
#[doc = "Checks if the value of the field is `APORT1CH24TO31`"]
#[inline(always)]
pub fn is_aport1ch24to31(&self) -> bool {
*self == INPUT16TO23SEL_A::APORT1CH24TO31
}
#[doc = "Checks if the value of the field is `APORT3CH0TO7`"]
#[inline(always)]
pub fn is_aport3ch0to7(&self) -> bool {
*self == INPUT16TO23SEL_A::APORT3CH0TO7
}
#[doc = "Checks if the value of the field is `APORT3CH8TO15`"]
#[inline(always)]
pub fn is_aport3ch8to15(&self) -> bool {
*self == INPUT16TO23SEL_A::APORT3CH8TO15
}
#[doc = "Checks if the value of the field is `APORT3CH16TO23`"]
#[inline(always)]
pub fn is_aport3ch16to23(&self) -> bool {
*self == INPUT16TO23SEL_A::APORT3CH16TO23
}
#[doc = "Checks if the value of the field is `APORT3CH24TO31`"]
#[inline(always)]
pub fn is_aport3ch24to31(&self) -> bool {
*self == INPUT16TO23SEL_A::APORT3CH24TO31
}
}
#[doc = "Field `INPUT16TO23SEL` writer - CSEN_INPUT16-23 Select"]
pub type INPUT16TO23SEL_W<'a, const O: u8> =
crate::FieldWriter<'a, u32, SCANINPUTSEL0_SPEC, u8, INPUT16TO23SEL_A, 4, O>;
impl<'a, const O: u8> INPUT16TO23SEL_W<'a, O> {
#[doc = "`100`"]
#[inline(always)]
pub fn aport1ch0to7(self) -> &'a mut W {
self.variant(INPUT16TO23SEL_A::APORT1CH0TO7)
}
#[doc = "`101`"]
#[inline(always)]
pub fn aport1ch8to15(self) -> &'a mut W {
self.variant(INPUT16TO23SEL_A::APORT1CH8TO15)
}
#[doc = "`110`"]
#[inline(always)]
pub fn aport1ch16to23(self) -> &'a mut W {
self.variant(INPUT16TO23SEL_A::APORT1CH16TO23)
}
#[doc = "`111`"]
#[inline(always)]
pub fn aport1ch24to31(self) -> &'a mut W {
self.variant(INPUT16TO23SEL_A::APORT1CH24TO31)
}
#[doc = "`1100`"]
#[inline(always)]
pub fn aport3ch0to7(self) -> &'a mut W {
self.variant(INPUT16TO23SEL_A::APORT3CH0TO7)
}
#[doc = "`1101`"]
#[inline(always)]
pub fn aport3ch8to15(self) -> &'a mut W {
self.variant(INPUT16TO23SEL_A::APORT3CH8TO15)
}
#[doc = "`1110`"]
#[inline(always)]
pub fn aport3ch16to23(self) -> &'a mut W {
self.variant(INPUT16TO23SEL_A::APORT3CH16TO23)
}
#[doc = "`1111`"]
#[inline(always)]
pub fn aport3ch24to31(self) -> &'a mut W {
self.variant(INPUT16TO23SEL_A::APORT3CH24TO31)
}
}
#[doc = "Field `INPUT24TO31SEL` reader - CSEN_INPUT24-31 Select"]
pub type INPUT24TO31SEL_R = crate::FieldReader<u8, INPUT24TO31SEL_A>;
#[doc = "CSEN_INPUT24-31 Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum INPUT24TO31SEL_A {
#[doc = "4: `100`"]
APORT1CH0TO7 = 4,
#[doc = "5: `101`"]
APORT1CH8TO15 = 5,
#[doc = "6: `110`"]
APORT1CH16TO23 = 6,
#[doc = "7: `111`"]
APORT1CH24TO31 = 7,
#[doc = "12: `1100`"]
APORT3CH0TO7 = 12,
#[doc = "13: `1101`"]
APORT3CH8TO15 = 13,
#[doc = "14: `1110`"]
APORT3CH16TO23 = 14,
#[doc = "15: `1111`"]
APORT3CH24TO31 = 15,
}
impl From<INPUT24TO31SEL_A> for u8 {
#[inline(always)]
fn from(variant: INPUT24TO31SEL_A) -> Self {
variant as _
}
}
impl INPUT24TO31SEL_R {
#[doc = "Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> Option<INPUT24TO31SEL_A> {
match self.bits {
4 => Some(INPUT24TO31SEL_A::APORT1CH0TO7),
5 => Some(INPUT24TO31SEL_A::APORT1CH8TO15),
6 => Some(INPUT24TO31SEL_A::APORT1CH16TO23),
7 => Some(INPUT24TO31SEL_A::APORT1CH24TO31),
12 => Some(INPUT24TO31SEL_A::APORT3CH0TO7),
13 => Some(INPUT24TO31SEL_A::APORT3CH8TO15),
14 => Some(INPUT24TO31SEL_A::APORT3CH16TO23),
15 => Some(INPUT24TO31SEL_A::APORT3CH24TO31),
_ => None,
}
}
#[doc = "Checks if the value of the field is `APORT1CH0TO7`"]
#[inline(always)]
pub fn is_aport1ch0to7(&self) -> bool {
*self == INPUT24TO31SEL_A::APORT1CH0TO7
}
#[doc = "Checks if the value of the field is `APORT1CH8TO15`"]
#[inline(always)]
pub fn is_aport1ch8to15(&self) -> bool {
*self == INPUT24TO31SEL_A::APORT1CH8TO15
}
#[doc = "Checks if the value of the field is `APORT1CH16TO23`"]
#[inline(always)]
pub fn is_aport1ch16to23(&self) -> bool {
*self == INPUT24TO31SEL_A::APORT1CH16TO23
}
#[doc = "Checks if the value of the field is `APORT1CH24TO31`"]
#[inline(always)]
pub fn is_aport1ch24to31(&self) -> bool {
*self == INPUT24TO31SEL_A::APORT1CH24TO31
}
#[doc = "Checks if the value of the field is `APORT3CH0TO7`"]
#[inline(always)]
pub fn is_aport3ch0to7(&self) -> bool {
*self == INPUT24TO31SEL_A::APORT3CH0TO7
}
#[doc = "Checks if the value of the field is `APORT3CH8TO15`"]
#[inline(always)]
pub fn is_aport3ch8to15(&self) -> bool {
*self == INPUT24TO31SEL_A::APORT3CH8TO15
}
#[doc = "Checks if the value of the field is `APORT3CH16TO23`"]
#[inline(always)]
pub fn is_aport3ch16to23(&self) -> bool {
*self == INPUT24TO31SEL_A::APORT3CH16TO23
}
#[doc = "Checks if the value of the field is `APORT3CH24TO31`"]
#[inline(always)]
pub fn is_aport3ch24to31(&self) -> bool {
*self == INPUT24TO31SEL_A::APORT3CH24TO31
}
}
#[doc = "Field `INPUT24TO31SEL` writer - CSEN_INPUT24-31 Select"]
pub type INPUT24TO31SEL_W<'a, const O: u8> =
crate::FieldWriter<'a, u32, SCANINPUTSEL0_SPEC, u8, INPUT24TO31SEL_A, 4, O>;
impl<'a, const O: u8> INPUT24TO31SEL_W<'a, O> {
#[doc = "`100`"]
#[inline(always)]
pub fn aport1ch0to7(self) -> &'a mut W {
self.variant(INPUT24TO31SEL_A::APORT1CH0TO7)
}
#[doc = "`101`"]
#[inline(always)]
pub fn aport1ch8to15(self) -> &'a mut W {
self.variant(INPUT24TO31SEL_A::APORT1CH8TO15)
}
#[doc = "`110`"]
#[inline(always)]
pub fn aport1ch16to23(self) -> &'a mut W {
self.variant(INPUT24TO31SEL_A::APORT1CH16TO23)
}
#[doc = "`111`"]
#[inline(always)]
pub fn aport1ch24to31(self) -> &'a mut W {
self.variant(INPUT24TO31SEL_A::APORT1CH24TO31)
}
#[doc = "`1100`"]
#[inline(always)]
pub fn aport3ch0to7(self) -> &'a mut W {
self.variant(INPUT24TO31SEL_A::APORT3CH0TO7)
}
#[doc = "`1101`"]
#[inline(always)]
pub fn aport3ch8to15(self) -> &'a mut W {
self.variant(INPUT24TO31SEL_A::APORT3CH8TO15)
}
#[doc = "`1110`"]
#[inline(always)]
pub fn aport3ch16to23(self) -> &'a mut W {
self.variant(INPUT24TO31SEL_A::APORT3CH16TO23)
}
#[doc = "`1111`"]
#[inline(always)]
pub fn aport3ch24to31(self) -> &'a mut W {
self.variant(INPUT24TO31SEL_A::APORT3CH24TO31)
}
}
impl R {
#[doc = "Bits 0:3 - CSEN_INPUT0-7 Select"]
#[inline(always)]
pub fn input0to7sel(&self) -> INPUT0TO7SEL_R {
INPUT0TO7SEL_R::new((self.bits & 0x0f) as u8)
}
#[doc = "Bits 8:11 - CSEN_INPUT8-15 Select"]
#[inline(always)]
pub fn input8to15sel(&self) -> INPUT8TO15SEL_R {
INPUT8TO15SEL_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[doc = "Bits 16:19 - CSEN_INPUT16-23 Select"]
#[inline(always)]
pub fn input16to23sel(&self) -> INPUT16TO23SEL_R {
INPUT16TO23SEL_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[doc = "Bits 24:27 - CSEN_INPUT24-31 Select"]
#[inline(always)]
pub fn input24to31sel(&self) -> INPUT24TO31SEL_R {
INPUT24TO31SEL_R::new(((self.bits >> 24) & 0x0f) as u8)
}
}
impl W {
#[doc = "Bits 0:3 - CSEN_INPUT0-7 Select"]
#[inline(always)]
#[must_use]
pub fn input0to7sel(&mut self) -> INPUT0TO7SEL_W<0> {
INPUT0TO7SEL_W::new(self)
}
#[doc = "Bits 8:11 - CSEN_INPUT8-15 Select"]
#[inline(always)]
#[must_use]
pub fn input8to15sel(&mut self) -> INPUT8TO15SEL_W<8> {
INPUT8TO15SEL_W::new(self)
}
#[doc = "Bits 16:19 - CSEN_INPUT16-23 Select"]
#[inline(always)]
#[must_use]
pub fn input16to23sel(&mut self) -> INPUT16TO23SEL_W<16> {
INPUT16TO23SEL_W::new(self)
}
#[doc = "Bits 24:27 - CSEN_INPUT24-31 Select"]
#[inline(always)]
#[must_use]
pub fn input24to31sel(&mut self) -> INPUT24TO31SEL_W<24> {
INPUT24TO31SEL_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 = "Scan Input Selection 0\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 [scaninputsel0](index.html) module"]
pub struct SCANINPUTSEL0_SPEC;
impl crate::RegisterSpec for SCANINPUTSEL0_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [scaninputsel0::R](R) reader structure"]
impl crate::Readable for SCANINPUTSEL0_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [scaninputsel0::W](W) writer structure"]
impl crate::Writable for SCANINPUTSEL0_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 SCANINPUTSEL0 to value 0"]
impl crate::Resettable for SCANINPUTSEL0_SPEC {
const RESET_VALUE: Self::Ux = 0;
}