pub type R = crate::R<ESURrs>;
pub type W = crate::W<ESURrs>;
pub type FSU_R = crate::FieldReader;
pub type FSU_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type LSU_R = crate::FieldReader;
pub type LSU_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type LEU_R = crate::FieldReader;
pub type LEU_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type FEU_R = crate::FieldReader;
pub type FEU_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn fsu(&self) -> FSU_R {
FSU_R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn lsu(&self) -> LSU_R {
LSU_R::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn leu(&self) -> LEU_R {
LEU_R::new(((self.bits >> 16) & 0xff) as u8)
}
#[inline(always)]
pub fn feu(&self) -> FEU_R {
FEU_R::new(((self.bits >> 24) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("ESUR")
.field("feu", &self.feu())
.field("leu", &self.leu())
.field("lsu", &self.lsu())
.field("fsu", &self.fsu())
.finish()
}
}
impl W {
#[inline(always)]
pub fn fsu(&mut self) -> FSU_W<ESURrs> {
FSU_W::new(self, 0)
}
#[inline(always)]
pub fn lsu(&mut self) -> LSU_W<ESURrs> {
LSU_W::new(self, 8)
}
#[inline(always)]
pub fn leu(&mut self) -> LEU_W<ESURrs> {
LEU_W::new(self, 16)
}
#[inline(always)]
pub fn feu(&mut self) -> FEU_W<ESURrs> {
FEU_W::new(self, 24)
}
}
pub struct ESURrs;
impl crate::RegisterSpec for ESURrs {
type Ux = u32;
}
impl crate::Readable for ESURrs {}
impl crate::Writable for ESURrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for ESURrs {}