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