efm32pg1b_pac/acmp0/
status.rs1pub type R = crate::R<STATUSrs>;
3pub type AcmpactR = crate::BitReader;
5pub type AcmpoutR = crate::BitReader;
7pub type AportconflictR = crate::BitReader;
9impl R {
10 #[inline(always)]
12 pub fn acmpact(&self) -> AcmpactR {
13 AcmpactR::new((self.bits & 1) != 0)
14 }
15 #[inline(always)]
17 pub fn acmpout(&self) -> AcmpoutR {
18 AcmpoutR::new(((self.bits >> 1) & 1) != 0)
19 }
20 #[inline(always)]
22 pub fn aportconflict(&self) -> AportconflictR {
23 AportconflictR::new(((self.bits >> 2) & 1) != 0)
24 }
25}
26impl core::fmt::Debug for R {
27 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
28 f.debug_struct("STATUS")
29 .field("acmpact", &self.acmpact())
30 .field("acmpout", &self.acmpout())
31 .field("aportconflict", &self.aportconflict())
32 .finish()
33 }
34}
35pub struct STATUSrs;
39impl crate::RegisterSpec for STATUSrs {
40 type Ux = u32;
41}
42impl crate::Readable for STATUSrs {}
44impl crate::Resettable for STATUSrs {
46 const RESET_VALUE: u32 = 0;
47}