stm32f1/stm32f103/ethernet_mac/
machthr.rs

1///Register `MACHTHR` reader
2pub type R = crate::R<MACHTHRrs>;
3///Register `MACHTHR` writer
4pub type W = crate::W<MACHTHRrs>;
5///Field `HTH` reader - Hash table high
6pub type HTH_R = crate::FieldReader<u32>;
7///Field `HTH` writer - Hash table high
8pub type HTH_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10    ///Bits 0:31 - Hash table high
11    #[inline(always)]
12    pub fn hth(&self) -> HTH_R {
13        HTH_R::new(self.bits)
14    }
15}
16impl core::fmt::Debug for R {
17    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18        f.debug_struct("MACHTHR").field("hth", &self.hth()).finish()
19    }
20}
21impl W {
22    ///Bits 0:31 - Hash table high
23    #[inline(always)]
24    pub fn hth(&mut self) -> HTH_W<MACHTHRrs> {
25        HTH_W::new(self, 0)
26    }
27}
28/**Ethernet MAC hash table high register
29
30You can [`read`](crate::Reg::read) this register and get [`machthr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`machthr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
31
32See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#Ethernet_MAC:MACHTHR)*/
33pub struct MACHTHRrs;
34impl crate::RegisterSpec for MACHTHRrs {
35    type Ux = u32;
36}
37///`read()` method returns [`machthr::R`](R) reader structure
38impl crate::Readable for MACHTHRrs {}
39///`write(|w| ..)` method takes [`machthr::W`](W) writer structure
40impl crate::Writable for MACHTHRrs {
41    type Safety = crate::Unsafe;
42}
43///`reset()` method sets MACHTHR to value 0
44impl crate::Resettable for MACHTHRrs {}