pub type R = crate::R<SR2rs>;
pub type FLASH_RDY_R = crate::BitReader;
pub type REGLPS_R = crate::BitReader;
pub type REGLPF_R = crate::BitReader;
pub type VOSF_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn flash_rdy(&self) -> FLASH_RDY_R {
FLASH_RDY_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn reglps(&self) -> REGLPS_R {
REGLPS_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn reglpf(&self) -> REGLPF_R {
REGLPF_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn vosf(&self) -> VOSF_R {
VOSF_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SR2")
.field("vosf", &self.vosf())
.field("reglpf", &self.reglpf())
.field("reglps", &self.reglps())
.field("flash_rdy", &self.flash_rdy())
.finish()
}
}
pub struct SR2rs;
impl crate::RegisterSpec for SR2rs {
type Ux = u32;
}
impl crate::Readable for SR2rs {}
impl crate::Resettable for SR2rs {}