pub type R = crate::R<ACRrs>;
pub type W = crate::W<ACRrs>;
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<ACRrs> {
LATENCY_W::new(self, 0)
}
#[inline(always)]
pub fn wrhighfreq(&mut self) -> WRHIGHFREQ_W<ACRrs> {
WRHIGHFREQ_W::new(self, 4)
}
}
pub struct ACRrs;
impl crate::RegisterSpec for ACRrs {
type Ux = u32;
}
impl crate::Readable for ACRrs {}
impl crate::Writable for ACRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ACRrs {
const RESET_VALUE: u32 = 0x37;
}