pub type R = crate::R<TSRrs>;
pub type AFCS_R = crate::BitReader;
pub type ALCS_R = crate::BitReader;
pub type RFC1S_R = crate::BitReader;
pub type RFC2S_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn afcs(&self) -> AFCS_R {
AFCS_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn alcs(&self) -> ALCS_R {
ALCS_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn rfc1s(&self) -> RFC1S_R {
RFC1S_R::new(((self.bits >> 16) & 1) != 0)
}
#[inline(always)]
pub fn rfc2s(&self) -> RFC2S_R {
RFC2S_R::new(((self.bits >> 20) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TSR")
.field("afcs", &self.afcs())
.field("alcs", &self.alcs())
.field("rfc1s", &self.rfc1s())
.field("rfc2s", &self.rfc2s())
.finish()
}
}
pub struct TSRrs;
impl crate::RegisterSpec for TSRrs {
type Ux = u32;
}
impl crate::Readable for TSRrs {}
impl crate::Resettable for TSRrs {}