xmc4400/eth0/
mac_address2_low.rs

1#[doc = "Register `MAC_ADDRESS2_LOW` reader"]
2pub type R = crate::R<MAC_ADDRESS2_LOW_SPEC>;
3#[doc = "Register `MAC_ADDRESS2_LOW` writer"]
4pub type W = crate::W<MAC_ADDRESS2_LOW_SPEC>;
5#[doc = "Field `ADDRLO` reader - MAC Address2 \\[31:0\\]"]
6pub type ADDRLO_R = crate::FieldReader<u32>;
7#[doc = "Field `ADDRLO` writer - MAC Address2 \\[31:0\\]"]
8pub type ADDRLO_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10    #[doc = "Bits 0:31 - MAC Address2 \\[31:0\\]"]
11    #[inline(always)]
12    pub fn addrlo(&self) -> ADDRLO_R {
13        ADDRLO_R::new(self.bits)
14    }
15}
16impl W {
17    #[doc = "Bits 0:31 - MAC Address2 \\[31:0\\]"]
18    #[inline(always)]
19    pub fn addrlo(&mut self) -> ADDRLO_W<MAC_ADDRESS2_LOW_SPEC> {
20        ADDRLO_W::new(self, 0)
21    }
22}
23#[doc = "MAC Address2 Low Register\n\nYou can [`read`](crate::Reg::read) this register and get [`mac_address2_low::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mac_address2_low::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct MAC_ADDRESS2_LOW_SPEC;
25impl crate::RegisterSpec for MAC_ADDRESS2_LOW_SPEC {
26    type Ux = u32;
27}
28#[doc = "`read()` method returns [`mac_address2_low::R`](R) reader structure"]
29impl crate::Readable for MAC_ADDRESS2_LOW_SPEC {}
30#[doc = "`write(|w| ..)` method takes [`mac_address2_low::W`](W) writer structure"]
31impl crate::Writable for MAC_ADDRESS2_LOW_SPEC {
32    type Safety = crate::Unsafe;
33    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets MAC_ADDRESS2_LOW to value 0xffff_ffff"]
37impl crate::Resettable for MAC_ADDRESS2_LOW_SPEC {
38    const RESET_VALUE: u32 = 0xffff_ffff;
39}