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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
#[repr(C)]
#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
#[doc = "Register block"]
pub struct RegisterBlock {
    _reserved0: [u8; 0x40],
    set_start: SET_START,
    set_para_purpose: SET_PARA_PURPOSE,
    set_para_key: SET_PARA_KEY,
    set_para_finish: SET_PARA_FINISH,
    set_message_one: SET_MESSAGE_ONE,
    set_message_ing: SET_MESSAGE_ING,
    set_message_end: SET_MESSAGE_END,
    set_result_finish: SET_RESULT_FINISH,
    set_invalidate_jtag: SET_INVALIDATE_JTAG,
    set_invalidate_ds: SET_INVALIDATE_DS,
    query_error: QUERY_ERROR,
    query_busy: QUERY_BUSY,
    _reserved12: [u8; 0x10],
    wr_message_: [WR_MESSAGE_; 16],
    rd_result_: [RD_RESULT_; 8],
    _reserved14: [u8; 0x10],
    set_message_pad: SET_MESSAGE_PAD,
    one_block: ONE_BLOCK,
    date: DATE,
}
impl RegisterBlock {
    #[doc = "0x40 - HMAC start control register"]
    #[inline(always)]
    pub const fn set_start(&self) -> &SET_START {
        &self.set_start
    }
    #[doc = "0x44 - HMAC parameter configuration register"]
    #[inline(always)]
    pub const fn set_para_purpose(&self) -> &SET_PARA_PURPOSE {
        &self.set_para_purpose
    }
    #[doc = "0x48 - HMAC key configuration register"]
    #[inline(always)]
    pub const fn set_para_key(&self) -> &SET_PARA_KEY {
        &self.set_para_key
    }
    #[doc = "0x4c - HMAC configuration completion register"]
    #[inline(always)]
    pub const fn set_para_finish(&self) -> &SET_PARA_FINISH {
        &self.set_para_finish
    }
    #[doc = "0x50 - HMAC one message control register"]
    #[inline(always)]
    pub const fn set_message_one(&self) -> &SET_MESSAGE_ONE {
        &self.set_message_one
    }
    #[doc = "0x54 - HMAC message continue register"]
    #[inline(always)]
    pub const fn set_message_ing(&self) -> &SET_MESSAGE_ING {
        &self.set_message_ing
    }
    #[doc = "0x58 - HMAC message end register"]
    #[inline(always)]
    pub const fn set_message_end(&self) -> &SET_MESSAGE_END {
        &self.set_message_end
    }
    #[doc = "0x5c - HMAC read result completion register"]
    #[inline(always)]
    pub const fn set_result_finish(&self) -> &SET_RESULT_FINISH {
        &self.set_result_finish
    }
    #[doc = "0x60 - Invalidate JTAG result register"]
    #[inline(always)]
    pub const fn set_invalidate_jtag(&self) -> &SET_INVALIDATE_JTAG {
        &self.set_invalidate_jtag
    }
    #[doc = "0x64 - Invalidate digital signature result register"]
    #[inline(always)]
    pub const fn set_invalidate_ds(&self) -> &SET_INVALIDATE_DS {
        &self.set_invalidate_ds
    }
    #[doc = "0x68 - The matching result between key and purpose user configured"]
    #[inline(always)]
    pub const fn query_error(&self) -> &QUERY_ERROR {
        &self.query_error
    }
    #[doc = "0x6c - The busy state of HMAC module"]
    #[inline(always)]
    pub const fn query_busy(&self) -> &QUERY_BUSY {
        &self.query_busy
    }
    #[doc = "0x80..0xc0 - Message register %s"]
    #[inline(always)]
    pub const fn wr_message_(&self, n: usize) -> &WR_MESSAGE_ {
        &self.wr_message_[n]
    }
    #[doc = "Iterator for array of:"]
    #[doc = "0x80..0xc0 - Message register %s"]
    #[inline(always)]
    pub fn wr_message__iter(&self) -> impl Iterator<Item = &WR_MESSAGE_> {
        self.wr_message_.iter()
    }
    #[doc = "0xc0..0xe0 - Hash result register %s"]
    #[inline(always)]
    pub const fn rd_result_(&self, n: usize) -> &RD_RESULT_ {
        &self.rd_result_[n]
    }
    #[doc = "Iterator for array of:"]
    #[doc = "0xc0..0xe0 - Hash result register %s"]
    #[inline(always)]
    pub fn rd_result__iter(&self) -> impl Iterator<Item = &RD_RESULT_> {
        self.rd_result_.iter()
    }
    #[doc = "0xf0 - Software padding register"]
    #[inline(always)]
    pub const fn set_message_pad(&self) -> &SET_MESSAGE_PAD {
        &self.set_message_pad
    }
    #[doc = "0xf4 - One block message register."]
    #[inline(always)]
    pub const fn one_block(&self) -> &ONE_BLOCK {
        &self.one_block
    }
    #[doc = "0xf8 - Version control register"]
    #[inline(always)]
    pub const fn date(&self) -> &DATE {
        &self.date
    }
}
#[doc = "SET_START (w) register accessor: HMAC start control register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_start::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_start`] module"]
pub type SET_START = crate::Reg<set_start::SET_START_SPEC>;
#[doc = "HMAC start control register"]
pub mod set_start;
#[doc = "SET_PARA_PURPOSE (w) register accessor: HMAC parameter configuration register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_para_purpose::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_para_purpose`] module"]
pub type SET_PARA_PURPOSE = crate::Reg<set_para_purpose::SET_PARA_PURPOSE_SPEC>;
#[doc = "HMAC parameter configuration register"]
pub mod set_para_purpose;
#[doc = "SET_PARA_KEY (w) register accessor: HMAC key configuration register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_para_key::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_para_key`] module"]
pub type SET_PARA_KEY = crate::Reg<set_para_key::SET_PARA_KEY_SPEC>;
#[doc = "HMAC key configuration register"]
pub mod set_para_key;
#[doc = "SET_PARA_FINISH (w) register accessor: HMAC configuration completion register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_para_finish::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_para_finish`] module"]
pub type SET_PARA_FINISH = crate::Reg<set_para_finish::SET_PARA_FINISH_SPEC>;
#[doc = "HMAC configuration completion register"]
pub mod set_para_finish;
#[doc = "SET_MESSAGE_ONE (w) register accessor: HMAC one message control register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_message_one::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_message_one`] module"]
pub type SET_MESSAGE_ONE = crate::Reg<set_message_one::SET_MESSAGE_ONE_SPEC>;
#[doc = "HMAC one message control register"]
pub mod set_message_one;
#[doc = "SET_MESSAGE_ING (w) register accessor: HMAC message continue register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_message_ing::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_message_ing`] module"]
pub type SET_MESSAGE_ING = crate::Reg<set_message_ing::SET_MESSAGE_ING_SPEC>;
#[doc = "HMAC message continue register"]
pub mod set_message_ing;
#[doc = "SET_MESSAGE_END (w) register accessor: HMAC message end register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_message_end::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_message_end`] module"]
pub type SET_MESSAGE_END = crate::Reg<set_message_end::SET_MESSAGE_END_SPEC>;
#[doc = "HMAC message end register"]
pub mod set_message_end;
#[doc = "SET_RESULT_FINISH (w) register accessor: HMAC read result completion register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_result_finish::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_result_finish`] module"]
pub type SET_RESULT_FINISH = crate::Reg<set_result_finish::SET_RESULT_FINISH_SPEC>;
#[doc = "HMAC read result completion register"]
pub mod set_result_finish;
#[doc = "SET_INVALIDATE_JTAG (w) register accessor: Invalidate JTAG result register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_invalidate_jtag::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_invalidate_jtag`] module"]
pub type SET_INVALIDATE_JTAG = crate::Reg<set_invalidate_jtag::SET_INVALIDATE_JTAG_SPEC>;
#[doc = "Invalidate JTAG result register"]
pub mod set_invalidate_jtag;
#[doc = "SET_INVALIDATE_DS (w) register accessor: Invalidate digital signature result register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_invalidate_ds::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_invalidate_ds`] module"]
pub type SET_INVALIDATE_DS = crate::Reg<set_invalidate_ds::SET_INVALIDATE_DS_SPEC>;
#[doc = "Invalidate digital signature result register"]
pub mod set_invalidate_ds;
#[doc = "QUERY_ERROR (r) register accessor: The matching result between key and purpose user configured\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`query_error::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@query_error`] module"]
pub type QUERY_ERROR = crate::Reg<query_error::QUERY_ERROR_SPEC>;
#[doc = "The matching result between key and purpose user configured"]
pub mod query_error;
#[doc = "QUERY_BUSY (r) register accessor: The busy state of HMAC module\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`query_busy::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@query_busy`] module"]
pub type QUERY_BUSY = crate::Reg<query_busy::QUERY_BUSY_SPEC>;
#[doc = "The busy state of HMAC module"]
pub mod query_busy;
#[doc = "WR_MESSAGE_ (w) register accessor: Message register %s\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`wr_message_::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wr_message_`] module"]
pub type WR_MESSAGE_ = crate::Reg<wr_message_::WR_MESSAGE__SPEC>;
#[doc = "Message register %s"]
pub mod wr_message_;
#[doc = "RD_RESULT_ (r) register accessor: Hash result register %s\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rd_result_::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rd_result_`] module"]
pub type RD_RESULT_ = crate::Reg<rd_result_::RD_RESULT__SPEC>;
#[doc = "Hash result register %s"]
pub mod rd_result_;
#[doc = "SET_MESSAGE_PAD (w) register accessor: Software padding register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`set_message_pad::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@set_message_pad`] module"]
pub type SET_MESSAGE_PAD = crate::Reg<set_message_pad::SET_MESSAGE_PAD_SPEC>;
#[doc = "Software padding register"]
pub mod set_message_pad;
#[doc = "ONE_BLOCK (w) register accessor: One block message register.\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`one_block::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@one_block`] module"]
pub type ONE_BLOCK = crate::Reg<one_block::ONE_BLOCK_SPEC>;
#[doc = "One block message register."]
pub mod one_block;
#[doc = "DATE (rw) register accessor: Version control register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`date::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`date::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@date`] module"]
pub type DATE = crate::Reg<date::DATE_SPEC>;
#[doc = "Version control register"]
pub mod date;