1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#[doc = "Reader of register TIFR0"]
pub type R = crate::R<u8, super::TIFR0>;
#[doc = "Reader of field `TOV0`"]
pub type TOV0_R = crate::R<bool, bool>;
#[doc = "Reader of field `OCF0A`"]
pub type OCF0A_R = crate::R<bool, bool>;
#[doc = "Reader of field `OCF0B`"]
pub type OCF0B_R = crate::R<bool, bool>;
impl R {
    #[doc = "Bit 0 - Timer/Counter0 Overflow Flag"]
    #[inline(always)]
    pub fn tov0(&self) -> TOV0_R {
        TOV0_R::new((self.bits & 0x01) != 0)
    }
    #[doc = "Bit 1 - Timer/Counter0 Output Compare Flag 0A"]
    #[inline(always)]
    pub fn ocf0a(&self) -> OCF0A_R {
        OCF0A_R::new(((self.bits >> 1) & 0x01) != 0)
    }
    #[doc = "Bit 2 - Timer/Counter0 Output Compare Flag 0B"]
    #[inline(always)]
    pub fn ocf0b(&self) -> OCF0B_R {
        OCF0B_R::new(((self.bits >> 2) & 0x01) != 0)
    }
}