corstone300_pac/scc/
cfg_reg4.rs1#[doc = "Register `CFG_REG4` reader"]
6pub struct R(crate::R<CFG_REG4_SPEC>);
7impl core::ops::Deref for R {
8 type Target = crate::R<CFG_REG4_SPEC>;
9 #[inline(always)]
10 fn deref(&self) -> &Self::Target {
11 &self.0
12 }
13}
14impl From<crate::R<CFG_REG4_SPEC>> for R {
15 #[inline(always)]
16 fn from(reader: crate::R<CFG_REG4_SPEC>) -> Self {
17 R(reader)
18 }
19}
20#[doc = "Field `BRDREV` reader - Board Revision"]
21pub type BRDREV_R = crate::FieldReader<u8, u8>;
22impl R {
23 #[doc = "Bits 0:3 - Board Revision"]
24 #[inline(always)]
25 pub fn brdrev(&self) -> BRDREV_R {
26 BRDREV_R::new((self.bits & 0x0f) as u8)
27 }
28}
29#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [cfg_reg4](index.html) module"]
30pub struct CFG_REG4_SPEC;
31impl crate::RegisterSpec for CFG_REG4_SPEC {
32 type Ux = u32;
33}
34#[doc = "`read()` method returns [cfg_reg4::R](R) reader structure"]
35impl crate::Readable for CFG_REG4_SPEC {
36 type Reader = R;
37}
38#[doc = "`reset()` method sets CFG_REG4 to value 0"]
39impl crate::Resettable for CFG_REG4_SPEC {
40 #[inline(always)]
41 fn reset_value() -> Self::Ux {
42 0
43 }
44}