d1_pac/sys_cfg/
rescal_status.rs1#[doc = "Register `rescal_status` reader"]
2pub type R = crate::R<RESCAL_STATUS_SPEC>;
3#[doc = "Field `res_cal_do` reader - RESCAL Calibration Results Output"]
4pub type RES_CAL_DO_R = crate::FieldReader;
5#[doc = "Field `cout` reader - Calibration Circuits Analog COmpare Output"]
6pub type COUT_R = crate::BitReader;
7impl R {
8 #[doc = "Bits 0:5 - RESCAL Calibration Results Output"]
9 #[inline(always)]
10 pub fn res_cal_do(&self) -> RES_CAL_DO_R {
11 RES_CAL_DO_R::new((self.bits & 0x3f) as u8)
12 }
13 #[doc = "Bit 8 - Calibration Circuits Analog COmpare Output"]
14 #[inline(always)]
15 pub fn cout(&self) -> COUT_R {
16 COUT_R::new(((self.bits >> 8) & 1) != 0)
17 }
18}
19#[doc = "Resistor Calibration Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rescal_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct RESCAL_STATUS_SPEC;
21impl crate::RegisterSpec for RESCAL_STATUS_SPEC {
22 type Ux = u32;
23}
24#[doc = "`read()` method returns [`rescal_status::R`](R) reader structure"]
25impl crate::Readable for RESCAL_STATUS_SPEC {}
26#[doc = "`reset()` method sets rescal_status to value 0"]
27impl crate::Resettable for RESCAL_STATUS_SPEC {
28 const RESET_VALUE: Self::Ux = 0;
29}