stm32l4/stm32l4x1/firewall/
cssa.rs

1///Register `CSSA` reader
2pub type R = crate::R<CSSArs>;
3///Register `CSSA` writer
4pub type W = crate::W<CSSArs>;
5///Field `ADD` reader - code segment start address
6pub type ADD_R = crate::FieldReader<u16>;
7///Field `ADD` writer - code segment start address
8pub type ADD_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
9impl R {
10    ///Bits 8:23 - code segment start address
11    #[inline(always)]
12    pub fn add(&self) -> ADD_R {
13        ADD_R::new(((self.bits >> 8) & 0xffff) as u16)
14    }
15}
16impl core::fmt::Debug for R {
17    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18        f.debug_struct("CSSA").field("add", &self.add()).finish()
19    }
20}
21impl W {
22    ///Bits 8:23 - code segment start address
23    #[inline(always)]
24    pub fn add(&mut self) -> ADD_W<CSSArs> {
25        ADD_W::new(self, 8)
26    }
27}
28/**Code segment start address
29
30You can [`read`](crate::Reg::read) this register and get [`cssa::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cssa::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
31
32See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L4x1.html#FIREWALL:CSSA)*/
33pub struct CSSArs;
34impl crate::RegisterSpec for CSSArs {
35    type Ux = u32;
36}
37///`read()` method returns [`cssa::R`](R) reader structure
38impl crate::Readable for CSSArs {}
39///`write(|w| ..)` method takes [`cssa::W`](W) writer structure
40impl crate::Writable for CSSArs {
41    type Safety = crate::Unsafe;
42}
43///`reset()` method sets CSSA to value 0
44impl crate::Resettable for CSSArs {}