#[doc = "Register `HIST_BIN10` reader"]
pub type R = crate::R<HIST_BIN10_SPEC>;
#[doc = "Field `HIST_BIN_10` reader - this field represents result of histogram bin 10"]
pub type HIST_BIN_10_R = crate::FieldReader<u32>;
impl R {
#[doc = "Bits 0:16 - this field represents result of histogram bin 10"]
#[inline(always)]
pub fn hist_bin_10(&self) -> HIST_BIN_10_R {
HIST_BIN_10_R::new(self.bits & 0x0001_ffff)
}
}
#[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("HIST_BIN10")
.field(
"hist_bin_10",
&format_args!("{}", self.hist_bin_10().bits()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<HIST_BIN10_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(&self.read(), f)
}
}
#[doc = "result of histogram bin 10\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hist_bin10::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct HIST_BIN10_SPEC;
impl crate::RegisterSpec for HIST_BIN10_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`hist_bin10::R`](R) reader structure"]
impl crate::Readable for HIST_BIN10_SPEC {}
#[doc = "`reset()` method sets HIST_BIN10 to value 0"]
impl crate::Resettable for HIST_BIN10_SPEC {
const RESET_VALUE: u32 = 0;
}