pub type R = crate::R<GC2Rrs>;
pub type EDCEN_R = crate::BitReader;
pub type STSAEN_R = crate::BitReader;
pub type DVAEN_R = crate::BitReader;
pub type DPAEN_R = crate::BitReader;
pub type BW_R = crate::FieldReader;
pub type EDCA_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn edcen(&self) -> EDCEN_R {
EDCEN_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn stsaen(&self) -> STSAEN_R {
STSAEN_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn dvaen(&self) -> DVAEN_R {
DVAEN_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn dpaen(&self) -> DPAEN_R {
DPAEN_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn bw(&self) -> BW_R {
BW_R::new(((self.bits >> 4) & 7) as u8)
}
#[inline(always)]
pub fn edca(&self) -> EDCA_R {
EDCA_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("GC2R")
.field("edcen", &self.edcen())
.field("stsaen", &self.stsaen())
.field("dvaen", &self.dvaen())
.field("dpaen", &self.dpaen())
.field("bw", &self.bw())
.field("edca", &self.edca())
.finish()
}
}
pub struct GC2Rrs;
impl crate::RegisterSpec for GC2Rrs {
type Ux = u32;
}
impl crate::Readable for GC2Rrs {}
impl crate::Resettable for GC2Rrs {
const RESET_VALUE: u32 = 0x30;
}