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 TIFR2"]
pub type R = crate::R<u8, super::TIFR2>;
#[doc = "Reader of field `TOV2`"]
pub type TOV2_R = crate::R<bool, bool>;
#[doc = "Reader of field `OCF2A`"]
pub type OCF2A_R = crate::R<bool, bool>;
#[doc = "Reader of field `OCF2B`"]
pub type OCF2B_R = crate::R<bool, bool>;
impl R {
    #[doc = "Bit 0 - Timer/Counter2 Overflow Flag"]
    #[inline(always)]
    pub fn tov2(&self) -> TOV2_R {
        TOV2_R::new((self.bits & 0x01) != 0)
    }
    #[doc = "Bit 1 - Output Compare Flag 2A"]
    #[inline(always)]
    pub fn ocf2a(&self) -> OCF2A_R {
        OCF2A_R::new(((self.bits >> 1) & 0x01) != 0)
    }
    #[doc = "Bit 2 - Output Compare Flag 2B"]
    #[inline(always)]
    pub fn ocf2b(&self) -> OCF2B_R {
        OCF2B_R::new(((self.bits >> 2) & 0x01) != 0)
    }
}