#[doc = "Register `_1_STATE0` reader"]
pub struct R(crate::R<_1_STATE0_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<_1_STATE0_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<_1_STATE0_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<_1_STATE0_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `SLC1_STATE0` reader - "]
pub type SLC1_STATE0_R = crate::FieldReader<u32>;
impl R {
#[doc = "Bits 0:31"]
#[inline(always)]
pub fn slc1_state0(&self) -> SLC1_STATE0_R {
SLC1_STATE0_R::new(self.bits)
}
}
#[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("_1_STATE0")
.field(
"slc1_state0",
&format_args!("{}", self.slc1_state0().bits()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<_1_STATE0_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 [_1_state0](index.html) module"]
pub struct _1_STATE0_SPEC;
impl crate::RegisterSpec for _1_STATE0_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [_1_state0::R](R) reader structure"]
impl crate::Readable for _1_STATE0_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets _1_STATE0 to value 0"]
impl crate::Resettable for _1_STATE0_SPEC {
const RESET_VALUE: Self::Ux = 0;
}