rv32m1_ri5cy_pac/sim/
rfaddrl.rs1#[doc = "Reader of register RFADDRL"]
2pub type R = crate::R<u32, super::RFADDRL>;
3#[doc = "Reader of field `MACADDR0`"]
4pub type MACADDR0_R = crate::R<u8, u8>;
5#[doc = "Reader of field `MACADDR1`"]
6pub type MACADDR1_R = crate::R<u8, u8>;
7#[doc = "Reader of field `MACADDR2`"]
8pub type MACADDR2_R = crate::R<u8, u8>;
9#[doc = "Reader of field `MACADDR3`"]
10pub type MACADDR3_R = crate::R<u8, u8>;
11impl R {
12 #[doc = "Bits 0:7 - MACADDR0"]
13 #[inline(always)]
14 pub fn macaddr0(&self) -> MACADDR0_R {
15 MACADDR0_R::new((self.bits & 0xff) as u8)
16 }
17 #[doc = "Bits 8:15 - MACADDR1"]
18 #[inline(always)]
19 pub fn macaddr1(&self) -> MACADDR1_R {
20 MACADDR1_R::new(((self.bits >> 8) & 0xff) as u8)
21 }
22 #[doc = "Bits 16:23 - MACADDR2"]
23 #[inline(always)]
24 pub fn macaddr2(&self) -> MACADDR2_R {
25 MACADDR2_R::new(((self.bits >> 16) & 0xff) as u8)
26 }
27 #[doc = "Bits 24:31 - MACADDR3"]
28 #[inline(always)]
29 pub fn macaddr3(&self) -> MACADDR3_R {
30 MACADDR3_R::new(((self.bits >> 24) & 0xff) as u8)
31 }
32}