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