cc2650/ccfg/
ieee_mac_1.rs

1#[doc = r" Value read from the register"]
2pub struct R {
3    bits: u32,
4}
5impl super::IEEE_MAC_1 {
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 ADDRR {
14    bits: u32,
15}
16impl ADDRR {
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 - Bits\\[63:32\\] of the 64-bits custom IEEE MAC address. If different from 0xFFFFFFFF then the value of this field is applied; otherwise use value from FCFG."]
30    #[inline]
31    pub fn addr(&self) -> ADDRR {
32        let bits = {
33            const MASK: u32 = 4294967295;
34            const OFFSET: u8 = 0;
35            ((self.bits >> OFFSET) & MASK as u32) as u32
36        };
37        ADDRR { bits }
38    }
39}