#[doc = "Register `APP_INTRUSION_STATUS` reader"]
pub struct R(crate::R<APP_INTRUSION_STATUS_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<APP_INTRUSION_STATUS_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<APP_INTRUSION_STATUS_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<APP_INTRUSION_STATUS_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `APP_INTRUSION_RECORD` reader - "]
pub type APP_INTRUSION_RECORD_R = crate::FieldReader;
impl R {
#[doc = "Bits 0:3"]
#[inline(always)]
pub fn app_intrusion_record(&self) -> APP_INTRUSION_RECORD_R {
APP_INTRUSION_RECORD_R::new((self.bits & 0x0f) as u8)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("APP_INTRUSION_STATUS")
.field(
"app_intrusion_record",
&format_args!("{}", self.app_intrusion_record().bits()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<APP_INTRUSION_STATUS_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
self.read().fmt(f)
}
}
#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [app_intrusion_status](index.html) module"]
pub struct APP_INTRUSION_STATUS_SPEC;
impl crate::RegisterSpec for APP_INTRUSION_STATUS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [app_intrusion_status::R](R) reader structure"]
impl crate::Readable for APP_INTRUSION_STATUS_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets APP_INTRUSION_STATUS to value 0"]
impl crate::Resettable for APP_INTRUSION_STATUS_SPEC {
const RESET_VALUE: Self::Ux = 0;
}