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
///Register `MACVR` reader
pub type R = crate::R<MACVRrs>;
///Field `SNPSVER` reader - SNPSVER
pub type SNPSVER_R = crate::FieldReader;
///Field `USERVER` reader - USERVER
pub type USERVER_R = crate::FieldReader;
impl R {
///Bits 0:7 - SNPSVER
#[inline(always)]
pub fn snpsver(&self) -> SNPSVER_R {
SNPSVER_R::new((self.bits & 0xff) as u8)
}
///Bits 8:15 - USERVER
#[inline(always)]
pub fn userver(&self) -> USERVER_R {
USERVER_R::new(((self.bits >> 8) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("MACVR")
.field("snpsver", &self.snpsver())
.field("userver", &self.userver())
.finish()
}
}
/**The version register identifies the version of the Ethernet peripheral.
You can [`read`](crate::Reg::read) this register and get [`macvr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
See register [structure](https://stm32-rs.github.io/stm32-rs/STM32MP153.html#ETH_MAC_MMC:MACVR)*/
pub struct MACVRrs;
impl crate::RegisterSpec for MACVRrs {
type Ux = u32;
}
///`read()` method returns [`macvr::R`](R) reader structure
impl crate::Readable for MACVRrs {}
///`reset()` method sets MACVR to value 0x4042
impl crate::Resettable for MACVRrs {
const RESET_VALUE: u32 = 0x4042;
}