pub type R = crate::R<TEMPLIMITSrs>;
pub type W = crate::W<TEMPLIMITSrs>;
pub type TemplowR = crate::FieldReader;
pub type TemplowW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type TemphighR = crate::FieldReader;
pub type TemphighW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Em4wuenR = crate::BitReader;
pub type Em4wuenW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn templow(&self) -> TemplowR {
TemplowR::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn temphigh(&self) -> TemphighR {
TemphighR::new(((self.bits >> 8) & 0xff) as u8)
}
#[inline(always)]
pub fn em4wuen(&self) -> Em4wuenR {
Em4wuenR::new(((self.bits >> 16) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TEMPLIMITS")
.field("templow", &self.templow())
.field("temphigh", &self.temphigh())
.field("em4wuen", &self.em4wuen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn templow(&mut self) -> TemplowW<'_, TEMPLIMITSrs> {
TemplowW::new(self, 0)
}
#[inline(always)]
pub fn temphigh(&mut self) -> TemphighW<'_, TEMPLIMITSrs> {
TemphighW::new(self, 8)
}
#[inline(always)]
pub fn em4wuen(&mut self) -> Em4wuenW<'_, TEMPLIMITSrs> {
Em4wuenW::new(self, 16)
}
}
pub struct TEMPLIMITSrs;
impl crate::RegisterSpec for TEMPLIMITSrs {
type Ux = u32;
}
impl crate::Readable for TEMPLIMITSrs {}
impl crate::Writable for TEMPLIMITSrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TEMPLIMITSrs {
const RESET_VALUE: u32 = 0xff00;
}