#[doc = "Register `AESASTAT` reader"]
pub type R = crate::R<AesastatSpec>;
#[doc = "Register `AESASTAT` writer"]
pub type W = crate::W<AesastatSpec>;
#[doc = "Field `AESBUSY` reader - AES Busy"]
pub type AesbusyR = crate::BitReader;
#[doc = "Field `AESBUSY` writer - AES Busy"]
pub type AesbusyW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESKEYWR` reader - AES All 16 bytes written to AESAKEY"]
pub type AeskeywrR = crate::BitReader;
#[doc = "Field `AESKEYWR` writer - AES All 16 bytes written to AESAKEY"]
pub type AeskeywrW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDINWR` reader - AES All 16 bytes written to AESADIN"]
pub type AesdinwrR = crate::BitReader;
#[doc = "Field `AESDINWR` writer - AES All 16 bytes written to AESADIN"]
pub type AesdinwrW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDOUTRD` reader - AES All 16 bytes read from AESADOUT"]
pub type AesdoutrdR = crate::BitReader;
#[doc = "Field `AESDOUTRD` writer - AES All 16 bytes read from AESADOUT"]
pub type AesdoutrdW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESKEYCNT0` reader - AES Bytes written via AESAKEY Bit: 0"]
pub type Aeskeycnt0R = crate::BitReader;
#[doc = "Field `AESKEYCNT0` writer - AES Bytes written via AESAKEY Bit: 0"]
pub type Aeskeycnt0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESKEYCNT1` reader - AES Bytes written via AESAKEY Bit: 1"]
pub type Aeskeycnt1R = crate::BitReader;
#[doc = "Field `AESKEYCNT1` writer - AES Bytes written via AESAKEY Bit: 1"]
pub type Aeskeycnt1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESKEYCNT2` reader - AES Bytes written via AESAKEY Bit: 2"]
pub type Aeskeycnt2R = crate::BitReader;
#[doc = "Field `AESKEYCNT2` writer - AES Bytes written via AESAKEY Bit: 2"]
pub type Aeskeycnt2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESKEYCNT3` reader - AES Bytes written via AESAKEY Bit: 3"]
pub type Aeskeycnt3R = crate::BitReader;
#[doc = "Field `AESKEYCNT3` writer - AES Bytes written via AESAKEY Bit: 3"]
pub type Aeskeycnt3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDINCNT0` reader - AES Bytes written via AESADIN Bit: 0"]
pub type Aesdincnt0R = crate::BitReader;
#[doc = "Field `AESDINCNT0` writer - AES Bytes written via AESADIN Bit: 0"]
pub type Aesdincnt0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDINCNT1` reader - AES Bytes written via AESADIN Bit: 1"]
pub type Aesdincnt1R = crate::BitReader;
#[doc = "Field `AESDINCNT1` writer - AES Bytes written via AESADIN Bit: 1"]
pub type Aesdincnt1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDINCNT2` reader - AES Bytes written via AESADIN Bit: 2"]
pub type Aesdincnt2R = crate::BitReader;
#[doc = "Field `AESDINCNT2` writer - AES Bytes written via AESADIN Bit: 2"]
pub type Aesdincnt2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDINCNT3` reader - AES Bytes written via AESADIN Bit: 3"]
pub type Aesdincnt3R = crate::BitReader;
#[doc = "Field `AESDINCNT3` writer - AES Bytes written via AESADIN Bit: 3"]
pub type Aesdincnt3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDOUTCNT0` reader - AES Bytes read via AESADOUT Bit: 0"]
pub type Aesdoutcnt0R = crate::BitReader;
#[doc = "Field `AESDOUTCNT0` writer - AES Bytes read via AESADOUT Bit: 0"]
pub type Aesdoutcnt0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDOUTCNT1` reader - AES Bytes read via AESADOUT Bit: 1"]
pub type Aesdoutcnt1R = crate::BitReader;
#[doc = "Field `AESDOUTCNT1` writer - AES Bytes read via AESADOUT Bit: 1"]
pub type Aesdoutcnt1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDOUTCNT2` reader - AES Bytes read via AESADOUT Bit: 2"]
pub type Aesdoutcnt2R = crate::BitReader;
#[doc = "Field `AESDOUTCNT2` writer - AES Bytes read via AESADOUT Bit: 2"]
pub type Aesdoutcnt2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `AESDOUTCNT3` reader - AES Bytes read via AESADOUT Bit: 3"]
pub type Aesdoutcnt3R = crate::BitReader;
#[doc = "Field `AESDOUTCNT3` writer - AES Bytes read via AESADOUT Bit: 3"]
pub type Aesdoutcnt3W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - AES Busy"]
#[inline(always)]
pub fn aesbusy(&self) -> AesbusyR {
AesbusyR::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - AES All 16 bytes written to AESAKEY"]
#[inline(always)]
pub fn aeskeywr(&self) -> AeskeywrR {
AeskeywrR::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - AES All 16 bytes written to AESADIN"]
#[inline(always)]
pub fn aesdinwr(&self) -> AesdinwrR {
AesdinwrR::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - AES All 16 bytes read from AESADOUT"]
#[inline(always)]
pub fn aesdoutrd(&self) -> AesdoutrdR {
AesdoutrdR::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - AES Bytes written via AESAKEY Bit: 0"]
#[inline(always)]
pub fn aeskeycnt0(&self) -> Aeskeycnt0R {
Aeskeycnt0R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - AES Bytes written via AESAKEY Bit: 1"]
#[inline(always)]
pub fn aeskeycnt1(&self) -> Aeskeycnt1R {
Aeskeycnt1R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - AES Bytes written via AESAKEY Bit: 2"]
#[inline(always)]
pub fn aeskeycnt2(&self) -> Aeskeycnt2R {
Aeskeycnt2R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - AES Bytes written via AESAKEY Bit: 3"]
#[inline(always)]
pub fn aeskeycnt3(&self) -> Aeskeycnt3R {
Aeskeycnt3R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - AES Bytes written via AESADIN Bit: 0"]
#[inline(always)]
pub fn aesdincnt0(&self) -> Aesdincnt0R {
Aesdincnt0R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - AES Bytes written via AESADIN Bit: 1"]
#[inline(always)]
pub fn aesdincnt1(&self) -> Aesdincnt1R {
Aesdincnt1R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - AES Bytes written via AESADIN Bit: 2"]
#[inline(always)]
pub fn aesdincnt2(&self) -> Aesdincnt2R {
Aesdincnt2R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - AES Bytes written via AESADIN Bit: 3"]
#[inline(always)]
pub fn aesdincnt3(&self) -> Aesdincnt3R {
Aesdincnt3R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - AES Bytes read via AESADOUT Bit: 0"]
#[inline(always)]
pub fn aesdoutcnt0(&self) -> Aesdoutcnt0R {
Aesdoutcnt0R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13 - AES Bytes read via AESADOUT Bit: 1"]
#[inline(always)]
pub fn aesdoutcnt1(&self) -> Aesdoutcnt1R {
Aesdoutcnt1R::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14 - AES Bytes read via AESADOUT Bit: 2"]
#[inline(always)]
pub fn aesdoutcnt2(&self) -> Aesdoutcnt2R {
Aesdoutcnt2R::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15 - AES Bytes read via AESADOUT Bit: 3"]
#[inline(always)]
pub fn aesdoutcnt3(&self) -> Aesdoutcnt3R {
Aesdoutcnt3R::new(((self.bits >> 15) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - AES Busy"]
#[inline(always)]
pub fn aesbusy(&mut self) -> AesbusyW<'_, AesastatSpec> {
AesbusyW::new(self, 0)
}
#[doc = "Bit 1 - AES All 16 bytes written to AESAKEY"]
#[inline(always)]
pub fn aeskeywr(&mut self) -> AeskeywrW<'_, AesastatSpec> {
AeskeywrW::new(self, 1)
}
#[doc = "Bit 2 - AES All 16 bytes written to AESADIN"]
#[inline(always)]
pub fn aesdinwr(&mut self) -> AesdinwrW<'_, AesastatSpec> {
AesdinwrW::new(self, 2)
}
#[doc = "Bit 3 - AES All 16 bytes read from AESADOUT"]
#[inline(always)]
pub fn aesdoutrd(&mut self) -> AesdoutrdW<'_, AesastatSpec> {
AesdoutrdW::new(self, 3)
}
#[doc = "Bit 4 - AES Bytes written via AESAKEY Bit: 0"]
#[inline(always)]
pub fn aeskeycnt0(&mut self) -> Aeskeycnt0W<'_, AesastatSpec> {
Aeskeycnt0W::new(self, 4)
}
#[doc = "Bit 5 - AES Bytes written via AESAKEY Bit: 1"]
#[inline(always)]
pub fn aeskeycnt1(&mut self) -> Aeskeycnt1W<'_, AesastatSpec> {
Aeskeycnt1W::new(self, 5)
}
#[doc = "Bit 6 - AES Bytes written via AESAKEY Bit: 2"]
#[inline(always)]
pub fn aeskeycnt2(&mut self) -> Aeskeycnt2W<'_, AesastatSpec> {
Aeskeycnt2W::new(self, 6)
}
#[doc = "Bit 7 - AES Bytes written via AESAKEY Bit: 3"]
#[inline(always)]
pub fn aeskeycnt3(&mut self) -> Aeskeycnt3W<'_, AesastatSpec> {
Aeskeycnt3W::new(self, 7)
}
#[doc = "Bit 8 - AES Bytes written via AESADIN Bit: 0"]
#[inline(always)]
pub fn aesdincnt0(&mut self) -> Aesdincnt0W<'_, AesastatSpec> {
Aesdincnt0W::new(self, 8)
}
#[doc = "Bit 9 - AES Bytes written via AESADIN Bit: 1"]
#[inline(always)]
pub fn aesdincnt1(&mut self) -> Aesdincnt1W<'_, AesastatSpec> {
Aesdincnt1W::new(self, 9)
}
#[doc = "Bit 10 - AES Bytes written via AESADIN Bit: 2"]
#[inline(always)]
pub fn aesdincnt2(&mut self) -> Aesdincnt2W<'_, AesastatSpec> {
Aesdincnt2W::new(self, 10)
}
#[doc = "Bit 11 - AES Bytes written via AESADIN Bit: 3"]
#[inline(always)]
pub fn aesdincnt3(&mut self) -> Aesdincnt3W<'_, AesastatSpec> {
Aesdincnt3W::new(self, 11)
}
#[doc = "Bit 12 - AES Bytes read via AESADOUT Bit: 0"]
#[inline(always)]
pub fn aesdoutcnt0(&mut self) -> Aesdoutcnt0W<'_, AesastatSpec> {
Aesdoutcnt0W::new(self, 12)
}
#[doc = "Bit 13 - AES Bytes read via AESADOUT Bit: 1"]
#[inline(always)]
pub fn aesdoutcnt1(&mut self) -> Aesdoutcnt1W<'_, AesastatSpec> {
Aesdoutcnt1W::new(self, 13)
}
#[doc = "Bit 14 - AES Bytes read via AESADOUT Bit: 2"]
#[inline(always)]
pub fn aesdoutcnt2(&mut self) -> Aesdoutcnt2W<'_, AesastatSpec> {
Aesdoutcnt2W::new(self, 14)
}
#[doc = "Bit 15 - AES Bytes read via AESADOUT Bit: 3"]
#[inline(always)]
pub fn aesdoutcnt3(&mut self) -> Aesdoutcnt3W<'_, AesastatSpec> {
Aesdoutcnt3W::new(self, 15)
}
}
#[doc = "AES accelerator status register\n\nYou can [`read`](crate::Reg::read) this register and get [`aesastat::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`aesastat::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct AesastatSpec;
impl crate::RegisterSpec for AesastatSpec {
type Ux = u16;
}
#[doc = "`read()` method returns [`aesastat::R`](R) reader structure"]
impl crate::Readable for AesastatSpec {}
#[doc = "`write(|w| ..)` method takes [`aesastat::W`](W) writer structure"]
impl crate::Writable for AesastatSpec {
type Safety = crate::Safe;
}
#[doc = "`reset()` method sets AESASTAT to value 0"]
impl crate::Resettable for AesastatSpec {}