cc2650/crypto/
aestagout.rs1#[doc = r" Value read from the register"]
2pub struct R {
3 bits: u32,
4}
5impl super::AESTAGOUT {
6 #[doc = r" Reads the contents of the register"]
7 #[inline]
8 pub fn read(&self) -> R {
9 R { bits: self.register.get() }
10 }
11}
12#[doc = r" Value of the field"]
13pub struct TAGR {
14 bits: u32,
15}
16impl TAGR {
17 #[doc = r" Value of the field as raw bits"]
18 #[inline]
19 pub fn bits(&self) -> u32 {
20 self.bits
21 }
22}
23impl R {
24 #[doc = r" Value of the register as raw bits"]
25 #[inline]
26 pub fn bits(&self) -> u32 {
27 self.bits
28 }
29 #[doc = "Bits 0:31 - This register contains the authentication TAG for the combined and authentication-only modes."]
30 #[inline]
31 pub fn tag(&self) -> TAGR {
32 let bits = {
33 const MASK: u32 = 4294967295;
34 const OFFSET: u8 = 0;
35 ((self.bits >> OFFSET) & MASK as u32) as u32
36 };
37 TAGR { bits }
38 }
39}