pub type R = crate::R<HWCFGRrs>;
pub type FIFO_SIZE_R = crate::FieldReader;
pub type SPDIF_PDM_R = crate::FieldReader;
pub type OPTION_REGOUT_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn fifo_size(&self) -> FIFO_SIZE_R {
FIFO_SIZE_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn spdif_pdm(&self) -> SPDIF_PDM_R {
SPDIF_PDM_R::new(((self.bits >> 8) & 0x0f) as u8)
}
#[inline(always)]
pub fn option_regout(&self) -> OPTION_REGOUT_R {
OPTION_REGOUT_R::new(((self.bits >> 12) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("HWCFGR")
.field("fifo_size", &self.fifo_size())
.field("spdif_pdm", &self.spdif_pdm())
.field("option_regout", &self.option_regout())
.finish()
}
}
pub struct HWCFGRrs;
impl crate::RegisterSpec for HWCFGRrs {
type Ux = u32;
}
impl crate::Readable for HWCFGRrs {}
impl crate::Resettable for HWCFGRrs {
const RESET_VALUE: u32 = 0x0108;
}