pub type R = crate::R<ACR_rs>;
pub type W = crate::W<ACR_rs>;
pub type LATENCY_R = crate::FieldReader;
pub type LATENCY_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
pub type WRHIGHFREQ_R = crate::FieldReader;
pub type WRHIGHFREQ_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
impl R {
#[inline(always)]
pub fn latency(&self) -> LATENCY_R {
LATENCY_R::new((self.bits & 0x0f) as u8)
}
#[inline(always)]
pub fn wrhighfreq(&self) -> WRHIGHFREQ_R {
WRHIGHFREQ_R::new(((self.bits >> 4) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ACR_")
.field("latency", &self.latency())
.field("wrhighfreq", &self.wrhighfreq())
.finish()
}
}
impl W {
#[inline(always)]
pub fn latency(&mut self) -> LATENCY_W<ACR_rs> {
LATENCY_W::new(self, 0)
}
#[inline(always)]
pub fn wrhighfreq(&mut self) -> WRHIGHFREQ_W<ACR_rs> {
WRHIGHFREQ_W::new(self, 4)
}
}
pub struct ACR_rs;
impl crate::RegisterSpec for ACR_rs {
type Ux = u32;
}
impl crate::Readable for ACR_rs {}
impl crate::Writable for ACR_rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ACR_rs {
const RESET_VALUE: u32 = 0x13;
}