bl602_pac/pds/
pds_stat.rs1#[doc = "Register `pds_stat` reader"]
2pub struct R(crate::R<PDS_STAT_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<PDS_STAT_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<PDS_STAT_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<PDS_STAT_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `ro_pds_state` reader - "]
17pub type RO_PDS_STATE_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `ro_pds_rf_state` reader - "]
19pub type RO_PDS_RF_STATE_R = crate::FieldReader<u8, u8>;
20#[doc = "Field `ro_pds_pll_state` reader - "]
21pub type RO_PDS_PLL_STATE_R = crate::FieldReader<u8, u8>;
22impl R {
23 #[doc = "Bits 0:3"]
24 #[inline(always)]
25 pub fn ro_pds_state(&self) -> RO_PDS_STATE_R {
26 RO_PDS_STATE_R::new((self.bits & 0x0f) as u8)
27 }
28 #[doc = "Bits 8:11"]
29 #[inline(always)]
30 pub fn ro_pds_rf_state(&self) -> RO_PDS_RF_STATE_R {
31 RO_PDS_RF_STATE_R::new(((self.bits >> 8) & 0x0f) as u8)
32 }
33 #[doc = "Bits 16:17"]
34 #[inline(always)]
35 pub fn ro_pds_pll_state(&self) -> RO_PDS_PLL_STATE_R {
36 RO_PDS_PLL_STATE_R::new(((self.bits >> 16) & 3) as u8)
37 }
38}
39#[doc = "pds_stat.\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 [pds_stat](index.html) module"]
40pub struct PDS_STAT_SPEC;
41impl crate::RegisterSpec for PDS_STAT_SPEC {
42 type Ux = u32;
43}
44#[doc = "`read()` method returns [pds_stat::R](R) reader structure"]
45impl crate::Readable for PDS_STAT_SPEC {
46 type Reader = R;
47}
48#[doc = "`reset()` method sets pds_stat to value 0"]
49impl crate::Resettable for PDS_STAT_SPEC {
50 const RESET_VALUE: Self::Ux = 0;
51}