pub type R = crate::R<MACSRrs>;
pub type W = crate::W<MACSRrs>;
pub type PMTS_R = crate::BitReader;
pub type MMCS_R = crate::BitReader;
pub type MMCRS_R = crate::BitReader;
pub type MMCTS_R = crate::BitReader;
pub type TSTS_R = crate::BitReader;
pub type TSTS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn pmts(&self) -> PMTS_R {
PMTS_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn mmcs(&self) -> MMCS_R {
MMCS_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn mmcrs(&self) -> MMCRS_R {
MMCRS_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn mmcts(&self) -> MMCTS_R {
MMCTS_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn tsts(&self) -> TSTS_R {
TSTS_R::new(((self.bits >> 9) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACSR")
.field("pmts", &self.pmts())
.field("mmcs", &self.mmcs())
.field("mmcrs", &self.mmcrs())
.field("mmcts", &self.mmcts())
.field("tsts", &self.tsts())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tsts(&mut self) -> TSTS_W<MACSRrs> {
TSTS_W::new(self, 9)
}
}
pub struct MACSRrs;
impl crate::RegisterSpec for MACSRrs {
type Ux = u32;
}
impl crate::Readable for MACSRrs {}
impl crate::Writable for MACSRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for MACSRrs {}