pub type R = crate::R<PRSSELrs>;
pub type W = crate::W<PRSSELrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PRSSTARTSEL {
Prsch0 = 0,
Prsch1 = 1,
Prsch2 = 2,
Prsch3 = 3,
Prsch4 = 4,
Prsch5 = 5,
Prsch6 = 6,
Prsch7 = 7,
Prsch8 = 8,
Prsch9 = 9,
Prsch10 = 10,
Prsch11 = 11,
}
impl From<PRSSTARTSEL> for u8 {
#[inline(always)]
fn from(variant: PRSSTARTSEL) -> Self {
variant as _
}
}
impl crate::FieldSpec for PRSSTARTSEL {
type Ux = u8;
}
impl crate::IsEnum for PRSSTARTSEL {}
pub type PrsstartselR = crate::FieldReader<PRSSTARTSEL>;
impl PrsstartselR {
#[inline(always)]
pub const fn variant(&self) -> Option<PRSSTARTSEL> {
match self.bits {
0 => Some(PRSSTARTSEL::Prsch0),
1 => Some(PRSSTARTSEL::Prsch1),
2 => Some(PRSSTARTSEL::Prsch2),
3 => Some(PRSSTARTSEL::Prsch3),
4 => Some(PRSSTARTSEL::Prsch4),
5 => Some(PRSSTARTSEL::Prsch5),
6 => Some(PRSSTARTSEL::Prsch6),
7 => Some(PRSSTARTSEL::Prsch7),
8 => Some(PRSSTARTSEL::Prsch8),
9 => Some(PRSSTARTSEL::Prsch9),
10 => Some(PRSSTARTSEL::Prsch10),
11 => Some(PRSSTARTSEL::Prsch11),
_ => None,
}
}
#[inline(always)]
pub fn is_prsch0(&self) -> bool {
*self == PRSSTARTSEL::Prsch0
}
#[inline(always)]
pub fn is_prsch1(&self) -> bool {
*self == PRSSTARTSEL::Prsch1
}
#[inline(always)]
pub fn is_prsch2(&self) -> bool {
*self == PRSSTARTSEL::Prsch2
}
#[inline(always)]
pub fn is_prsch3(&self) -> bool {
*self == PRSSTARTSEL::Prsch3
}
#[inline(always)]
pub fn is_prsch4(&self) -> bool {
*self == PRSSTARTSEL::Prsch4
}
#[inline(always)]
pub fn is_prsch5(&self) -> bool {
*self == PRSSTARTSEL::Prsch5
}
#[inline(always)]
pub fn is_prsch6(&self) -> bool {
*self == PRSSTARTSEL::Prsch6
}
#[inline(always)]
pub fn is_prsch7(&self) -> bool {
*self == PRSSTARTSEL::Prsch7
}
#[inline(always)]
pub fn is_prsch8(&self) -> bool {
*self == PRSSTARTSEL::Prsch8
}
#[inline(always)]
pub fn is_prsch9(&self) -> bool {
*self == PRSSTARTSEL::Prsch9
}
#[inline(always)]
pub fn is_prsch10(&self) -> bool {
*self == PRSSTARTSEL::Prsch10
}
#[inline(always)]
pub fn is_prsch11(&self) -> bool {
*self == PRSSTARTSEL::Prsch11
}
}
pub type PrsstartselW<'a, REG> = crate::FieldWriter<'a, REG, 4, PRSSTARTSEL>;
impl<'a, REG> PrsstartselW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn prsch0(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch0)
}
#[inline(always)]
pub fn prsch1(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch1)
}
#[inline(always)]
pub fn prsch2(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch2)
}
#[inline(always)]
pub fn prsch3(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch3)
}
#[inline(always)]
pub fn prsch4(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch4)
}
#[inline(always)]
pub fn prsch5(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch5)
}
#[inline(always)]
pub fn prsch6(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch6)
}
#[inline(always)]
pub fn prsch7(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch7)
}
#[inline(always)]
pub fn prsch8(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch8)
}
#[inline(always)]
pub fn prsch9(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch9)
}
#[inline(always)]
pub fn prsch10(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch10)
}
#[inline(always)]
pub fn prsch11(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTSEL::Prsch11)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PRSSTOPSEL {
Prsch0 = 0,
Prsch1 = 1,
Prsch2 = 2,
Prsch3 = 3,
Prsch4 = 4,
Prsch5 = 5,
Prsch6 = 6,
Prsch7 = 7,
Prsch8 = 8,
Prsch9 = 9,
Prsch10 = 10,
Prsch11 = 11,
}
impl From<PRSSTOPSEL> for u8 {
#[inline(always)]
fn from(variant: PRSSTOPSEL) -> Self {
variant as _
}
}
impl crate::FieldSpec for PRSSTOPSEL {
type Ux = u8;
}
impl crate::IsEnum for PRSSTOPSEL {}
pub type PrsstopselR = crate::FieldReader<PRSSTOPSEL>;
impl PrsstopselR {
#[inline(always)]
pub const fn variant(&self) -> Option<PRSSTOPSEL> {
match self.bits {
0 => Some(PRSSTOPSEL::Prsch0),
1 => Some(PRSSTOPSEL::Prsch1),
2 => Some(PRSSTOPSEL::Prsch2),
3 => Some(PRSSTOPSEL::Prsch3),
4 => Some(PRSSTOPSEL::Prsch4),
5 => Some(PRSSTOPSEL::Prsch5),
6 => Some(PRSSTOPSEL::Prsch6),
7 => Some(PRSSTOPSEL::Prsch7),
8 => Some(PRSSTOPSEL::Prsch8),
9 => Some(PRSSTOPSEL::Prsch9),
10 => Some(PRSSTOPSEL::Prsch10),
11 => Some(PRSSTOPSEL::Prsch11),
_ => None,
}
}
#[inline(always)]
pub fn is_prsch0(&self) -> bool {
*self == PRSSTOPSEL::Prsch0
}
#[inline(always)]
pub fn is_prsch1(&self) -> bool {
*self == PRSSTOPSEL::Prsch1
}
#[inline(always)]
pub fn is_prsch2(&self) -> bool {
*self == PRSSTOPSEL::Prsch2
}
#[inline(always)]
pub fn is_prsch3(&self) -> bool {
*self == PRSSTOPSEL::Prsch3
}
#[inline(always)]
pub fn is_prsch4(&self) -> bool {
*self == PRSSTOPSEL::Prsch4
}
#[inline(always)]
pub fn is_prsch5(&self) -> bool {
*self == PRSSTOPSEL::Prsch5
}
#[inline(always)]
pub fn is_prsch6(&self) -> bool {
*self == PRSSTOPSEL::Prsch6
}
#[inline(always)]
pub fn is_prsch7(&self) -> bool {
*self == PRSSTOPSEL::Prsch7
}
#[inline(always)]
pub fn is_prsch8(&self) -> bool {
*self == PRSSTOPSEL::Prsch8
}
#[inline(always)]
pub fn is_prsch9(&self) -> bool {
*self == PRSSTOPSEL::Prsch9
}
#[inline(always)]
pub fn is_prsch10(&self) -> bool {
*self == PRSSTOPSEL::Prsch10
}
#[inline(always)]
pub fn is_prsch11(&self) -> bool {
*self == PRSSTOPSEL::Prsch11
}
}
pub type PrsstopselW<'a, REG> = crate::FieldWriter<'a, REG, 4, PRSSTOPSEL>;
impl<'a, REG> PrsstopselW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn prsch0(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch0)
}
#[inline(always)]
pub fn prsch1(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch1)
}
#[inline(always)]
pub fn prsch2(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch2)
}
#[inline(always)]
pub fn prsch3(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch3)
}
#[inline(always)]
pub fn prsch4(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch4)
}
#[inline(always)]
pub fn prsch5(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch5)
}
#[inline(always)]
pub fn prsch6(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch6)
}
#[inline(always)]
pub fn prsch7(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch7)
}
#[inline(always)]
pub fn prsch8(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch8)
}
#[inline(always)]
pub fn prsch9(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch9)
}
#[inline(always)]
pub fn prsch10(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch10)
}
#[inline(always)]
pub fn prsch11(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPSEL::Prsch11)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PRSCLEARSEL {
Prsch0 = 0,
Prsch1 = 1,
Prsch2 = 2,
Prsch3 = 3,
Prsch4 = 4,
Prsch5 = 5,
Prsch6 = 6,
Prsch7 = 7,
Prsch8 = 8,
Prsch9 = 9,
Prsch10 = 10,
Prsch11 = 11,
}
impl From<PRSCLEARSEL> for u8 {
#[inline(always)]
fn from(variant: PRSCLEARSEL) -> Self {
variant as _
}
}
impl crate::FieldSpec for PRSCLEARSEL {
type Ux = u8;
}
impl crate::IsEnum for PRSCLEARSEL {}
pub type PrsclearselR = crate::FieldReader<PRSCLEARSEL>;
impl PrsclearselR {
#[inline(always)]
pub const fn variant(&self) -> Option<PRSCLEARSEL> {
match self.bits {
0 => Some(PRSCLEARSEL::Prsch0),
1 => Some(PRSCLEARSEL::Prsch1),
2 => Some(PRSCLEARSEL::Prsch2),
3 => Some(PRSCLEARSEL::Prsch3),
4 => Some(PRSCLEARSEL::Prsch4),
5 => Some(PRSCLEARSEL::Prsch5),
6 => Some(PRSCLEARSEL::Prsch6),
7 => Some(PRSCLEARSEL::Prsch7),
8 => Some(PRSCLEARSEL::Prsch8),
9 => Some(PRSCLEARSEL::Prsch9),
10 => Some(PRSCLEARSEL::Prsch10),
11 => Some(PRSCLEARSEL::Prsch11),
_ => None,
}
}
#[inline(always)]
pub fn is_prsch0(&self) -> bool {
*self == PRSCLEARSEL::Prsch0
}
#[inline(always)]
pub fn is_prsch1(&self) -> bool {
*self == PRSCLEARSEL::Prsch1
}
#[inline(always)]
pub fn is_prsch2(&self) -> bool {
*self == PRSCLEARSEL::Prsch2
}
#[inline(always)]
pub fn is_prsch3(&self) -> bool {
*self == PRSCLEARSEL::Prsch3
}
#[inline(always)]
pub fn is_prsch4(&self) -> bool {
*self == PRSCLEARSEL::Prsch4
}
#[inline(always)]
pub fn is_prsch5(&self) -> bool {
*self == PRSCLEARSEL::Prsch5
}
#[inline(always)]
pub fn is_prsch6(&self) -> bool {
*self == PRSCLEARSEL::Prsch6
}
#[inline(always)]
pub fn is_prsch7(&self) -> bool {
*self == PRSCLEARSEL::Prsch7
}
#[inline(always)]
pub fn is_prsch8(&self) -> bool {
*self == PRSCLEARSEL::Prsch8
}
#[inline(always)]
pub fn is_prsch9(&self) -> bool {
*self == PRSCLEARSEL::Prsch9
}
#[inline(always)]
pub fn is_prsch10(&self) -> bool {
*self == PRSCLEARSEL::Prsch10
}
#[inline(always)]
pub fn is_prsch11(&self) -> bool {
*self == PRSCLEARSEL::Prsch11
}
}
pub type PrsclearselW<'a, REG> = crate::FieldWriter<'a, REG, 4, PRSCLEARSEL>;
impl<'a, REG> PrsclearselW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn prsch0(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch0)
}
#[inline(always)]
pub fn prsch1(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch1)
}
#[inline(always)]
pub fn prsch2(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch2)
}
#[inline(always)]
pub fn prsch3(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch3)
}
#[inline(always)]
pub fn prsch4(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch4)
}
#[inline(always)]
pub fn prsch5(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch5)
}
#[inline(always)]
pub fn prsch6(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch6)
}
#[inline(always)]
pub fn prsch7(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch7)
}
#[inline(always)]
pub fn prsch8(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch8)
}
#[inline(always)]
pub fn prsch9(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch9)
}
#[inline(always)]
pub fn prsch10(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch10)
}
#[inline(always)]
pub fn prsch11(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARSEL::Prsch11)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PRSSTARTMODE {
None = 0,
Rising = 1,
Falling = 2,
Both = 3,
}
impl From<PRSSTARTMODE> for u8 {
#[inline(always)]
fn from(variant: PRSSTARTMODE) -> Self {
variant as _
}
}
impl crate::FieldSpec for PRSSTARTMODE {
type Ux = u8;
}
impl crate::IsEnum for PRSSTARTMODE {}
pub type PrsstartmodeR = crate::FieldReader<PRSSTARTMODE>;
impl PrsstartmodeR {
#[inline(always)]
pub const fn variant(&self) -> PRSSTARTMODE {
match self.bits {
0 => PRSSTARTMODE::None,
1 => PRSSTARTMODE::Rising,
2 => PRSSTARTMODE::Falling,
3 => PRSSTARTMODE::Both,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_none(&self) -> bool {
*self == PRSSTARTMODE::None
}
#[inline(always)]
pub fn is_rising(&self) -> bool {
*self == PRSSTARTMODE::Rising
}
#[inline(always)]
pub fn is_falling(&self) -> bool {
*self == PRSSTARTMODE::Falling
}
#[inline(always)]
pub fn is_both(&self) -> bool {
*self == PRSSTARTMODE::Both
}
}
pub type PrsstartmodeW<'a, REG> = crate::FieldWriter<'a, REG, 2, PRSSTARTMODE, crate::Safe>;
impl<'a, REG> PrsstartmodeW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn none(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTMODE::None)
}
#[inline(always)]
pub fn rising(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTMODE::Rising)
}
#[inline(always)]
pub fn falling(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTMODE::Falling)
}
#[inline(always)]
pub fn both(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTARTMODE::Both)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PRSSTOPMODE {
None = 0,
Rising = 1,
Falling = 2,
Both = 3,
}
impl From<PRSSTOPMODE> for u8 {
#[inline(always)]
fn from(variant: PRSSTOPMODE) -> Self {
variant as _
}
}
impl crate::FieldSpec for PRSSTOPMODE {
type Ux = u8;
}
impl crate::IsEnum for PRSSTOPMODE {}
pub type PrsstopmodeR = crate::FieldReader<PRSSTOPMODE>;
impl PrsstopmodeR {
#[inline(always)]
pub const fn variant(&self) -> PRSSTOPMODE {
match self.bits {
0 => PRSSTOPMODE::None,
1 => PRSSTOPMODE::Rising,
2 => PRSSTOPMODE::Falling,
3 => PRSSTOPMODE::Both,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_none(&self) -> bool {
*self == PRSSTOPMODE::None
}
#[inline(always)]
pub fn is_rising(&self) -> bool {
*self == PRSSTOPMODE::Rising
}
#[inline(always)]
pub fn is_falling(&self) -> bool {
*self == PRSSTOPMODE::Falling
}
#[inline(always)]
pub fn is_both(&self) -> bool {
*self == PRSSTOPMODE::Both
}
}
pub type PrsstopmodeW<'a, REG> = crate::FieldWriter<'a, REG, 2, PRSSTOPMODE, crate::Safe>;
impl<'a, REG> PrsstopmodeW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn none(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPMODE::None)
}
#[inline(always)]
pub fn rising(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPMODE::Rising)
}
#[inline(always)]
pub fn falling(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPMODE::Falling)
}
#[inline(always)]
pub fn both(self) -> &'a mut crate::W<REG> {
self.variant(PRSSTOPMODE::Both)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum PRSCLEARMODE {
None = 0,
Rising = 1,
Falling = 2,
Both = 3,
}
impl From<PRSCLEARMODE> for u8 {
#[inline(always)]
fn from(variant: PRSCLEARMODE) -> Self {
variant as _
}
}
impl crate::FieldSpec for PRSCLEARMODE {
type Ux = u8;
}
impl crate::IsEnum for PRSCLEARMODE {}
pub type PrsclearmodeR = crate::FieldReader<PRSCLEARMODE>;
impl PrsclearmodeR {
#[inline(always)]
pub const fn variant(&self) -> PRSCLEARMODE {
match self.bits {
0 => PRSCLEARMODE::None,
1 => PRSCLEARMODE::Rising,
2 => PRSCLEARMODE::Falling,
3 => PRSCLEARMODE::Both,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_none(&self) -> bool {
*self == PRSCLEARMODE::None
}
#[inline(always)]
pub fn is_rising(&self) -> bool {
*self == PRSCLEARMODE::Rising
}
#[inline(always)]
pub fn is_falling(&self) -> bool {
*self == PRSCLEARMODE::Falling
}
#[inline(always)]
pub fn is_both(&self) -> bool {
*self == PRSCLEARMODE::Both
}
}
pub type PrsclearmodeW<'a, REG> = crate::FieldWriter<'a, REG, 2, PRSCLEARMODE, crate::Safe>;
impl<'a, REG> PrsclearmodeW<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn none(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARMODE::None)
}
#[inline(always)]
pub fn rising(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARMODE::Rising)
}
#[inline(always)]
pub fn falling(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARMODE::Falling)
}
#[inline(always)]
pub fn both(self) -> &'a mut crate::W<REG> {
self.variant(PRSCLEARMODE::Both)
}
}
impl R {
#[inline(always)]
pub fn prsstartsel(&self) -> PrsstartselR {
PrsstartselR::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn prsstopsel(&self) -> PrsstopselR {
PrsstopselR::new(((self.bits >> 6) & 0x0f) as u8)
}
#[inline(always)]
pub fn prsclearsel(&self) -> PrsclearselR {
PrsclearselR::new(((self.bits >> 12) & 0x0f) as u8)
}
#[inline(always)]
pub fn prsstartmode(&self) -> PrsstartmodeR {
PrsstartmodeR::new(((self.bits >> 18) & 3) as u8)
}
#[inline(always)]
pub fn prsstopmode(&self) -> PrsstopmodeR {
PrsstopmodeR::new(((self.bits >> 22) & 3) as u8)
}
#[inline(always)]
pub fn prsclearmode(&self) -> PrsclearmodeR {
PrsclearmodeR::new(((self.bits >> 26) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PRSSEL")
.field("prsstartsel", &self.prsstartsel())
.field("prsstopsel", &self.prsstopsel())
.field("prsclearsel", &self.prsclearsel())
.field("prsstartmode", &self.prsstartmode())
.field("prsstopmode", &self.prsstopmode())
.field("prsclearmode", &self.prsclearmode())
.finish()
}
}
impl W {
#[inline(always)]
pub fn prsstartsel(&mut self) -> PrsstartselW<'_, PRSSELrs> {
PrsstartselW::new(self, 0)
}
#[inline(always)]
pub fn prsstopsel(&mut self) -> PrsstopselW<'_, PRSSELrs> {
PrsstopselW::new(self, 6)
}
#[inline(always)]
pub fn prsclearsel(&mut self) -> PrsclearselW<'_, PRSSELrs> {
PrsclearselW::new(self, 12)
}
#[inline(always)]
pub fn prsstartmode(&mut self) -> PrsstartmodeW<'_, PRSSELrs> {
PrsstartmodeW::new(self, 18)
}
#[inline(always)]
pub fn prsstopmode(&mut self) -> PrsstopmodeW<'_, PRSSELrs> {
PrsstopmodeW::new(self, 22)
}
#[inline(always)]
pub fn prsclearmode(&mut self) -> PrsclearmodeW<'_, PRSSELrs> {
PrsclearmodeW::new(self, 26)
}
}
pub struct PRSSELrs;
impl crate::RegisterSpec for PRSSELrs {
type Ux = u32;
}
impl crate::Readable for PRSSELrs {}
impl crate::Writable for PRSSELrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PRSSELrs {}