pub type R = crate::R<GPSRrs>;
pub type CMDFE_R = crate::BitReader;
pub type CMDFF_R = crate::BitReader;
pub type PWRFE_R = crate::BitReader;
pub type PWRFF_R = crate::BitReader;
pub type PRDFE_R = crate::BitReader;
pub type PRDFF_R = crate::BitReader;
pub type RCB_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn cmdfe(&self) -> CMDFE_R {
CMDFE_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn cmdff(&self) -> CMDFF_R {
CMDFF_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn pwrfe(&self) -> PWRFE_R {
PWRFE_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn pwrff(&self) -> PWRFF_R {
PWRFF_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn prdfe(&self) -> PRDFE_R {
PRDFE_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn prdff(&self) -> PRDFF_R {
PRDFF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn rcb(&self) -> RCB_R {
RCB_R::new(((self.bits >> 6) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GPSR")
.field("cmdfe", &self.cmdfe())
.field("cmdff", &self.cmdff())
.field("pwrfe", &self.pwrfe())
.field("pwrff", &self.pwrff())
.field("prdfe", &self.prdfe())
.field("prdff", &self.prdff())
.field("rcb", &self.rcb())
.finish()
}
}
pub struct GPSRrs;
impl crate::RegisterSpec for GPSRrs {
type Ux = u32;
}
impl crate::Readable for GPSRrs {}
impl crate::Resettable for GPSRrs {
const RESET_VALUE: u32 = 0x15;
}