tm4c129x/sysctl/
prcan.rs

1#[doc = "Reader of register PRCAN"]
2pub type R = crate::R<u32, super::PRCAN>;
3#[doc = "Reader of field `R0`"]
4pub type R0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `R1`"]
6pub type R1_R = crate::R<bool, bool>;
7impl R {
8    #[doc = "Bit 0 - CAN Module 0 Peripheral Ready"]
9    #[inline(always)]
10    pub fn r0(&self) -> R0_R {
11        R0_R::new((self.bits & 0x01) != 0)
12    }
13    #[doc = "Bit 1 - CAN Module 1 Peripheral Ready"]
14    #[inline(always)]
15    pub fn r1(&self) -> R1_R {
16        R1_R::new(((self.bits >> 1) & 0x01) != 0)
17    }
18}