pub type R = crate::R<PLLI2SCFGRrs>;
pub type W = crate::W<PLLI2SCFGRrs>;
pub type PLLI2SN_R = crate::FieldReader<u16>;
pub type PLLI2SN_W<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
pub type PLLI2SR_R = crate::FieldReader;
pub type PLLI2SR_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
impl R {
#[inline(always)]
pub fn plli2sn(&self) -> PLLI2SN_R {
PLLI2SN_R::new(((self.bits >> 6) & 0x01ff) as u16)
}
#[inline(always)]
pub fn plli2sr(&self) -> PLLI2SR_R {
PLLI2SR_R::new(((self.bits >> 28) & 7) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PLLI2SCFGR")
.field("plli2sr", &self.plli2sr())
.field("plli2sn", &self.plli2sn())
.finish()
}
}
impl W {
#[inline(always)]
pub fn plli2sn(&mut self) -> PLLI2SN_W<PLLI2SCFGRrs> {
PLLI2SN_W::new(self, 6)
}
#[inline(always)]
pub fn plli2sr(&mut self) -> PLLI2SR_W<PLLI2SCFGRrs> {
PLLI2SR_W::new(self, 28)
}
}
pub struct PLLI2SCFGRrs;
impl crate::RegisterSpec for PLLI2SCFGRrs {
type Ux = u32;
}
impl crate::Readable for PLLI2SCFGRrs {}
impl crate::Writable for PLLI2SCFGRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PLLI2SCFGRrs {
const RESET_VALUE: u32 = 0x2000_3000;
}