pub type R = crate::R<CRrs>;
pub type W = crate::W<CRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TXMODE {
RegisterSet = 0,
CableReset = 1,
Bisttest = 2,
}
impl From<TXMODE> for u8 {
#[inline(always)]
fn from(variant: TXMODE) -> Self {
variant as _
}
}
impl crate::FieldSpec for TXMODE {
type Ux = u8;
}
impl crate::IsEnum for TXMODE {}
pub type TXMODE_R = crate::FieldReader<TXMODE>;
impl TXMODE_R {
#[inline(always)]
pub const fn variant(&self) -> Option<TXMODE> {
match self.bits {
0 => Some(TXMODE::RegisterSet),
1 => Some(TXMODE::CableReset),
2 => Some(TXMODE::Bisttest),
_ => None,
}
}
#[inline(always)]
pub fn is_register_set(&self) -> bool {
*self == TXMODE::RegisterSet
}
#[inline(always)]
pub fn is_cable_reset(&self) -> bool {
*self == TXMODE::CableReset
}
#[inline(always)]
pub fn is_bisttest(&self) -> bool {
*self == TXMODE::Bisttest
}
}
pub type TXMODE_W<'a, REG> = crate::FieldWriter<'a, REG, 2, TXMODE>;
impl<'a, REG> TXMODE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn register_set(self) -> &'a mut crate::W<REG> {
self.variant(TXMODE::RegisterSet)
}
#[inline(always)]
pub fn cable_reset(self) -> &'a mut crate::W<REG> {
self.variant(TXMODE::CableReset)
}
#[inline(always)]
pub fn bisttest(self) -> &'a mut crate::W<REG> {
self.variant(TXMODE::Bisttest)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TXSEND {
NoEffect = 0,
Start = 1,
}
impl From<TXSEND> for bool {
#[inline(always)]
fn from(variant: TXSEND) -> Self {
variant as u8 != 0
}
}
pub type TXSEND_R = crate::BitReader<TXSEND>;
impl TXSEND_R {
#[inline(always)]
pub const fn variant(&self) -> TXSEND {
match self.bits {
false => TXSEND::NoEffect,
true => TXSEND::Start,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == TXSEND::NoEffect
}
#[inline(always)]
pub fn is_start(&self) -> bool {
*self == TXSEND::Start
}
}
pub type TXSEND_W<'a, REG> = crate::BitWriter<'a, REG, TXSEND>;
impl<'a, REG> TXSEND_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(TXSEND::NoEffect)
}
#[inline(always)]
pub fn start(self) -> &'a mut crate::W<REG> {
self.variant(TXSEND::Start)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TXHRST {
NoEffect = 0,
Start = 1,
}
impl From<TXHRST> for bool {
#[inline(always)]
fn from(variant: TXHRST) -> Self {
variant as u8 != 0
}
}
pub type TXHRST_R = crate::BitReader<TXHRST>;
impl TXHRST_R {
#[inline(always)]
pub const fn variant(&self) -> TXHRST {
match self.bits {
false => TXHRST::NoEffect,
true => TXHRST::Start,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == TXHRST::NoEffect
}
#[inline(always)]
pub fn is_start(&self) -> bool {
*self == TXHRST::Start
}
}
pub type TXHRST_W<'a, REG> = crate::BitWriter<'a, REG, TXHRST>;
impl<'a, REG> TXHRST_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(TXHRST::NoEffect)
}
#[inline(always)]
pub fn start(self) -> &'a mut crate::W<REG> {
self.variant(TXHRST::Start)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RXMODE {
Normal = 0,
Bist = 1,
}
impl From<RXMODE> for bool {
#[inline(always)]
fn from(variant: RXMODE) -> Self {
variant as u8 != 0
}
}
pub type RXMODE_R = crate::BitReader<RXMODE>;
impl RXMODE_R {
#[inline(always)]
pub const fn variant(&self) -> RXMODE {
match self.bits {
false => RXMODE::Normal,
true => RXMODE::Bist,
}
}
#[inline(always)]
pub fn is_normal(&self) -> bool {
*self == RXMODE::Normal
}
#[inline(always)]
pub fn is_bist(&self) -> bool {
*self == RXMODE::Bist
}
}
pub type RXMODE_W<'a, REG> = crate::BitWriter<'a, REG, RXMODE>;
impl<'a, REG> RXMODE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn normal(self) -> &'a mut crate::W<REG> {
self.variant(RXMODE::Normal)
}
#[inline(always)]
pub fn bist(self) -> &'a mut crate::W<REG> {
self.variant(RXMODE::Bist)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PHYRXEN {
Disabled = 0,
Enabled = 1,
}
impl From<PHYRXEN> for bool {
#[inline(always)]
fn from(variant: PHYRXEN) -> Self {
variant as u8 != 0
}
}
pub type PHYRXEN_R = crate::BitReader<PHYRXEN>;
impl PHYRXEN_R {
#[inline(always)]
pub const fn variant(&self) -> PHYRXEN {
match self.bits {
false => PHYRXEN::Disabled,
true => PHYRXEN::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == PHYRXEN::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == PHYRXEN::Enabled
}
}
pub type PHYRXEN_W<'a, REG> = crate::BitWriter<'a, REG, PHYRXEN>;
impl<'a, REG> PHYRXEN_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(PHYRXEN::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(PHYRXEN::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PHYCCSEL {
Cc1 = 0,
Cc2 = 1,
}
impl From<PHYCCSEL> for bool {
#[inline(always)]
fn from(variant: PHYCCSEL) -> Self {
variant as u8 != 0
}
}
pub type PHYCCSEL_R = crate::BitReader<PHYCCSEL>;
impl PHYCCSEL_R {
#[inline(always)]
pub const fn variant(&self) -> PHYCCSEL {
match self.bits {
false => PHYCCSEL::Cc1,
true => PHYCCSEL::Cc2,
}
}
#[inline(always)]
pub fn is_cc1(&self) -> bool {
*self == PHYCCSEL::Cc1
}
#[inline(always)]
pub fn is_cc2(&self) -> bool {
*self == PHYCCSEL::Cc2
}
}
pub type PHYCCSEL_W<'a, REG> = crate::BitWriter<'a, REG, PHYCCSEL>;
impl<'a, REG> PHYCCSEL_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn cc1(self) -> &'a mut crate::W<REG> {
self.variant(PHYCCSEL::Cc1)
}
#[inline(always)]
pub fn cc2(self) -> &'a mut crate::W<REG> {
self.variant(PHYCCSEL::Cc2)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum ANASUBMODE {
Disabled = 0,
RpDefaultUsb = 1,
Rp1_5a = 2,
Rp3a = 3,
}
impl From<ANASUBMODE> for u8 {
#[inline(always)]
fn from(variant: ANASUBMODE) -> Self {
variant as _
}
}
impl crate::FieldSpec for ANASUBMODE {
type Ux = u8;
}
impl crate::IsEnum for ANASUBMODE {}
pub type ANASUBMODE_R = crate::FieldReader<ANASUBMODE>;
impl ANASUBMODE_R {
#[inline(always)]
pub const fn variant(&self) -> ANASUBMODE {
match self.bits {
0 => ANASUBMODE::Disabled,
1 => ANASUBMODE::RpDefaultUsb,
2 => ANASUBMODE::Rp1_5a,
3 => ANASUBMODE::Rp3a,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == ANASUBMODE::Disabled
}
#[inline(always)]
pub fn is_rp_default_usb(&self) -> bool {
*self == ANASUBMODE::RpDefaultUsb
}
#[inline(always)]
pub fn is_rp_1_5a(&self) -> bool {
*self == ANASUBMODE::Rp1_5a
}
#[inline(always)]
pub fn is_rp_3a(&self) -> bool {
*self == ANASUBMODE::Rp3a
}
}
pub type ANASUBMODE_W<'a, REG> = crate::FieldWriter<'a, REG, 2, ANASUBMODE, crate::Safe>;
impl<'a, REG> ANASUBMODE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(ANASUBMODE::Disabled)
}
#[inline(always)]
pub fn rp_default_usb(self) -> &'a mut crate::W<REG> {
self.variant(ANASUBMODE::RpDefaultUsb)
}
#[inline(always)]
pub fn rp_1_5a(self) -> &'a mut crate::W<REG> {
self.variant(ANASUBMODE::Rp1_5a)
}
#[inline(always)]
pub fn rp_3a(self) -> &'a mut crate::W<REG> {
self.variant(ANASUBMODE::Rp3a)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ANAMODE {
Source = 0,
Sink = 1,
}
impl From<ANAMODE> for bool {
#[inline(always)]
fn from(variant: ANAMODE) -> Self {
variant as u8 != 0
}
}
pub type ANAMODE_R = crate::BitReader<ANAMODE>;
impl ANAMODE_R {
#[inline(always)]
pub const fn variant(&self) -> ANAMODE {
match self.bits {
false => ANAMODE::Source,
true => ANAMODE::Sink,
}
}
#[inline(always)]
pub fn is_source(&self) -> bool {
*self == ANAMODE::Source
}
#[inline(always)]
pub fn is_sink(&self) -> bool {
*self == ANAMODE::Sink
}
}
pub type ANAMODE_W<'a, REG> = crate::BitWriter<'a, REG, ANAMODE>;
impl<'a, REG> ANAMODE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn source(self) -> &'a mut crate::W<REG> {
self.variant(ANAMODE::Source)
}
#[inline(always)]
pub fn sink(self) -> &'a mut crate::W<REG> {
self.variant(ANAMODE::Sink)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum CCENABLE {
Disabled = 0,
Cc1enabled = 1,
Cc2enabled = 2,
BothEnabled = 3,
}
impl From<CCENABLE> for u8 {
#[inline(always)]
fn from(variant: CCENABLE) -> Self {
variant as _
}
}
impl crate::FieldSpec for CCENABLE {
type Ux = u8;
}
impl crate::IsEnum for CCENABLE {}
pub type CCENABLE_R = crate::FieldReader<CCENABLE>;
impl CCENABLE_R {
#[inline(always)]
pub const fn variant(&self) -> CCENABLE {
match self.bits {
0 => CCENABLE::Disabled,
1 => CCENABLE::Cc1enabled,
2 => CCENABLE::Cc2enabled,
3 => CCENABLE::BothEnabled,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == CCENABLE::Disabled
}
#[inline(always)]
pub fn is_cc1enabled(&self) -> bool {
*self == CCENABLE::Cc1enabled
}
#[inline(always)]
pub fn is_cc2enabled(&self) -> bool {
*self == CCENABLE::Cc2enabled
}
#[inline(always)]
pub fn is_both_enabled(&self) -> bool {
*self == CCENABLE::BothEnabled
}
}
pub type CCENABLE_W<'a, REG> = crate::FieldWriter<'a, REG, 2, CCENABLE, crate::Safe>;
impl<'a, REG> CCENABLE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(CCENABLE::Disabled)
}
#[inline(always)]
pub fn cc1enabled(self) -> &'a mut crate::W<REG> {
self.variant(CCENABLE::Cc1enabled)
}
#[inline(always)]
pub fn cc2enabled(self) -> &'a mut crate::W<REG> {
self.variant(CCENABLE::Cc2enabled)
}
#[inline(always)]
pub fn both_enabled(self) -> &'a mut crate::W<REG> {
self.variant(CCENABLE::BothEnabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FRSRXEN {
Disabled = 0,
Enabled = 1,
}
impl From<FRSRXEN> for bool {
#[inline(always)]
fn from(variant: FRSRXEN) -> Self {
variant as u8 != 0
}
}
pub type FRSRXEN_R = crate::BitReader<FRSRXEN>;
impl FRSRXEN_R {
#[inline(always)]
pub const fn variant(&self) -> FRSRXEN {
match self.bits {
false => FRSRXEN::Disabled,
true => FRSRXEN::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == FRSRXEN::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == FRSRXEN::Enabled
}
}
pub type FRSRXEN_W<'a, REG> = crate::BitWriter<'a, REG, FRSRXEN>;
impl<'a, REG> FRSRXEN_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(FRSRXEN::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(FRSRXEN::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum FRSTX {
NoEffect = 0,
Enabled = 1,
}
impl From<FRSTX> for bool {
#[inline(always)]
fn from(variant: FRSTX) -> Self {
variant as u8 != 0
}
}
pub type FRSTX_R = crate::BitReader<FRSTX>;
impl FRSTX_R {
#[inline(always)]
pub const fn variant(&self) -> FRSTX {
match self.bits {
false => FRSTX::NoEffect,
true => FRSTX::Enabled,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == FRSTX::NoEffect
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == FRSTX::Enabled
}
}
pub type FRSTX_W<'a, REG> = crate::BitWriter<'a, REG, FRSTX>;
impl<'a, REG> FRSTX_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(FRSTX::NoEffect)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(FRSTX::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum RDCH {
NoEffect = 0,
ConditionDrive = 1,
}
impl From<RDCH> for bool {
#[inline(always)]
fn from(variant: RDCH) -> Self {
variant as u8 != 0
}
}
pub type RDCH_R = crate::BitReader<RDCH>;
impl RDCH_R {
#[inline(always)]
pub const fn variant(&self) -> RDCH {
match self.bits {
false => RDCH::NoEffect,
true => RDCH::ConditionDrive,
}
}
#[inline(always)]
pub fn is_no_effect(&self) -> bool {
*self == RDCH::NoEffect
}
#[inline(always)]
pub fn is_condition_drive(&self) -> bool {
*self == RDCH::ConditionDrive
}
}
pub type RDCH_W<'a, REG> = crate::BitWriter<'a, REG, RDCH>;
impl<'a, REG> RDCH_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_effect(self) -> &'a mut crate::W<REG> {
self.variant(RDCH::NoEffect)
}
#[inline(always)]
pub fn condition_drive(self) -> &'a mut crate::W<REG> {
self.variant(RDCH::ConditionDrive)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum CC1TCDIS {
Enabled = 0,
Disabled = 1,
}
impl From<CC1TCDIS> for bool {
#[inline(always)]
fn from(variant: CC1TCDIS) -> Self {
variant as u8 != 0
}
}
pub type CC1TCDIS_R = crate::BitReader<CC1TCDIS>;
impl CC1TCDIS_R {
#[inline(always)]
pub const fn variant(&self) -> CC1TCDIS {
match self.bits {
false => CC1TCDIS::Enabled,
true => CC1TCDIS::Disabled,
}
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == CC1TCDIS::Enabled
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == CC1TCDIS::Disabled
}
}
pub type CC1TCDIS_W<'a, REG> = crate::BitWriter<'a, REG, CC1TCDIS>;
impl<'a, REG> CC1TCDIS_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(CC1TCDIS::Enabled)
}
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(CC1TCDIS::Disabled)
}
}
pub use CC1TCDIS_R as CC2TCDIS_R;
pub use CC1TCDIS_W as CC2TCDIS_W;
impl R {
#[inline(always)]
pub fn txmode(&self) -> TXMODE_R {
TXMODE_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn txsend(&self) -> TXSEND_R {
TXSEND_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn txhrst(&self) -> TXHRST_R {
TXHRST_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn rxmode(&self) -> RXMODE_R {
RXMODE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn phyrxen(&self) -> PHYRXEN_R {
PHYRXEN_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn phyccsel(&self) -> PHYCCSEL_R {
PHYCCSEL_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn anasubmode(&self) -> ANASUBMODE_R {
ANASUBMODE_R::new(((self.bits >> 7) & 3) as u8)
}
#[inline(always)]
pub fn anamode(&self) -> ANAMODE_R {
ANAMODE_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn ccenable(&self) -> CCENABLE_R {
CCENABLE_R::new(((self.bits >> 10) & 3) as u8)
}
#[inline(always)]
pub fn frsrxen(&self) -> FRSRXEN_R {
FRSRXEN_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn frstx(&self) -> FRSTX_R {
FRSTX_R::new(((self.bits >> 17) & 1) != 0)
}
#[inline(always)]
pub fn rdch(&self) -> RDCH_R {
RDCH_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn cc1tcdis(&self) -> CC1TCDIS_R {
CC1TCDIS_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn cc2tcdis(&self) -> CC2TCDIS_R {
CC2TCDIS_R::new(((self.bits >> 21) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CR")
.field("txmode", &self.txmode())
.field("txsend", &self.txsend())
.field("txhrst", &self.txhrst())
.field("rxmode", &self.rxmode())
.field("phyrxen", &self.phyrxen())
.field("phyccsel", &self.phyccsel())
.field("anasubmode", &self.anasubmode())
.field("anamode", &self.anamode())
.field("ccenable", &self.ccenable())
.field("frsrxen", &self.frsrxen())
.field("frstx", &self.frstx())
.field("rdch", &self.rdch())
.field("cc1tcdis", &self.cc1tcdis())
.field("cc2tcdis", &self.cc2tcdis())
.finish()
}
}
impl W {
#[inline(always)]
pub fn txmode(&mut self) -> TXMODE_W<CRrs> {
TXMODE_W::new(self, 0)
}
#[inline(always)]
pub fn txsend(&mut self) -> TXSEND_W<CRrs> {
TXSEND_W::new(self, 2)
}
#[inline(always)]
pub fn txhrst(&mut self) -> TXHRST_W<CRrs> {
TXHRST_W::new(self, 3)
}
#[inline(always)]
pub fn rxmode(&mut self) -> RXMODE_W<CRrs> {
RXMODE_W::new(self, 4)
}
#[inline(always)]
pub fn phyrxen(&mut self) -> PHYRXEN_W<CRrs> {
PHYRXEN_W::new(self, 5)
}
#[inline(always)]
pub fn phyccsel(&mut self) -> PHYCCSEL_W<CRrs> {
PHYCCSEL_W::new(self, 6)
}
#[inline(always)]
pub fn anasubmode(&mut self) -> ANASUBMODE_W<CRrs> {
ANASUBMODE_W::new(self, 7)
}
#[inline(always)]
pub fn anamode(&mut self) -> ANAMODE_W<CRrs> {
ANAMODE_W::new(self, 9)
}
#[inline(always)]
pub fn ccenable(&mut self) -> CCENABLE_W<CRrs> {
CCENABLE_W::new(self, 10)
}
#[inline(always)]
pub fn frsrxen(&mut self) -> FRSRXEN_W<CRrs> {
FRSRXEN_W::new(self, 16)
}
#[inline(always)]
pub fn frstx(&mut self) -> FRSTX_W<CRrs> {
FRSTX_W::new(self, 17)
}
#[inline(always)]
pub fn rdch(&mut self) -> RDCH_W<CRrs> {
RDCH_W::new(self, 18)
}
#[inline(always)]
pub fn cc1tcdis(&mut self) -> CC1TCDIS_W<CRrs> {
CC1TCDIS_W::new(self, 20)
}
#[inline(always)]
pub fn cc2tcdis(&mut self) -> CC2TCDIS_W<CRrs> {
CC2TCDIS_W::new(self, 21)
}
}
pub struct CRrs;
impl crate::RegisterSpec for CRrs {
type Ux = u32;
}
impl crate::Readable for CRrs {}
impl crate::Writable for CRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CRrs {}