efm32gg12b_pac/efm32gg12b830/crypto0/
status.rs

1#[doc = "Register `STATUS` reader"]
2pub struct R(crate::R<STATUS_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<STATUS_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<STATUS_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<STATUS_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `SEQRUNNING` reader - AES SEQUENCE Running"]
17pub type SEQRUNNING_R = crate::BitReader<bool>;
18#[doc = "Field `INSTRRUNNING` reader - Action is Active"]
19pub type INSTRRUNNING_R = crate::BitReader<bool>;
20#[doc = "Field `DMAACTIVE` reader - DMA Action is Active"]
21pub type DMAACTIVE_R = crate::BitReader<bool>;
22impl R {
23    #[doc = "Bit 0 - AES SEQUENCE Running"]
24    #[inline(always)]
25    pub fn seqrunning(&self) -> SEQRUNNING_R {
26        SEQRUNNING_R::new((self.bits & 1) != 0)
27    }
28    #[doc = "Bit 1 - Action is Active"]
29    #[inline(always)]
30    pub fn instrrunning(&self) -> INSTRRUNNING_R {
31        INSTRRUNNING_R::new(((self.bits >> 1) & 1) != 0)
32    }
33    #[doc = "Bit 2 - DMA Action is Active"]
34    #[inline(always)]
35    pub fn dmaactive(&self) -> DMAACTIVE_R {
36        DMAACTIVE_R::new(((self.bits >> 2) & 1) != 0)
37    }
38}
39#[doc = "Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [status](index.html) module"]
40pub struct STATUS_SPEC;
41impl crate::RegisterSpec for STATUS_SPEC {
42    type Ux = u32;
43}
44#[doc = "`read()` method returns [status::R](R) reader structure"]
45impl crate::Readable for STATUS_SPEC {
46    type Reader = R;
47}
48#[doc = "`reset()` method sets STATUS to value 0"]
49impl crate::Resettable for STATUS_SPEC {
50    const RESET_VALUE: Self::Ux = 0;
51}