pub type R = crate::R<HCFGrs>;
pub type W = crate::W<HCFGrs>;
pub type FSLSPCS_R = crate::FieldReader;
pub type FSLSPCS_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type FSLSS_R = crate::BitReader;
pub type FSLSS_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn fslspcs(&self) -> FSLSPCS_R {
FSLSPCS_R::new((self.bits & 3) as u8)
}
#[inline(always)]
pub fn fslss(&self) -> FSLSS_R {
FSLSS_R::new(((self.bits >> 2) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HCFG")
.field("fslspcs", &self.fslspcs())
.field("fslss", &self.fslss())
.finish()
}
}
impl W {
#[inline(always)]
pub fn fslspcs(&mut self) -> FSLSPCS_W<HCFGrs> {
FSLSPCS_W::new(self, 0)
}
#[inline(always)]
pub fn fslss(&mut self) -> FSLSS_W<HCFGrs> {
FSLSS_W::new(self, 2)
}
}
pub struct HCFGrs;
impl crate::RegisterSpec for HCFGrs {
type Ux = u32;
}
impl crate::Readable for HCFGrs {}
impl crate::Writable for HCFGrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for HCFGrs {}