mcxa_pac/syscon/
binary_code_lsb.rs1#[doc = "Register `BINARY_CODE_LSB` reader"]
2pub type R = crate::R<BinaryCodeLsbSpec>;
3#[doc = "Field `code_bin_31_0` reader - Binary code \\[31:0\\]"]
4pub type CodeBin31_0R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - Binary code \\[31:0\\]"]
7 #[inline(always)]
8 pub fn code_bin_31_0(&self) -> CodeBin31_0R {
9 CodeBin31_0R::new(self.bits)
10 }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("BINARY_CODE_LSB")
16 .field("code_bin_31_0", &self.code_bin_31_0())
17 .finish()
18 }
19}
20#[doc = "Gray to Binary Converter Binary Code \\[31:0\\]\n\nYou can [`read`](crate::Reg::read) this register and get [`binary_code_lsb::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct BinaryCodeLsbSpec;
22impl crate::RegisterSpec for BinaryCodeLsbSpec {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`binary_code_lsb::R`](R) reader structure"]
26impl crate::Readable for BinaryCodeLsbSpec {}
27#[doc = "`reset()` method sets BINARY_CODE_LSB to value 0"]
28impl crate::Resettable for BinaryCodeLsbSpec {}