pub type R = crate::R<SARrs>;
pub type W = crate::W<SARrs>;
pub type SAR_R = crate::FieldReader<u32>;
pub type SAR_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[inline(always)]
pub fn sar(&self) -> SAR_R {
SAR_R::new(self.bits)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SAR").field("sar", &self.sar()).finish()
}
}
impl W {
#[inline(always)]
pub fn sar(&mut self) -> SAR_W<SARrs> {
SAR_W::new(self, 0)
}
}
pub struct SARrs;
impl crate::RegisterSpec for SARrs {
type Ux = u32;
}
impl crate::Readable for SARrs {}
impl crate::Writable for SARrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for SARrs {}