pub type R = crate::R<TAFCRrs>;
pub type W = crate::W<TAFCRrs>;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMP1E {
Disabled = 0,
Enabled = 1,
}
impl From<TAMP1E> for bool {
#[inline(always)]
fn from(variant: TAMP1E) -> Self {
variant as u8 != 0
}
}
pub type TAMP1E_R = crate::BitReader<TAMP1E>;
impl TAMP1E_R {
#[inline(always)]
pub const fn variant(&self) -> TAMP1E {
match self.bits {
false => TAMP1E::Disabled,
true => TAMP1E::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TAMP1E::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TAMP1E::Enabled
}
}
pub type TAMP1E_W<'a, REG> = crate::BitWriter<'a, REG, TAMP1E>;
impl<'a, REG> TAMP1E_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1E::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1E::Enabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMP1TRG {
RisingEdge = 0,
FallingEdge = 1,
}
impl From<TAMP1TRG> for bool {
#[inline(always)]
fn from(variant: TAMP1TRG) -> Self {
variant as u8 != 0
}
}
pub type TAMP1TRG_R = crate::BitReader<TAMP1TRG>;
impl TAMP1TRG_R {
#[inline(always)]
pub const fn variant(&self) -> TAMP1TRG {
match self.bits {
false => TAMP1TRG::RisingEdge,
true => TAMP1TRG::FallingEdge,
}
}
#[inline(always)]
pub fn is_rising_edge(&self) -> bool {
*self == TAMP1TRG::RisingEdge
}
#[inline(always)]
pub fn is_falling_edge(&self) -> bool {
*self == TAMP1TRG::FallingEdge
}
}
pub type TAMP1TRG_W<'a, REG> = crate::BitWriter<'a, REG, TAMP1TRG>;
impl<'a, REG> TAMP1TRG_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn rising_edge(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1TRG::RisingEdge)
}
#[inline(always)]
pub fn falling_edge(self) -> &'a mut crate::W<REG> {
self.variant(TAMP1TRG::FallingEdge)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMPIE {
Disabled = 0,
Enabled = 1,
}
impl From<TAMPIE> for bool {
#[inline(always)]
fn from(variant: TAMPIE) -> Self {
variant as u8 != 0
}
}
pub type TAMPIE_R = crate::BitReader<TAMPIE>;
impl TAMPIE_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPIE {
match self.bits {
false => TAMPIE::Disabled,
true => TAMPIE::Enabled,
}
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TAMPIE::Disabled
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TAMPIE::Enabled
}
}
pub type TAMPIE_W<'a, REG> = crate::BitWriter<'a, REG, TAMPIE>;
impl<'a, REG> TAMPIE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMPIE::Disabled)
}
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMPIE::Enabled)
}
}
pub use TAMP1E_R as TAMP2E_R;
pub use TAMP1E_R as TAMP3E_R;
pub use TAMP1E_W as TAMP2E_W;
pub use TAMP1E_W as TAMP3E_W;
pub use TAMP1TRG_R as TAMP2TRG_R;
pub use TAMP1TRG_R as TAMP3TRG_R;
pub use TAMP1TRG_W as TAMP2TRG_W;
pub use TAMP1TRG_W as TAMP3TRG_W;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMPTS {
NoSave = 0,
Save = 1,
}
impl From<TAMPTS> for bool {
#[inline(always)]
fn from(variant: TAMPTS) -> Self {
variant as u8 != 0
}
}
pub type TAMPTS_R = crate::BitReader<TAMPTS>;
impl TAMPTS_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPTS {
match self.bits {
false => TAMPTS::NoSave,
true => TAMPTS::Save,
}
}
#[inline(always)]
pub fn is_no_save(&self) -> bool {
*self == TAMPTS::NoSave
}
#[inline(always)]
pub fn is_save(&self) -> bool {
*self == TAMPTS::Save
}
}
pub type TAMPTS_W<'a, REG> = crate::BitWriter<'a, REG, TAMPTS>;
impl<'a, REG> TAMPTS_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn no_save(self) -> &'a mut crate::W<REG> {
self.variant(TAMPTS::NoSave)
}
#[inline(always)]
pub fn save(self) -> &'a mut crate::W<REG> {
self.variant(TAMPTS::Save)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TAMPFREQ {
Div32768 = 0,
Div16384 = 1,
Div8192 = 2,
Div4096 = 3,
Div2048 = 4,
Div1024 = 5,
Div512 = 6,
Div256 = 7,
}
impl From<TAMPFREQ> for u8 {
#[inline(always)]
fn from(variant: TAMPFREQ) -> Self {
variant as _
}
}
impl crate::FieldSpec for TAMPFREQ {
type Ux = u8;
}
impl crate::IsEnum for TAMPFREQ {}
pub type TAMPFREQ_R = crate::FieldReader<TAMPFREQ>;
impl TAMPFREQ_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPFREQ {
match self.bits {
0 => TAMPFREQ::Div32768,
1 => TAMPFREQ::Div16384,
2 => TAMPFREQ::Div8192,
3 => TAMPFREQ::Div4096,
4 => TAMPFREQ::Div2048,
5 => TAMPFREQ::Div1024,
6 => TAMPFREQ::Div512,
7 => TAMPFREQ::Div256,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_div32768(&self) -> bool {
*self == TAMPFREQ::Div32768
}
#[inline(always)]
pub fn is_div16384(&self) -> bool {
*self == TAMPFREQ::Div16384
}
#[inline(always)]
pub fn is_div8192(&self) -> bool {
*self == TAMPFREQ::Div8192
}
#[inline(always)]
pub fn is_div4096(&self) -> bool {
*self == TAMPFREQ::Div4096
}
#[inline(always)]
pub fn is_div2048(&self) -> bool {
*self == TAMPFREQ::Div2048
}
#[inline(always)]
pub fn is_div1024(&self) -> bool {
*self == TAMPFREQ::Div1024
}
#[inline(always)]
pub fn is_div512(&self) -> bool {
*self == TAMPFREQ::Div512
}
#[inline(always)]
pub fn is_div256(&self) -> bool {
*self == TAMPFREQ::Div256
}
}
pub type TAMPFREQ_W<'a, REG> = crate::FieldWriter<'a, REG, 3, TAMPFREQ, crate::Safe>;
impl<'a, REG> TAMPFREQ_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn div32768(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div32768)
}
#[inline(always)]
pub fn div16384(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div16384)
}
#[inline(always)]
pub fn div8192(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div8192)
}
#[inline(always)]
pub fn div4096(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div4096)
}
#[inline(always)]
pub fn div2048(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div2048)
}
#[inline(always)]
pub fn div1024(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div1024)
}
#[inline(always)]
pub fn div512(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div512)
}
#[inline(always)]
pub fn div256(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFREQ::Div256)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TAMPFLT {
Immediate = 0,
Samples2 = 1,
Samples4 = 2,
Samples8 = 3,
}
impl From<TAMPFLT> for u8 {
#[inline(always)]
fn from(variant: TAMPFLT) -> Self {
variant as _
}
}
impl crate::FieldSpec for TAMPFLT {
type Ux = u8;
}
impl crate::IsEnum for TAMPFLT {}
pub type TAMPFLT_R = crate::FieldReader<TAMPFLT>;
impl TAMPFLT_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPFLT {
match self.bits {
0 => TAMPFLT::Immediate,
1 => TAMPFLT::Samples2,
2 => TAMPFLT::Samples4,
3 => TAMPFLT::Samples8,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_immediate(&self) -> bool {
*self == TAMPFLT::Immediate
}
#[inline(always)]
pub fn is_samples2(&self) -> bool {
*self == TAMPFLT::Samples2
}
#[inline(always)]
pub fn is_samples4(&self) -> bool {
*self == TAMPFLT::Samples4
}
#[inline(always)]
pub fn is_samples8(&self) -> bool {
*self == TAMPFLT::Samples8
}
}
pub type TAMPFLT_W<'a, REG> = crate::FieldWriter<'a, REG, 2, TAMPFLT, crate::Safe>;
impl<'a, REG> TAMPFLT_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn immediate(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFLT::Immediate)
}
#[inline(always)]
pub fn samples2(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFLT::Samples2)
}
#[inline(always)]
pub fn samples4(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFLT::Samples4)
}
#[inline(always)]
pub fn samples8(self) -> &'a mut crate::W<REG> {
self.variant(TAMPFLT::Samples8)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u8)]
pub enum TAMPPRCH {
Cycles1 = 0,
Cycles2 = 1,
Cycles4 = 2,
Cycles8 = 3,
}
impl From<TAMPPRCH> for u8 {
#[inline(always)]
fn from(variant: TAMPPRCH) -> Self {
variant as _
}
}
impl crate::FieldSpec for TAMPPRCH {
type Ux = u8;
}
impl crate::IsEnum for TAMPPRCH {}
pub type TAMPPRCH_R = crate::FieldReader<TAMPPRCH>;
impl TAMPPRCH_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPPRCH {
match self.bits {
0 => TAMPPRCH::Cycles1,
1 => TAMPPRCH::Cycles2,
2 => TAMPPRCH::Cycles4,
3 => TAMPPRCH::Cycles8,
_ => unreachable!(),
}
}
#[inline(always)]
pub fn is_cycles1(&self) -> bool {
*self == TAMPPRCH::Cycles1
}
#[inline(always)]
pub fn is_cycles2(&self) -> bool {
*self == TAMPPRCH::Cycles2
}
#[inline(always)]
pub fn is_cycles4(&self) -> bool {
*self == TAMPPRCH::Cycles4
}
#[inline(always)]
pub fn is_cycles8(&self) -> bool {
*self == TAMPPRCH::Cycles8
}
}
pub type TAMPPRCH_W<'a, REG> = crate::FieldWriter<'a, REG, 2, TAMPPRCH, crate::Safe>;
impl<'a, REG> TAMPPRCH_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
REG::Ux: From<u8>,
{
#[inline(always)]
pub fn cycles1(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPRCH::Cycles1)
}
#[inline(always)]
pub fn cycles2(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPRCH::Cycles2)
}
#[inline(always)]
pub fn cycles4(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPRCH::Cycles4)
}
#[inline(always)]
pub fn cycles8(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPRCH::Cycles8)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TAMPPUDIS {
Enabled = 0,
Disabled = 1,
}
impl From<TAMPPUDIS> for bool {
#[inline(always)]
fn from(variant: TAMPPUDIS) -> Self {
variant as u8 != 0
}
}
pub type TAMPPUDIS_R = crate::BitReader<TAMPPUDIS>;
impl TAMPPUDIS_R {
#[inline(always)]
pub const fn variant(&self) -> TAMPPUDIS {
match self.bits {
false => TAMPPUDIS::Enabled,
true => TAMPPUDIS::Disabled,
}
}
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TAMPPUDIS::Enabled
}
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TAMPPUDIS::Disabled
}
}
pub type TAMPPUDIS_W<'a, REG> = crate::BitWriter<'a, REG, TAMPPUDIS>;
impl<'a, REG> TAMPPUDIS_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn enabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPUDIS::Enabled)
}
#[inline(always)]
pub fn disabled(self) -> &'a mut crate::W<REG> {
self.variant(TAMPPUDIS::Disabled)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PC13VALUE {
Low = 0,
High = 1,
}
impl From<PC13VALUE> for bool {
#[inline(always)]
fn from(variant: PC13VALUE) -> Self {
variant as u8 != 0
}
}
pub type PC13VALUE_R = crate::BitReader<PC13VALUE>;
impl PC13VALUE_R {
#[inline(always)]
pub const fn variant(&self) -> PC13VALUE {
match self.bits {
false => PC13VALUE::Low,
true => PC13VALUE::High,
}
}
#[inline(always)]
pub fn is_low(&self) -> bool {
*self == PC13VALUE::Low
}
#[inline(always)]
pub fn is_high(&self) -> bool {
*self == PC13VALUE::High
}
}
pub type PC13VALUE_W<'a, REG> = crate::BitWriter<'a, REG, PC13VALUE>;
impl<'a, REG> PC13VALUE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn low(self) -> &'a mut crate::W<REG> {
self.variant(PC13VALUE::Low)
}
#[inline(always)]
pub fn high(self) -> &'a mut crate::W<REG> {
self.variant(PC13VALUE::High)
}
}
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum PC13MODE {
Floating = 0,
PushPull = 1,
}
impl From<PC13MODE> for bool {
#[inline(always)]
fn from(variant: PC13MODE) -> Self {
variant as u8 != 0
}
}
pub type PC13MODE_R = crate::BitReader<PC13MODE>;
impl PC13MODE_R {
#[inline(always)]
pub const fn variant(&self) -> PC13MODE {
match self.bits {
false => PC13MODE::Floating,
true => PC13MODE::PushPull,
}
}
#[inline(always)]
pub fn is_floating(&self) -> bool {
*self == PC13MODE::Floating
}
#[inline(always)]
pub fn is_push_pull(&self) -> bool {
*self == PC13MODE::PushPull
}
}
pub type PC13MODE_W<'a, REG> = crate::BitWriter<'a, REG, PC13MODE>;
impl<'a, REG> PC13MODE_W<'a, REG>
where
REG: crate::Writable + crate::RegisterSpec,
{
#[inline(always)]
pub fn floating(self) -> &'a mut crate::W<REG> {
self.variant(PC13MODE::Floating)
}
#[inline(always)]
pub fn push_pull(self) -> &'a mut crate::W<REG> {
self.variant(PC13MODE::PushPull)
}
}
pub use PC13MODE_R as PC14MODE_R;
pub use PC13MODE_R as PC15MODE_R;
pub use PC13MODE_W as PC14MODE_W;
pub use PC13MODE_W as PC15MODE_W;
pub use PC13VALUE_R as PC14VALUE_R;
pub use PC13VALUE_R as PC15VALUE_R;
pub use PC13VALUE_W as PC14VALUE_W;
pub use PC13VALUE_W as PC15VALUE_W;
impl R {
#[inline(always)]
pub fn tamp1e(&self) -> TAMP1E_R {
TAMP1E_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn tamp1trg(&self) -> TAMP1TRG_R {
TAMP1TRG_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn tampie(&self) -> TAMPIE_R {
TAMPIE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn tamp2e(&self) -> TAMP2E_R {
TAMP2E_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn tamp2trg(&self) -> TAMP2TRG_R {
TAMP2TRG_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn tamp3e(&self) -> TAMP3E_R {
TAMP3E_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn tamp3trg(&self) -> TAMP3TRG_R {
TAMP3TRG_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn tampts(&self) -> TAMPTS_R {
TAMPTS_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn tampfreq(&self) -> TAMPFREQ_R {
TAMPFREQ_R::new(((self.bits >> 8) & 7) as u8)
}
#[inline(always)]
pub fn tampflt(&self) -> TAMPFLT_R {
TAMPFLT_R::new(((self.bits >> 11) & 3) as u8)
}
#[inline(always)]
pub fn tampprch(&self) -> TAMPPRCH_R {
TAMPPRCH_R::new(((self.bits >> 13) & 3) as u8)
}
#[inline(always)]
pub fn tamppudis(&self) -> TAMPPUDIS_R {
TAMPPUDIS_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn pc13value(&self) -> PC13VALUE_R {
PC13VALUE_R::new(((self.bits >> 18) & 1) != 0)
}
#[inline(always)]
pub fn pc13mode(&self) -> PC13MODE_R {
PC13MODE_R::new(((self.bits >> 19) & 1) != 0)
}
#[inline(always)]
pub fn pc14value(&self) -> PC14VALUE_R {
PC14VALUE_R::new(((self.bits >> 20) & 1) != 0)
}
#[inline(always)]
pub fn pc14mode(&self) -> PC14MODE_R {
PC14MODE_R::new(((self.bits >> 21) & 1) != 0)
}
#[inline(always)]
pub fn pc15value(&self) -> PC15VALUE_R {
PC15VALUE_R::new(((self.bits >> 22) & 1) != 0)
}
#[inline(always)]
pub fn pc15mode(&self) -> PC15MODE_R {
PC15MODE_R::new(((self.bits >> 23) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TAFCR")
.field("tamp1e", &self.tamp1e())
.field("tamp1trg", &self.tamp1trg())
.field("tampie", &self.tampie())
.field("tamp2e", &self.tamp2e())
.field("tamp2trg", &self.tamp2trg())
.field("tamp3e", &self.tamp3e())
.field("tamp3trg", &self.tamp3trg())
.field("tampts", &self.tampts())
.field("tampfreq", &self.tampfreq())
.field("tampflt", &self.tampflt())
.field("tampprch", &self.tampprch())
.field("tamppudis", &self.tamppudis())
.field("pc13value", &self.pc13value())
.field("pc13mode", &self.pc13mode())
.field("pc14value", &self.pc14value())
.field("pc14mode", &self.pc14mode())
.field("pc15value", &self.pc15value())
.field("pc15mode", &self.pc15mode())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tamp1e(&mut self) -> TAMP1E_W<TAFCRrs> {
TAMP1E_W::new(self, 0)
}
#[inline(always)]
pub fn tamp1trg(&mut self) -> TAMP1TRG_W<TAFCRrs> {
TAMP1TRG_W::new(self, 1)
}
#[inline(always)]
pub fn tampie(&mut self) -> TAMPIE_W<TAFCRrs> {
TAMPIE_W::new(self, 2)
}
#[inline(always)]
pub fn tamp2e(&mut self) -> TAMP2E_W<TAFCRrs> {
TAMP2E_W::new(self, 3)
}
#[inline(always)]
pub fn tamp2trg(&mut self) -> TAMP2TRG_W<TAFCRrs> {
TAMP2TRG_W::new(self, 4)
}
#[inline(always)]
pub fn tamp3e(&mut self) -> TAMP3E_W<TAFCRrs> {
TAMP3E_W::new(self, 5)
}
#[inline(always)]
pub fn tamp3trg(&mut self) -> TAMP3TRG_W<TAFCRrs> {
TAMP3TRG_W::new(self, 6)
}
#[inline(always)]
pub fn tampts(&mut self) -> TAMPTS_W<TAFCRrs> {
TAMPTS_W::new(self, 7)
}
#[inline(always)]
pub fn tampfreq(&mut self) -> TAMPFREQ_W<TAFCRrs> {
TAMPFREQ_W::new(self, 8)
}
#[inline(always)]
pub fn tampflt(&mut self) -> TAMPFLT_W<TAFCRrs> {
TAMPFLT_W::new(self, 11)
}
#[inline(always)]
pub fn tampprch(&mut self) -> TAMPPRCH_W<TAFCRrs> {
TAMPPRCH_W::new(self, 13)
}
#[inline(always)]
pub fn tamppudis(&mut self) -> TAMPPUDIS_W<TAFCRrs> {
TAMPPUDIS_W::new(self, 15)
}
#[inline(always)]
pub fn pc13value(&mut self) -> PC13VALUE_W<TAFCRrs> {
PC13VALUE_W::new(self, 18)
}
#[inline(always)]
pub fn pc13mode(&mut self) -> PC13MODE_W<TAFCRrs> {
PC13MODE_W::new(self, 19)
}
#[inline(always)]
pub fn pc14value(&mut self) -> PC14VALUE_W<TAFCRrs> {
PC14VALUE_W::new(self, 20)
}
#[inline(always)]
pub fn pc14mode(&mut self) -> PC14MODE_W<TAFCRrs> {
PC14MODE_W::new(self, 21)
}
#[inline(always)]
pub fn pc15value(&mut self) -> PC15VALUE_W<TAFCRrs> {
PC15VALUE_W::new(self, 22)
}
#[inline(always)]
pub fn pc15mode(&mut self) -> PC15MODE_W<TAFCRrs> {
PC15MODE_W::new(self, 23)
}
}
pub struct TAFCRrs;
impl crate::RegisterSpec for TAFCRrs {
type Ux = u32;
}
impl crate::Readable for TAFCRrs {}
impl crate::Writable for TAFCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TAFCRrs {}