pub type R = crate::R<AWCRrs>;
pub type W = crate::W<AWCRrs>;
pub type AAH_R = crate::FieldReader<u16>;
pub type AAH_W<'a, REG> = crate::FieldWriter<'a, REG, 11, u16, crate::Safe>;
pub type AAW_R = crate::FieldReader<u16>;
pub type AAW_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn aah(&self) -> AAH_R {
AAH_R::new((self.bits & 0x07ff) as u16)
}
#[inline(always)]
pub fn aaw(&self) -> AAW_R {
AAW_R::new(((self.bits >> 16) & 0x0fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("AWCR")
.field("aaw", &self.aaw())
.field("aah", &self.aah())
.finish()
}
}
impl W {
#[inline(always)]
pub fn aah(&mut self) -> AAH_W<AWCRrs> {
AAH_W::new(self, 0)
}
#[inline(always)]
pub fn aaw(&mut self) -> AAW_W<AWCRrs> {
AAW_W::new(self, 16)
}
}
pub struct AWCRrs;
impl crate::RegisterSpec for AWCRrs {
type Ux = u32;
}
impl crate::Readable for AWCRrs {}
impl crate::Writable for AWCRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for AWCRrs {}