#[doc = "Register `AFSEL1` reader"]
pub struct R(crate::R<AFSEL1_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<AFSEL1_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<AFSEL1_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<AFSEL1_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `AFSEL1` writer"]
pub struct W(crate::W<AFSEL1_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<AFSEL1_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<AFSEL1_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<AFSEL1_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Pin 15 alternate function selected"]
pub type SEL15_A = SEL8_A;
#[doc = "Field `SEL15` reader - Pin 15 alternate function selected"]
pub type SEL15_R = SEL8_R;
#[doc = "Field `SEL15` writer - Pin 15 alternate function selected"]
pub struct SEL15_W<'a> {
w: &'a mut W,
}
impl<'a> SEL15_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SEL15_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "AF0"]
#[inline(always)]
pub fn af0(self) -> &'a mut W {
self.variant(SEL15_A::AF0)
}
#[doc = "AF1"]
#[inline(always)]
pub fn af1(self) -> &'a mut W {
self.variant(SEL15_A::AF1)
}
#[doc = "AF2"]
#[inline(always)]
pub fn af2(self) -> &'a mut W {
self.variant(SEL15_A::AF2)
}
#[doc = "AF3"]
#[inline(always)]
pub fn af3(self) -> &'a mut W {
self.variant(SEL15_A::AF3)
}
#[doc = "AF4"]
#[inline(always)]
pub fn af4(self) -> &'a mut W {
self.variant(SEL15_A::AF4)
}
#[doc = "AF5"]
#[inline(always)]
pub fn af5(self) -> &'a mut W {
self.variant(SEL15_A::AF5)
}
#[doc = "AF6"]
#[inline(always)]
pub fn af6(self) -> &'a mut W {
self.variant(SEL15_A::AF6)
}
#[doc = "AF7"]
#[inline(always)]
pub fn af7(self) -> &'a mut W {
self.variant(SEL15_A::AF7)
}
#[doc = "AF9"]
#[inline(always)]
pub fn af9(self) -> &'a mut W {
self.variant(SEL15_A::AF9)
}
#[doc = "AF11"]
#[inline(always)]
pub fn af11(self) -> &'a mut W {
self.variant(SEL15_A::AF11)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 28)) | ((value as u32 & 0x0f) << 28);
self.w
}
}
#[doc = "Pin 14 alternate function selected"]
pub type SEL14_A = SEL8_A;
#[doc = "Field `SEL14` reader - Pin 14 alternate function selected"]
pub type SEL14_R = SEL8_R;
#[doc = "Field `SEL14` writer - Pin 14 alternate function selected"]
pub struct SEL14_W<'a> {
w: &'a mut W,
}
impl<'a> SEL14_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SEL14_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "AF0"]
#[inline(always)]
pub fn af0(self) -> &'a mut W {
self.variant(SEL14_A::AF0)
}
#[doc = "AF1"]
#[inline(always)]
pub fn af1(self) -> &'a mut W {
self.variant(SEL14_A::AF1)
}
#[doc = "AF2"]
#[inline(always)]
pub fn af2(self) -> &'a mut W {
self.variant(SEL14_A::AF2)
}
#[doc = "AF3"]
#[inline(always)]
pub fn af3(self) -> &'a mut W {
self.variant(SEL14_A::AF3)
}
#[doc = "AF4"]
#[inline(always)]
pub fn af4(self) -> &'a mut W {
self.variant(SEL14_A::AF4)
}
#[doc = "AF5"]
#[inline(always)]
pub fn af5(self) -> &'a mut W {
self.variant(SEL14_A::AF5)
}
#[doc = "AF6"]
#[inline(always)]
pub fn af6(self) -> &'a mut W {
self.variant(SEL14_A::AF6)
}
#[doc = "AF7"]
#[inline(always)]
pub fn af7(self) -> &'a mut W {
self.variant(SEL14_A::AF7)
}
#[doc = "AF9"]
#[inline(always)]
pub fn af9(self) -> &'a mut W {
self.variant(SEL14_A::AF9)
}
#[doc = "AF11"]
#[inline(always)]
pub fn af11(self) -> &'a mut W {
self.variant(SEL14_A::AF11)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 24)) | ((value as u32 & 0x0f) << 24);
self.w
}
}
#[doc = "Pin 13 alternate function selected"]
pub type SEL13_A = SEL8_A;
#[doc = "Field `SEL13` reader - Pin 13 alternate function selected"]
pub type SEL13_R = SEL8_R;
#[doc = "Field `SEL13` writer - Pin 13 alternate function selected"]
pub struct SEL13_W<'a> {
w: &'a mut W,
}
impl<'a> SEL13_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SEL13_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "AF0"]
#[inline(always)]
pub fn af0(self) -> &'a mut W {
self.variant(SEL13_A::AF0)
}
#[doc = "AF1"]
#[inline(always)]
pub fn af1(self) -> &'a mut W {
self.variant(SEL13_A::AF1)
}
#[doc = "AF2"]
#[inline(always)]
pub fn af2(self) -> &'a mut W {
self.variant(SEL13_A::AF2)
}
#[doc = "AF3"]
#[inline(always)]
pub fn af3(self) -> &'a mut W {
self.variant(SEL13_A::AF3)
}
#[doc = "AF4"]
#[inline(always)]
pub fn af4(self) -> &'a mut W {
self.variant(SEL13_A::AF4)
}
#[doc = "AF5"]
#[inline(always)]
pub fn af5(self) -> &'a mut W {
self.variant(SEL13_A::AF5)
}
#[doc = "AF6"]
#[inline(always)]
pub fn af6(self) -> &'a mut W {
self.variant(SEL13_A::AF6)
}
#[doc = "AF7"]
#[inline(always)]
pub fn af7(self) -> &'a mut W {
self.variant(SEL13_A::AF7)
}
#[doc = "AF9"]
#[inline(always)]
pub fn af9(self) -> &'a mut W {
self.variant(SEL13_A::AF9)
}
#[doc = "AF11"]
#[inline(always)]
pub fn af11(self) -> &'a mut W {
self.variant(SEL13_A::AF11)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 20)) | ((value as u32 & 0x0f) << 20);
self.w
}
}
#[doc = "Pin 12 alternate function selected"]
pub type SEL12_A = SEL8_A;
#[doc = "Field `SEL12` reader - Pin 12 alternate function selected"]
pub type SEL12_R = SEL8_R;
#[doc = "Field `SEL12` writer - Pin 12 alternate function selected"]
pub struct SEL12_W<'a> {
w: &'a mut W,
}
impl<'a> SEL12_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SEL12_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "AF0"]
#[inline(always)]
pub fn af0(self) -> &'a mut W {
self.variant(SEL12_A::AF0)
}
#[doc = "AF1"]
#[inline(always)]
pub fn af1(self) -> &'a mut W {
self.variant(SEL12_A::AF1)
}
#[doc = "AF2"]
#[inline(always)]
pub fn af2(self) -> &'a mut W {
self.variant(SEL12_A::AF2)
}
#[doc = "AF3"]
#[inline(always)]
pub fn af3(self) -> &'a mut W {
self.variant(SEL12_A::AF3)
}
#[doc = "AF4"]
#[inline(always)]
pub fn af4(self) -> &'a mut W {
self.variant(SEL12_A::AF4)
}
#[doc = "AF5"]
#[inline(always)]
pub fn af5(self) -> &'a mut W {
self.variant(SEL12_A::AF5)
}
#[doc = "AF6"]
#[inline(always)]
pub fn af6(self) -> &'a mut W {
self.variant(SEL12_A::AF6)
}
#[doc = "AF7"]
#[inline(always)]
pub fn af7(self) -> &'a mut W {
self.variant(SEL12_A::AF7)
}
#[doc = "AF9"]
#[inline(always)]
pub fn af9(self) -> &'a mut W {
self.variant(SEL12_A::AF9)
}
#[doc = "AF11"]
#[inline(always)]
pub fn af11(self) -> &'a mut W {
self.variant(SEL12_A::AF11)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 16)) | ((value as u32 & 0x0f) << 16);
self.w
}
}
#[doc = "Pin 11 alternate function selected"]
pub type SEL11_A = SEL8_A;
#[doc = "Field `SEL11` reader - Pin 11 alternate function selected"]
pub type SEL11_R = SEL8_R;
#[doc = "Field `SEL11` writer - Pin 11 alternate function selected"]
pub struct SEL11_W<'a> {
w: &'a mut W,
}
impl<'a> SEL11_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SEL11_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "AF0"]
#[inline(always)]
pub fn af0(self) -> &'a mut W {
self.variant(SEL11_A::AF0)
}
#[doc = "AF1"]
#[inline(always)]
pub fn af1(self) -> &'a mut W {
self.variant(SEL11_A::AF1)
}
#[doc = "AF2"]
#[inline(always)]
pub fn af2(self) -> &'a mut W {
self.variant(SEL11_A::AF2)
}
#[doc = "AF3"]
#[inline(always)]
pub fn af3(self) -> &'a mut W {
self.variant(SEL11_A::AF3)
}
#[doc = "AF4"]
#[inline(always)]
pub fn af4(self) -> &'a mut W {
self.variant(SEL11_A::AF4)
}
#[doc = "AF5"]
#[inline(always)]
pub fn af5(self) -> &'a mut W {
self.variant(SEL11_A::AF5)
}
#[doc = "AF6"]
#[inline(always)]
pub fn af6(self) -> &'a mut W {
self.variant(SEL11_A::AF6)
}
#[doc = "AF7"]
#[inline(always)]
pub fn af7(self) -> &'a mut W {
self.variant(SEL11_A::AF7)
}
#[doc = "AF9"]
#[inline(always)]
pub fn af9(self) -> &'a mut W {
self.variant(SEL11_A::AF9)
}
#[doc = "AF11"]
#[inline(always)]
pub fn af11(self) -> &'a mut W {
self.variant(SEL11_A::AF11)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 12)) | ((value as u32 & 0x0f) << 12);
self.w
}
}
#[doc = "Pin 10 alternate function selected"]
pub type SEL10_A = SEL8_A;
#[doc = "Field `SEL10` reader - Pin 10 alternate function selected"]
pub type SEL10_R = SEL8_R;
#[doc = "Field `SEL10` writer - Pin 10 alternate function selected"]
pub struct SEL10_W<'a> {
w: &'a mut W,
}
impl<'a> SEL10_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SEL10_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "AF0"]
#[inline(always)]
pub fn af0(self) -> &'a mut W {
self.variant(SEL10_A::AF0)
}
#[doc = "AF1"]
#[inline(always)]
pub fn af1(self) -> &'a mut W {
self.variant(SEL10_A::AF1)
}
#[doc = "AF2"]
#[inline(always)]
pub fn af2(self) -> &'a mut W {
self.variant(SEL10_A::AF2)
}
#[doc = "AF3"]
#[inline(always)]
pub fn af3(self) -> &'a mut W {
self.variant(SEL10_A::AF3)
}
#[doc = "AF4"]
#[inline(always)]
pub fn af4(self) -> &'a mut W {
self.variant(SEL10_A::AF4)
}
#[doc = "AF5"]
#[inline(always)]
pub fn af5(self) -> &'a mut W {
self.variant(SEL10_A::AF5)
}
#[doc = "AF6"]
#[inline(always)]
pub fn af6(self) -> &'a mut W {
self.variant(SEL10_A::AF6)
}
#[doc = "AF7"]
#[inline(always)]
pub fn af7(self) -> &'a mut W {
self.variant(SEL10_A::AF7)
}
#[doc = "AF9"]
#[inline(always)]
pub fn af9(self) -> &'a mut W {
self.variant(SEL10_A::AF9)
}
#[doc = "AF11"]
#[inline(always)]
pub fn af11(self) -> &'a mut W {
self.variant(SEL10_A::AF11)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 8)) | ((value as u32 & 0x0f) << 8);
self.w
}
}
#[doc = "Pin 9 alternate function selected"]
pub type SEL9_A = SEL8_A;
#[doc = "Field `SEL9` reader - Pin 9 alternate function selected"]
pub type SEL9_R = SEL8_R;
#[doc = "Field `SEL9` writer - Pin 9 alternate function selected"]
pub struct SEL9_W<'a> {
w: &'a mut W,
}
impl<'a> SEL9_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SEL9_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "AF0"]
#[inline(always)]
pub fn af0(self) -> &'a mut W {
self.variant(SEL9_A::AF0)
}
#[doc = "AF1"]
#[inline(always)]
pub fn af1(self) -> &'a mut W {
self.variant(SEL9_A::AF1)
}
#[doc = "AF2"]
#[inline(always)]
pub fn af2(self) -> &'a mut W {
self.variant(SEL9_A::AF2)
}
#[doc = "AF3"]
#[inline(always)]
pub fn af3(self) -> &'a mut W {
self.variant(SEL9_A::AF3)
}
#[doc = "AF4"]
#[inline(always)]
pub fn af4(self) -> &'a mut W {
self.variant(SEL9_A::AF4)
}
#[doc = "AF5"]
#[inline(always)]
pub fn af5(self) -> &'a mut W {
self.variant(SEL9_A::AF5)
}
#[doc = "AF6"]
#[inline(always)]
pub fn af6(self) -> &'a mut W {
self.variant(SEL9_A::AF6)
}
#[doc = "AF7"]
#[inline(always)]
pub fn af7(self) -> &'a mut W {
self.variant(SEL9_A::AF7)
}
#[doc = "AF9"]
#[inline(always)]
pub fn af9(self) -> &'a mut W {
self.variant(SEL9_A::AF9)
}
#[doc = "AF11"]
#[inline(always)]
pub fn af11(self) -> &'a mut W {
self.variant(SEL9_A::AF11)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 4)) | ((value as u32 & 0x0f) << 4);
self.w
}
}
#[doc = "Pin 8 alternate function selected\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum SEL8_A {
#[doc = "0: AF0"]
AF0 = 0,
#[doc = "1: AF1"]
AF1 = 1,
#[doc = "2: AF2"]
AF2 = 2,
#[doc = "3: AF3"]
AF3 = 3,
#[doc = "4: AF4"]
AF4 = 4,
#[doc = "5: AF5"]
AF5 = 5,
#[doc = "6: AF6"]
AF6 = 6,
#[doc = "7: AF7"]
AF7 = 7,
#[doc = "9: AF9"]
AF9 = 9,
#[doc = "11: AF11"]
AF11 = 11,
}
impl From<SEL8_A> for u8 {
#[inline(always)]
fn from(variant: SEL8_A) -> Self {
variant as _
}
}
#[doc = "Field `SEL8` reader - Pin 8 alternate function selected"]
pub struct SEL8_R(crate::FieldReader<u8, SEL8_A>);
impl SEL8_R {
pub(crate) fn new(bits: u8) -> Self {
SEL8_R(crate::FieldReader::new(bits))
}
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> Option<SEL8_A> {
match self.bits {
0 => Some(SEL8_A::AF0),
1 => Some(SEL8_A::AF1),
2 => Some(SEL8_A::AF2),
3 => Some(SEL8_A::AF3),
4 => Some(SEL8_A::AF4),
5 => Some(SEL8_A::AF5),
6 => Some(SEL8_A::AF6),
7 => Some(SEL8_A::AF7),
9 => Some(SEL8_A::AF9),
11 => Some(SEL8_A::AF11),
_ => None,
}
}
#[doc = "Checks if the value of the field is `AF0`"]
#[inline(always)]
pub fn is_af0(&self) -> bool {
**self == SEL8_A::AF0
}
#[doc = "Checks if the value of the field is `AF1`"]
#[inline(always)]
pub fn is_af1(&self) -> bool {
**self == SEL8_A::AF1
}
#[doc = "Checks if the value of the field is `AF2`"]
#[inline(always)]
pub fn is_af2(&self) -> bool {
**self == SEL8_A::AF2
}
#[doc = "Checks if the value of the field is `AF3`"]
#[inline(always)]
pub fn is_af3(&self) -> bool {
**self == SEL8_A::AF3
}
#[doc = "Checks if the value of the field is `AF4`"]
#[inline(always)]
pub fn is_af4(&self) -> bool {
**self == SEL8_A::AF4
}
#[doc = "Checks if the value of the field is `AF5`"]
#[inline(always)]
pub fn is_af5(&self) -> bool {
**self == SEL8_A::AF5
}
#[doc = "Checks if the value of the field is `AF6`"]
#[inline(always)]
pub fn is_af6(&self) -> bool {
**self == SEL8_A::AF6
}
#[doc = "Checks if the value of the field is `AF7`"]
#[inline(always)]
pub fn is_af7(&self) -> bool {
**self == SEL8_A::AF7
}
#[doc = "Checks if the value of the field is `AF9`"]
#[inline(always)]
pub fn is_af9(&self) -> bool {
**self == SEL8_A::AF9
}
#[doc = "Checks if the value of the field is `AF11`"]
#[inline(always)]
pub fn is_af11(&self) -> bool {
**self == SEL8_A::AF11
}
}
impl core::ops::Deref for SEL8_R {
type Target = crate::FieldReader<u8, SEL8_A>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `SEL8` writer - Pin 8 alternate function selected"]
pub struct SEL8_W<'a> {
w: &'a mut W,
}
impl<'a> SEL8_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: SEL8_A) -> &'a mut W {
unsafe { self.bits(variant.into()) }
}
#[doc = "AF0"]
#[inline(always)]
pub fn af0(self) -> &'a mut W {
self.variant(SEL8_A::AF0)
}
#[doc = "AF1"]
#[inline(always)]
pub fn af1(self) -> &'a mut W {
self.variant(SEL8_A::AF1)
}
#[doc = "AF2"]
#[inline(always)]
pub fn af2(self) -> &'a mut W {
self.variant(SEL8_A::AF2)
}
#[doc = "AF3"]
#[inline(always)]
pub fn af3(self) -> &'a mut W {
self.variant(SEL8_A::AF3)
}
#[doc = "AF4"]
#[inline(always)]
pub fn af4(self) -> &'a mut W {
self.variant(SEL8_A::AF4)
}
#[doc = "AF5"]
#[inline(always)]
pub fn af5(self) -> &'a mut W {
self.variant(SEL8_A::AF5)
}
#[doc = "AF6"]
#[inline(always)]
pub fn af6(self) -> &'a mut W {
self.variant(SEL8_A::AF6)
}
#[doc = "AF7"]
#[inline(always)]
pub fn af7(self) -> &'a mut W {
self.variant(SEL8_A::AF7)
}
#[doc = "AF9"]
#[inline(always)]
pub fn af9(self) -> &'a mut W {
self.variant(SEL8_A::AF9)
}
#[doc = "AF11"]
#[inline(always)]
pub fn af11(self) -> &'a mut W {
self.variant(SEL8_A::AF11)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !0x0f) | (value as u32 & 0x0f);
self.w
}
}
impl R {
#[doc = "Bits 28:31 - Pin 15 alternate function selected"]
#[inline(always)]
pub fn sel15(&self) -> SEL15_R {
SEL15_R::new(((self.bits >> 28) & 0x0f) as u8)
}
#[doc = "Bits 24:27 - Pin 14 alternate function selected"]
#[inline(always)]
pub fn sel14(&self) -> SEL14_R {
SEL14_R::new(((self.bits >> 24) & 0x0f) as u8)
}
#[doc = "Bits 20:23 - Pin 13 alternate function selected"]
#[inline(always)]
pub fn sel13(&self) -> SEL13_R {
SEL13_R::new(((self.bits >> 20) & 0x0f) as u8)
}
#[doc = "Bits 16:19 - Pin 12 alternate function selected"]
#[inline(always)]
pub fn sel12(&self) -> SEL12_R {
SEL12_R::new(((self.bits >> 16) & 0x0f) as u8)
}
#[doc = "Bits 12:15 - Pin 11 alternate function selected"]
#[inline(always)]
pub fn sel11(&self) -> SEL11_R {
SEL11_R::new(((self.bits >> 12) & 0x0f) as u8)
}
#[doc = "Bits 8:11 - Pin 10 alternate function selected"]
#[inline(always)]
pub fn sel10(&self) -> SEL10_R {
SEL10_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[doc = "Bits 4:7 - Pin 9 alternate function selected"]
#[inline(always)]
pub fn sel9(&self) -> SEL9_R {
SEL9_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[doc = "Bits 0:3 - Pin 8 alternate function selected"]
#[inline(always)]
pub fn sel8(&self) -> SEL8_R {
SEL8_R::new((self.bits & 0x0f) as u8)
}
}
impl W {
#[doc = "Bits 28:31 - Pin 15 alternate function selected"]
#[inline(always)]
pub fn sel15(&mut self) -> SEL15_W {
SEL15_W { w: self }
}
#[doc = "Bits 24:27 - Pin 14 alternate function selected"]
#[inline(always)]
pub fn sel14(&mut self) -> SEL14_W {
SEL14_W { w: self }
}
#[doc = "Bits 20:23 - Pin 13 alternate function selected"]
#[inline(always)]
pub fn sel13(&mut self) -> SEL13_W {
SEL13_W { w: self }
}
#[doc = "Bits 16:19 - Pin 12 alternate function selected"]
#[inline(always)]
pub fn sel12(&mut self) -> SEL12_W {
SEL12_W { w: self }
}
#[doc = "Bits 12:15 - Pin 11 alternate function selected"]
#[inline(always)]
pub fn sel11(&mut self) -> SEL11_W {
SEL11_W { w: self }
}
#[doc = "Bits 8:11 - Pin 10 alternate function selected"]
#[inline(always)]
pub fn sel10(&mut self) -> SEL10_W {
SEL10_W { w: self }
}
#[doc = "Bits 4:7 - Pin 9 alternate function selected"]
#[inline(always)]
pub fn sel9(&mut self) -> SEL9_W {
SEL9_W { w: self }
}
#[doc = "Bits 0:3 - Pin 8 alternate function selected"]
#[inline(always)]
pub fn sel8(&mut self) -> SEL8_W {
SEL8_W { w: 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 = "GPIO alternate function register 1\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 [afsel1](index.html) module"]
pub struct AFSEL1_SPEC;
impl crate::RegisterSpec for AFSEL1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [afsel1::R](R) reader structure"]
impl crate::Readable for AFSEL1_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [afsel1::W](W) writer structure"]
impl crate::Writable for AFSEL1_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets AFSEL1 to value 0"]
impl crate::Resettable for AFSEL1_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}