pub type R = crate::R<MACACRrs>;
pub type W = crate::W<MACACRrs>;
pub type ATSFC_R = crate::BitReader;
pub type ATSFC_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ATSEN0_R = crate::BitReader;
pub type ATSEN0_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ATSEN1_R = crate::BitReader;
pub type ATSEN1_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ATSEN2_R = crate::BitReader;
pub type ATSEN2_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type ATSEN3_R = crate::BitReader;
pub type ATSEN3_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn atsfc(&self) -> ATSFC_R {
ATSFC_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn atsen0(&self) -> ATSEN0_R {
ATSEN0_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn atsen1(&self) -> ATSEN1_R {
ATSEN1_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn atsen2(&self) -> ATSEN2_R {
ATSEN2_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn atsen3(&self) -> ATSEN3_R {
ATSEN3_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACACR")
.field("atsfc", &self.atsfc())
.field("atsen0", &self.atsen0())
.field("atsen1", &self.atsen1())
.field("atsen2", &self.atsen2())
.field("atsen3", &self.atsen3())
.finish()
}
}
impl W {
#[inline(always)]
pub fn atsfc(&mut self) -> ATSFC_W<MACACRrs> {
ATSFC_W::new(self, 0)
}
#[inline(always)]
pub fn atsen0(&mut self) -> ATSEN0_W<MACACRrs> {
ATSEN0_W::new(self, 4)
}
#[inline(always)]
pub fn atsen1(&mut self) -> ATSEN1_W<MACACRrs> {
ATSEN1_W::new(self, 5)
}
#[inline(always)]
pub fn atsen2(&mut self) -> ATSEN2_W<MACACRrs> {
ATSEN2_W::new(self, 6)
}
#[inline(always)]
pub fn atsen3(&mut self) -> ATSEN3_W<MACACRrs> {
ATSEN3_W::new(self, 7)
}
}
pub struct MACACRrs;
impl crate::RegisterSpec for MACACRrs {
type Ux = u32;
}
impl crate::Readable for MACACRrs {}
impl crate::Writable for MACACRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACACRrs {}