pub type R = crate::R<PSCrs>;
pub type W = crate::W<PSCrs>;
pub type PSC_R = crate::FieldReader<u16>;
pub type PSC_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn psc(&self) -> PSC_R {
PSC_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PSC").field("psc", &self.psc()).finish()
}
}
impl W {
#[inline(always)]
pub fn psc(&mut self) -> PSC_W<PSCrs> {
PSC_W::new(self, 0)
}
}
pub struct PSCrs;
impl crate::RegisterSpec for PSCrs {
type Ux = u32;
}
impl crate::Readable for PSCrs {}
impl crate::Writable for PSCrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PSCrs {}