1#[doc = "Register `HIST_BIN8` reader"]
2pub type R = crate::R<HIST_BIN8_SPEC>;
3#[doc = "Field `HIST_BIN_8` reader - this field represents result of histogram bin 8"]
4pub type HIST_BIN_8_R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:16 - this field represents result of histogram bin 8"]
7 #[inline(always)]
8 pub fn hist_bin_8(&self) -> HIST_BIN_8_R {
9 HIST_BIN_8_R::new(self.bits & 0x0001_ffff)
10 }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("HIST_BIN8")
16 .field("hist_bin_8", &format_args!("{}", self.hist_bin_8().bits()))
17 .finish()
18 }
19}
20#[cfg(feature = "impl-register-debug")]
21impl core::fmt::Debug for crate::generic::Reg<HIST_BIN8_SPEC> {
22 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
23 core::fmt::Debug::fmt(&self.read(), f)
24 }
25}
26#[doc = "result of histogram bin 8\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`hist_bin8::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
27pub struct HIST_BIN8_SPEC;
28impl crate::RegisterSpec for HIST_BIN8_SPEC {
29 type Ux = u32;
30}
31#[doc = "`read()` method returns [`hist_bin8::R`](R) reader structure"]
32impl crate::Readable for HIST_BIN8_SPEC {}
33#[doc = "`reset()` method sets HIST_BIN8 to value 0"]
34impl crate::Resettable for HIST_BIN8_SPEC {
35 const RESET_VALUE: u32 = 0;
36}