stm32wb_pac/aes1/
sr.rs

1#[doc = "Reader of register SR"]
2pub type R = crate::R<u32, super::SR>;
3#[doc = "Reader of field `BUSY`"]
4pub type BUSY_R = crate::R<bool, bool>;
5#[doc = "Reader of field `WRERR`"]
6pub type WRERR_R = crate::R<bool, bool>;
7#[doc = "Reader of field `RDERR`"]
8pub type RDERR_R = crate::R<bool, bool>;
9#[doc = "Reader of field `CCF`"]
10pub type CCF_R = crate::R<bool, bool>;
11impl R {
12    #[doc = "Bit 3 - Busy flag"]
13    #[inline(always)]
14    pub fn busy(&self) -> BUSY_R {
15        BUSY_R::new(((self.bits >> 3) & 0x01) != 0)
16    }
17    #[doc = "Bit 2 - Write error flag"]
18    #[inline(always)]
19    pub fn wrerr(&self) -> WRERR_R {
20        WRERR_R::new(((self.bits >> 2) & 0x01) != 0)
21    }
22    #[doc = "Bit 1 - Read error flag"]
23    #[inline(always)]
24    pub fn rderr(&self) -> RDERR_R {
25        RDERR_R::new(((self.bits >> 1) & 0x01) != 0)
26    }
27    #[doc = "Bit 0 - Computation complete flag"]
28    #[inline(always)]
29    pub fn ccf(&self) -> CCF_R {
30        CCF_R::new((self.bits & 0x01) != 0)
31    }
32}