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