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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
#[doc = "Reader of register AES_ISR"] pub type R = crate::R<u32, super::AES_ISR>; #[doc = "Reader of field `DATRDY`"] pub type DATRDY_R = crate::R<bool, bool>; #[doc = "Reader of field `URAD`"] pub type URAD_R = crate::R<bool, bool>; #[doc = "Unspecified Register Access (cleared by writing SWRST in AES_CR)\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] #[repr(u8)] pub enum URAT_A { #[doc = "0: Input Data Register written during the data processing when SMOD = 0x2 mode."] IDR_WR_PROCESSING = 0, #[doc = "1: Output Data Register read during the data processing."] ODR_RD_PROCESSING = 1, #[doc = "2: Mode Register written during the data processing."] MR_WR_PROCESSING = 2, #[doc = "3: Output Data Register read during the sub-keys generation."] ODR_RD_SUBKGEN = 3, #[doc = "4: Mode Register written during the sub-keys generation."] MR_WR_SUBKGEN = 4, #[doc = "5: Write-only register read access."] WOR_RD_ACCESS = 5, } impl From<URAT_A> for u8 { #[inline(always)] fn from(variant: URAT_A) -> Self { variant as _ } } #[doc = "Reader of field `URAT`"] pub type URAT_R = crate::R<u8, URAT_A>; impl URAT_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> crate::Variant<u8, URAT_A> { use crate::Variant::*; match self.bits { 0 => Val(URAT_A::IDR_WR_PROCESSING), 1 => Val(URAT_A::ODR_RD_PROCESSING), 2 => Val(URAT_A::MR_WR_PROCESSING), 3 => Val(URAT_A::ODR_RD_SUBKGEN), 4 => Val(URAT_A::MR_WR_SUBKGEN), 5 => Val(URAT_A::WOR_RD_ACCESS), i => Res(i), } } #[doc = "Checks if the value of the field is `IDR_WR_PROCESSING`"] #[inline(always)] pub fn is_idr_wr_processing(&self) -> bool { *self == URAT_A::IDR_WR_PROCESSING } #[doc = "Checks if the value of the field is `ODR_RD_PROCESSING`"] #[inline(always)] pub fn is_odr_rd_processing(&self) -> bool { *self == URAT_A::ODR_RD_PROCESSING } #[doc = "Checks if the value of the field is `MR_WR_PROCESSING`"] #[inline(always)] pub fn is_mr_wr_processing(&self) -> bool { *self == URAT_A::MR_WR_PROCESSING } #[doc = "Checks if the value of the field is `ODR_RD_SUBKGEN`"] #[inline(always)] pub fn is_odr_rd_subkgen(&self) -> bool { *self == URAT_A::ODR_RD_SUBKGEN } #[doc = "Checks if the value of the field is `MR_WR_SUBKGEN`"] #[inline(always)] pub fn is_mr_wr_subkgen(&self) -> bool { *self == URAT_A::MR_WR_SUBKGEN } #[doc = "Checks if the value of the field is `WOR_RD_ACCESS`"] #[inline(always)] pub fn is_wor_rd_access(&self) -> bool { *self == URAT_A::WOR_RD_ACCESS } } #[doc = "Reader of field `TAGRDY`"] pub type TAGRDY_R = crate::R<bool, bool>; impl R { #[doc = "Bit 0 - Data Ready (cleared by setting bit START or bit SWRST in AES_CR or by reading AES_ODATARx)"] #[inline(always)] pub fn datrdy(&self) -> DATRDY_R { DATRDY_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 8 - Unspecified Register Access Detection Status (cleared by writing SWRST in AES_CR)"] #[inline(always)] pub fn urad(&self) -> URAD_R { URAD_R::new(((self.bits >> 8) & 0x01) != 0) } #[doc = "Bits 12:15 - Unspecified Register Access (cleared by writing SWRST in AES_CR)"] #[inline(always)] pub fn urat(&self) -> URAT_R { URAT_R::new(((self.bits >> 12) & 0x0f) as u8) } #[doc = "Bit 16 - GCM Tag Ready"] #[inline(always)] pub fn tagrdy(&self) -> TAGRDY_R { TAGRDY_R::new(((self.bits >> 16) & 0x01) != 0) } }