pub type R = crate::R<DBGHALTrs>;
pub type W = crate::W<DBGHALTrs>;
pub type DbghaltR = crate::FieldReader;
pub type DbghaltW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn dbghalt(&self) -> DbghaltR {
DbghaltR::new((self.bits & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DBGHALT")
.field("dbghalt", &self.dbghalt())
.finish()
}
}
impl W {
#[inline(always)]
pub fn dbghalt(&mut self) -> DbghaltW<'_, DBGHALTrs> {
DbghaltW::new(self, 0)
}
}
pub struct DBGHALTrs;
impl crate::RegisterSpec for DBGHALTrs {
type Ux = u32;
}
impl crate::Readable for DBGHALTrs {}
impl crate::Writable for DBGHALTrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DBGHALTrs {}