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
///Register `CMD` reader
pub type R = crate::R<CMDrs>;
///Register `CMD` writer
pub type W = crate::W<CMDrs>;
///Field `INSTR` reader - Execute Instruction
pub type InstrR = crate::FieldReader;
///Field `INSTR` writer - Execute Instruction
pub type InstrW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
///Field `SEQSTART` writer - Encryption/Decryption SEQUENCE Start
pub type SeqstartW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEQSTOP` writer - Sequence Stop
pub type SeqstopW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEQSTEP` writer - Sequence Step
pub type SeqstepW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
///Bits 0:7 - Execute Instruction
#[inline(always)]
pub fn instr(&self) -> InstrR {
InstrR::new((self.bits & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CMD").field("instr", &self.instr()).finish()
}
}
impl W {
///Bits 0:7 - Execute Instruction
#[inline(always)]
pub fn instr(&mut self) -> InstrW<'_, CMDrs> {
InstrW::new(self, 0)
}
///Bit 9 - Encryption/Decryption SEQUENCE Start
#[inline(always)]
pub fn seqstart(&mut self) -> SeqstartW<'_, CMDrs> {
SeqstartW::new(self, 9)
}
///Bit 10 - Sequence Stop
#[inline(always)]
pub fn seqstop(&mut self) -> SeqstopW<'_, CMDrs> {
SeqstopW::new(self, 10)
}
///Bit 11 - Sequence Step
#[inline(always)]
pub fn seqstep(&mut self) -> SeqstepW<'_, CMDrs> {
SeqstepW::new(self, 11)
}
}
///Command Register
///
///You can [`read`](crate::Reg::read) this register and get [`cmd::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cmd::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct CMDrs;
impl crate::RegisterSpec for CMDrs {
type Ux = u32;
}
///`read()` method returns [`cmd::R`](R) reader structure
impl crate::Readable for CMDrs {}
///`write(|w| ..)` method takes [`cmd::W`](W) writer structure
impl crate::Writable for CMDrs {
type Safety = crate::Unsafe;
}
///`reset()` method sets CMD to value 0
impl crate::Resettable for CMDrs {}