pub type R = crate::R<SR1rs>;
pub type ACTVOS_R = crate::BitReader;
pub type ACTVOSRDY_R = crate::BitReader;
pub type PVDO_R = crate::BitReader;
pub type AVDO_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn actvos(&self) -> ACTVOS_R {
ACTVOS_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn actvosrdy(&self) -> ACTVOSRDY_R {
ACTVOSRDY_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pvdo(&self) -> PVDO_R {
PVDO_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn avdo(&self) -> AVDO_R {
AVDO_R::new(((self.bits >> 13) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR1")
.field("actvos", &self.actvos())
.field("actvosrdy", &self.actvosrdy())
.field("pvdo", &self.pvdo())
.field("avdo", &self.avdo())
.finish()
}
}
pub struct SR1rs;
impl crate::RegisterSpec for SR1rs {
type Ux = u32;
}
impl crate::Readable for SR1rs {}
impl crate::Resettable for SR1rs {}