#[doc = "Register `STATUS_10` reader"]
pub type R = crate::R<STATUS_10_SPEC>;
#[doc = "Field `PAD10_DATA` reader - need_des"]
pub type PAD10_DATA_R = crate::FieldReader<u16>;
#[doc = "Field `PAD10_DEBOUNCE_CNT` reader - need_des"]
pub type PAD10_DEBOUNCE_CNT_R = crate::FieldReader;
#[doc = "Field `PAD10_NEG_NOISE_CNT` reader - need_des"]
pub type PAD10_NEG_NOISE_CNT_R = crate::FieldReader;
impl R {
#[doc = "Bits 0:15 - need_des"]
#[inline(always)]
pub fn pad10_data(&self) -> PAD10_DATA_R {
PAD10_DATA_R::new((self.bits & 0xffff) as u16)
}
#[doc = "Bits 16:18 - need_des"]
#[inline(always)]
pub fn pad10_debounce_cnt(&self) -> PAD10_DEBOUNCE_CNT_R {
PAD10_DEBOUNCE_CNT_R::new(((self.bits >> 16) & 7) as u8)
}
#[doc = "Bits 19:22 - need_des"]
#[inline(always)]
pub fn pad10_neg_noise_cnt(&self) -> PAD10_NEG_NOISE_CNT_R {
PAD10_NEG_NOISE_CNT_R::new(((self.bits >> 19) & 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("STATUS_10")
.field("pad10_data", &format_args!("{}", self.pad10_data().bits()))
.field(
"pad10_debounce_cnt",
&format_args!("{}", self.pad10_debounce_cnt().bits()),
)
.field(
"pad10_neg_noise_cnt",
&format_args!("{}", self.pad10_neg_noise_cnt().bits()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<STATUS_10_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(&self.read(), f)
}
}
#[doc = "need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_10::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct STATUS_10_SPEC;
impl crate::RegisterSpec for STATUS_10_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`status_10::R`](R) reader structure"]
impl crate::Readable for STATUS_10_SPEC {}
#[doc = "`reset()` method sets STATUS_10 to value 0"]
impl crate::Resettable for STATUS_10_SPEC {
const RESET_VALUE: u32 = 0;
}