pub type R = crate::R<ROUTELOC0rs>;
pub type W = crate::W<ROUTELOC0rs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum OUT0LOC {
Loc0 = 0,
Loc1 = 1,
Loc2 = 2,
Loc3 = 3,
Loc4 = 4,
Loc5 = 5,
Loc6 = 6,
Loc7 = 7,
Loc8 = 8,
Loc9 = 9,
Loc10 = 10,
Loc11 = 11,
Loc12 = 12,
Loc13 = 13,
Loc14 = 14,
Loc15 = 15,
Loc16 = 16,
Loc17 = 17,
Loc18 = 18,
Loc19 = 19,
Loc20 = 20,
Loc21 = 21,
Loc22 = 22,
Loc23 = 23,
Loc24 = 24,
Loc25 = 25,
Loc26 = 26,
Loc27 = 27,
Loc28 = 28,
Loc29 = 29,
Loc30 = 30,
Loc31 = 31,
}
impl From<OUT0LOC> for u8 {
#[inline(always)]
fn from(variant: OUT0LOC) -> Self {
variant as _
}
}
impl crate::FieldSpec for OUT0LOC {
type Ux = u8;
}
impl crate::IsEnum for OUT0LOC {}
pub type Out0locR = crate::FieldReader<OUT0LOC>;
impl Out0locR {
#[inline(always)]
pub const fn variant(&self) -> Option<OUT0LOC> {
match self.bits {
0 => Some(OUT0LOC::Loc0),
1 => Some(OUT0LOC::Loc1),
2 => Some(OUT0LOC::Loc2),
3 => Some(OUT0LOC::Loc3),
4 => Some(OUT0LOC::Loc4),
5 => Some(OUT0LOC::Loc5),
6 => Some(OUT0LOC::Loc6),
7 => Some(OUT0LOC::Loc7),
8 => Some(OUT0LOC::Loc8),
9 => Some(OUT0LOC::Loc9),
10 => Some(OUT0LOC::Loc10),
11 => Some(OUT0LOC::Loc11),
12 => Some(OUT0LOC::Loc12),
13 => Some(OUT0LOC::Loc13),
14 => Some(OUT0LOC::Loc14),
15 => Some(OUT0LOC::Loc15),
16 => Some(OUT0LOC::Loc16),
17 => Some(OUT0LOC::Loc17),
18 => Some(OUT0LOC::Loc18),
19 => Some(OUT0LOC::Loc19),
20 => Some(OUT0LOC::Loc20),
21 => Some(OUT0LOC::Loc21),
22 => Some(OUT0LOC::Loc22),
23 => Some(OUT0LOC::Loc23),
24 => Some(OUT0LOC::Loc24),
25 => Some(OUT0LOC::Loc25),
26 => Some(OUT0LOC::Loc26),
27 => Some(OUT0LOC::Loc27),
28 => Some(OUT0LOC::Loc28),
29 => Some(OUT0LOC::Loc29),
30 => Some(OUT0LOC::Loc30),
31 => Some(OUT0LOC::Loc31),
_ => None,
}
}
#[inline(always)]
pub fn is_loc0(&self) -> bool {
*self == OUT0LOC::Loc0
}
#[inline(always)]
pub fn is_loc1(&self) -> bool {
*self == OUT0LOC::Loc1
}
#[inline(always)]
pub fn is_loc2(&self) -> bool {
*self == OUT0LOC::Loc2
}
#[inline(always)]
pub fn is_loc3(&self) -> bool {
*self == OUT0LOC::Loc3
}
#[inline(always)]
pub fn is_loc4(&self) -> bool {
*self == OUT0LOC::Loc4
}
#[inline(always)]
pub fn is_loc5(&self) -> bool {
*self == OUT0LOC::Loc5
}
#[inline(always)]
pub fn is_loc6(&self) -> bool {
*self == OUT0LOC::Loc6
}
#[inline(always)]
pub fn is_loc7(&self) -> bool {
*self == OUT0LOC::Loc7
}
#[inline(always)]
pub fn is_loc8(&self) -> bool {
*self == OUT0LOC::Loc8
}
#[inline(always)]
pub fn is_loc9(&self) -> bool {
*self == OUT0LOC::Loc9
}
#[inline(always)]
pub fn is_loc10(&self) -> bool {
*self == OUT0LOC::Loc10
}
#[inline(always)]
pub fn is_loc11(&self) -> bool {
*self == OUT0LOC::Loc11
}
#[inline(always)]
pub fn is_loc12(&self) -> bool {
*self == OUT0LOC::Loc12
}
#[inline(always)]
pub fn is_loc13(&self) -> bool {
*self == OUT0LOC::Loc13
}
#[inline(always)]
pub fn is_loc14(&self) -> bool {
*self == OUT0LOC::Loc14
}
#[inline(always)]
pub fn is_loc15(&self) -> bool {
*self == OUT0LOC::Loc15
}
#[inline(always)]
pub fn is_loc16(&self) -> bool {
*self == OUT0LOC::Loc16
}
#[inline(always)]
pub fn is_loc17(&self) -> bool {
*self == OUT0LOC::Loc17
}
#[inline(always)]
pub fn is_loc18(&self) -> bool {
*self == OUT0LOC::Loc18
}
#[inline(always)]
pub fn is_loc19(&self) -> bool {
*self == OUT0LOC::Loc19
}
#[inline(always)]
pub fn is_loc20(&self) -> bool {
*self == OUT0LOC::Loc20
}
#[inline(always)]
pub fn is_loc21(&self) -> bool {
*self == OUT0LOC::Loc21
}
#[inline(always)]
pub fn is_loc22(&self) -> bool {
*self == OUT0LOC::Loc22
}
#[inline(always)]
pub fn is_loc23(&self) -> bool {
*self == OUT0LOC::Loc23
}
#[inline(always)]
pub fn is_loc24(&self) -> bool {
*self == OUT0LOC::Loc24
}
#[inline(always)]
pub fn is_loc25(&self) -> bool {
*self == OUT0LOC::Loc25
}
#[inline(always)]
pub fn is_loc26(&self) -> bool {
*self == OUT0LOC::Loc26
}
#[inline(always)]
pub fn is_loc27(&self) -> bool {
*self == OUT0LOC::Loc27
}
#[inline(always)]
pub fn is_loc28(&self) -> bool {
*self == OUT0LOC::Loc28
}
#[inline(always)]
pub fn is_loc29(&self) -> bool {
*self == OUT0LOC::Loc29
}
#[inline(always)]
pub fn is_loc30(&self) -> bool {
*self == OUT0LOC::Loc30
}
#[inline(always)]
pub fn is_loc31(&self) -> bool {
*self == OUT0LOC::Loc31
}
}
pub type Out0locW<'a, REG> = crate::FieldWriter<'a, REG, 6, OUT0LOC>;
impl<'a, REG> Out0locW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn loc0(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc0)
}
#[inline(always)]
pub fn loc1(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc1)
}
#[inline(always)]
pub fn loc2(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc2)
}
#[inline(always)]
pub fn loc3(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc3)
}
#[inline(always)]
pub fn loc4(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc4)
}
#[inline(always)]
pub fn loc5(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc5)
}
#[inline(always)]
pub fn loc6(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc6)
}
#[inline(always)]
pub fn loc7(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc7)
}
#[inline(always)]
pub fn loc8(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc8)
}
#[inline(always)]
pub fn loc9(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc9)
}
#[inline(always)]
pub fn loc10(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc10)
}
#[inline(always)]
pub fn loc11(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc11)
}
#[inline(always)]
pub fn loc12(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc12)
}
#[inline(always)]
pub fn loc13(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc13)
}
#[inline(always)]
pub fn loc14(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc14)
}
#[inline(always)]
pub fn loc15(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc15)
}
#[inline(always)]
pub fn loc16(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc16)
}
#[inline(always)]
pub fn loc17(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc17)
}
#[inline(always)]
pub fn loc18(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc18)
}
#[inline(always)]
pub fn loc19(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc19)
}
#[inline(always)]
pub fn loc20(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc20)
}
#[inline(always)]
pub fn loc21(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc21)
}
#[inline(always)]
pub fn loc22(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc22)
}
#[inline(always)]
pub fn loc23(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc23)
}
#[inline(always)]
pub fn loc24(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc24)
}
#[inline(always)]
pub fn loc25(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc25)
}
#[inline(always)]
pub fn loc26(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc26)
}
#[inline(always)]
pub fn loc27(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc27)
}
#[inline(always)]
pub fn loc28(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc28)
}
#[inline(always)]
pub fn loc29(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc29)
}
#[inline(always)]
pub fn loc30(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc30)
}
#[inline(always)]
pub fn loc31(self) -> &'a mut crate::W<REG> {
self.variant(OUT0LOC::Loc31)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum OUT1LOC {
Loc0 = 0,
Loc1 = 1,
Loc2 = 2,
Loc3 = 3,
Loc4 = 4,
Loc5 = 5,
Loc6 = 6,
Loc7 = 7,
Loc8 = 8,
Loc9 = 9,
Loc10 = 10,
Loc11 = 11,
Loc12 = 12,
Loc13 = 13,
Loc14 = 14,
Loc15 = 15,
Loc16 = 16,
Loc17 = 17,
Loc18 = 18,
Loc19 = 19,
Loc20 = 20,
Loc21 = 21,
Loc22 = 22,
Loc23 = 23,
Loc24 = 24,
Loc25 = 25,
Loc26 = 26,
Loc27 = 27,
Loc28 = 28,
Loc29 = 29,
Loc30 = 30,
Loc31 = 31,
}
impl From<OUT1LOC> for u8 {
#[inline(always)]
fn from(variant: OUT1LOC) -> Self {
variant as _
}
}
impl crate::FieldSpec for OUT1LOC {
type Ux = u8;
}
impl crate::IsEnum for OUT1LOC {}
pub type Out1locR = crate::FieldReader<OUT1LOC>;
impl Out1locR {
#[inline(always)]
pub const fn variant(&self) -> Option<OUT1LOC> {
match self.bits {
0 => Some(OUT1LOC::Loc0),
1 => Some(OUT1LOC::Loc1),
2 => Some(OUT1LOC::Loc2),
3 => Some(OUT1LOC::Loc3),
4 => Some(OUT1LOC::Loc4),
5 => Some(OUT1LOC::Loc5),
6 => Some(OUT1LOC::Loc6),
7 => Some(OUT1LOC::Loc7),
8 => Some(OUT1LOC::Loc8),
9 => Some(OUT1LOC::Loc9),
10 => Some(OUT1LOC::Loc10),
11 => Some(OUT1LOC::Loc11),
12 => Some(OUT1LOC::Loc12),
13 => Some(OUT1LOC::Loc13),
14 => Some(OUT1LOC::Loc14),
15 => Some(OUT1LOC::Loc15),
16 => Some(OUT1LOC::Loc16),
17 => Some(OUT1LOC::Loc17),
18 => Some(OUT1LOC::Loc18),
19 => Some(OUT1LOC::Loc19),
20 => Some(OUT1LOC::Loc20),
21 => Some(OUT1LOC::Loc21),
22 => Some(OUT1LOC::Loc22),
23 => Some(OUT1LOC::Loc23),
24 => Some(OUT1LOC::Loc24),
25 => Some(OUT1LOC::Loc25),
26 => Some(OUT1LOC::Loc26),
27 => Some(OUT1LOC::Loc27),
28 => Some(OUT1LOC::Loc28),
29 => Some(OUT1LOC::Loc29),
30 => Some(OUT1LOC::Loc30),
31 => Some(OUT1LOC::Loc31),
_ => None,
}
}
#[inline(always)]
pub fn is_loc0(&self) -> bool {
*self == OUT1LOC::Loc0
}
#[inline(always)]
pub fn is_loc1(&self) -> bool {
*self == OUT1LOC::Loc1
}
#[inline(always)]
pub fn is_loc2(&self) -> bool {
*self == OUT1LOC::Loc2
}
#[inline(always)]
pub fn is_loc3(&self) -> bool {
*self == OUT1LOC::Loc3
}
#[inline(always)]
pub fn is_loc4(&self) -> bool {
*self == OUT1LOC::Loc4
}
#[inline(always)]
pub fn is_loc5(&self) -> bool {
*self == OUT1LOC::Loc5
}
#[inline(always)]
pub fn is_loc6(&self) -> bool {
*self == OUT1LOC::Loc6
}
#[inline(always)]
pub fn is_loc7(&self) -> bool {
*self == OUT1LOC::Loc7
}
#[inline(always)]
pub fn is_loc8(&self) -> bool {
*self == OUT1LOC::Loc8
}
#[inline(always)]
pub fn is_loc9(&self) -> bool {
*self == OUT1LOC::Loc9
}
#[inline(always)]
pub fn is_loc10(&self) -> bool {
*self == OUT1LOC::Loc10
}
#[inline(always)]
pub fn is_loc11(&self) -> bool {
*self == OUT1LOC::Loc11
}
#[inline(always)]
pub fn is_loc12(&self) -> bool {
*self == OUT1LOC::Loc12
}
#[inline(always)]
pub fn is_loc13(&self) -> bool {
*self == OUT1LOC::Loc13
}
#[inline(always)]
pub fn is_loc14(&self) -> bool {
*self == OUT1LOC::Loc14
}
#[inline(always)]
pub fn is_loc15(&self) -> bool {
*self == OUT1LOC::Loc15
}
#[inline(always)]
pub fn is_loc16(&self) -> bool {
*self == OUT1LOC::Loc16
}
#[inline(always)]
pub fn is_loc17(&self) -> bool {
*self == OUT1LOC::Loc17
}
#[inline(always)]
pub fn is_loc18(&self) -> bool {
*self == OUT1LOC::Loc18
}
#[inline(always)]
pub fn is_loc19(&self) -> bool {
*self == OUT1LOC::Loc19
}
#[inline(always)]
pub fn is_loc20(&self) -> bool {
*self == OUT1LOC::Loc20
}
#[inline(always)]
pub fn is_loc21(&self) -> bool {
*self == OUT1LOC::Loc21
}
#[inline(always)]
pub fn is_loc22(&self) -> bool {
*self == OUT1LOC::Loc22
}
#[inline(always)]
pub fn is_loc23(&self) -> bool {
*self == OUT1LOC::Loc23
}
#[inline(always)]
pub fn is_loc24(&self) -> bool {
*self == OUT1LOC::Loc24
}
#[inline(always)]
pub fn is_loc25(&self) -> bool {
*self == OUT1LOC::Loc25
}
#[inline(always)]
pub fn is_loc26(&self) -> bool {
*self == OUT1LOC::Loc26
}
#[inline(always)]
pub fn is_loc27(&self) -> bool {
*self == OUT1LOC::Loc27
}
#[inline(always)]
pub fn is_loc28(&self) -> bool {
*self == OUT1LOC::Loc28
}
#[inline(always)]
pub fn is_loc29(&self) -> bool {
*self == OUT1LOC::Loc29
}
#[inline(always)]
pub fn is_loc30(&self) -> bool {
*self == OUT1LOC::Loc30
}
#[inline(always)]
pub fn is_loc31(&self) -> bool {
*self == OUT1LOC::Loc31
}
}
pub type Out1locW<'a, REG> = crate::FieldWriter<'a, REG, 6, OUT1LOC>;
impl<'a, REG> Out1locW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn loc0(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc0)
}
#[inline(always)]
pub fn loc1(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc1)
}
#[inline(always)]
pub fn loc2(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc2)
}
#[inline(always)]
pub fn loc3(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc3)
}
#[inline(always)]
pub fn loc4(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc4)
}
#[inline(always)]
pub fn loc5(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc5)
}
#[inline(always)]
pub fn loc6(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc6)
}
#[inline(always)]
pub fn loc7(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc7)
}
#[inline(always)]
pub fn loc8(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc8)
}
#[inline(always)]
pub fn loc9(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc9)
}
#[inline(always)]
pub fn loc10(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc10)
}
#[inline(always)]
pub fn loc11(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc11)
}
#[inline(always)]
pub fn loc12(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc12)
}
#[inline(always)]
pub fn loc13(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc13)
}
#[inline(always)]
pub fn loc14(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc14)
}
#[inline(always)]
pub fn loc15(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc15)
}
#[inline(always)]
pub fn loc16(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc16)
}
#[inline(always)]
pub fn loc17(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc17)
}
#[inline(always)]
pub fn loc18(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc18)
}
#[inline(always)]
pub fn loc19(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc19)
}
#[inline(always)]
pub fn loc20(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc20)
}
#[inline(always)]
pub fn loc21(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc21)
}
#[inline(always)]
pub fn loc22(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc22)
}
#[inline(always)]
pub fn loc23(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc23)
}
#[inline(always)]
pub fn loc24(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc24)
}
#[inline(always)]
pub fn loc25(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc25)
}
#[inline(always)]
pub fn loc26(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc26)
}
#[inline(always)]
pub fn loc27(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc27)
}
#[inline(always)]
pub fn loc28(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc28)
}
#[inline(always)]
pub fn loc29(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc29)
}
#[inline(always)]
pub fn loc30(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc30)
}
#[inline(always)]
pub fn loc31(self) -> &'a mut crate::W<REG> {
self.variant(OUT1LOC::Loc31)
}
}
impl R {
#[inline(always)]
pub fn out0loc(&self) -> Out0locR {
Out0locR::new((self.bits & 0x3f) as u8)
}
#[inline(always)]
pub fn out1loc(&self) -> Out1locR {
Out1locR::new(((self.bits >> 8) & 0x3f) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ROUTELOC0")
.field("out0loc", &self.out0loc())
.field("out1loc", &self.out1loc())
.finish()
}
}
impl W {
#[inline(always)]
pub fn out0loc(&mut self) -> Out0locW<'_, ROUTELOC0rs> {
Out0locW::new(self, 0)
}
#[inline(always)]
pub fn out1loc(&mut self) -> Out1locW<'_, ROUTELOC0rs> {
Out1locW::new(self, 8)
}
}
pub struct ROUTELOC0rs;
impl crate::RegisterSpec for ROUTELOC0rs {
type Ux = u32;
}
impl crate::Readable for ROUTELOC0rs {}
impl crate::Writable for ROUTELOC0rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ROUTELOC0rs {}