esp32c3/xts_aes/
linesize.rs

1#[doc = "Register `LINESIZE` reader"]
2pub type R = crate::R<LINESIZE_SPEC>;
3#[doc = "Register `LINESIZE` writer"]
4pub type W = crate::W<LINESIZE_SPEC>;
5#[doc = "Field `LINESIZE` reader - This bit stores the line size parameter. 0: 16Byte, 1: 32Byte."]
6pub type LINESIZE_R = crate::BitReader;
7#[doc = "Field `LINESIZE` writer - This bit stores the line size parameter. 0: 16Byte, 1: 32Byte."]
8pub type LINESIZE_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10    #[doc = "Bit 0 - This bit stores the line size parameter. 0: 16Byte, 1: 32Byte."]
11    #[inline(always)]
12    pub fn linesize(&self) -> LINESIZE_R {
13        LINESIZE_R::new((self.bits & 1) != 0)
14    }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19        f.debug_struct("LINESIZE")
20            .field("linesize", &self.linesize())
21            .finish()
22    }
23}
24impl W {
25    #[doc = "Bit 0 - This bit stores the line size parameter. 0: 16Byte, 1: 32Byte."]
26    #[inline(always)]
27    pub fn linesize(&mut self) -> LINESIZE_W<LINESIZE_SPEC> {
28        LINESIZE_W::new(self, 0)
29    }
30}
31#[doc = "XTS-AES line-size register\n\nYou can [`read`](crate::Reg::read) this register and get [`linesize::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`linesize::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct LINESIZE_SPEC;
33impl crate::RegisterSpec for LINESIZE_SPEC {
34    type Ux = u32;
35}
36#[doc = "`read()` method returns [`linesize::R`](R) reader structure"]
37impl crate::Readable for LINESIZE_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`linesize::W`](W) writer structure"]
39impl crate::Writable for LINESIZE_SPEC {
40    type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets LINESIZE to value 0"]
43impl crate::Resettable for LINESIZE_SPEC {}