pub type R = crate::R<SRrs>;
pub type B0OF_R = crate::BitReader;
pub type B1OF_R = crate::BitReader;
pub type B2OF_R = crate::BitReader;
pub type B3OF_R = crate::BitReader;
pub type AMEF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn b0of(&self) -> B0OF_R {
B0OF_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn b1of(&self) -> B1OF_R {
B1OF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn b2of(&self) -> B2OF_R {
B2OF_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn b3of(&self) -> B3OF_R {
B3OF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn amef(&self) -> AMEF_R {
AMEF_R::new(((self.bits >> 4) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR")
.field("b0of", &self.b0of())
.field("b1of", &self.b1of())
.field("b2of", &self.b2of())
.field("b3of", &self.b3of())
.field("amef", &self.amef())
.finish()
}
}
pub struct SRrs;
impl crate::RegisterSpec for SRrs {
type Ux = u32;
}
impl crate::Readable for SRrs {}
impl crate::Resettable for SRrs {}