efm32gg11b/eth/
txpausequant3.rs1#[doc = "Reader of register TXPAUSEQUANT3"]
2pub type R = crate::R<u32, super::TXPAUSEQUANT3>;
3#[doc = "Writer for register TXPAUSEQUANT3"]
4pub type W = crate::W<u32, super::TXPAUSEQUANT3>;
5#[doc = "Register TXPAUSEQUANT3 `reset()`'s with value 0xffff_ffff"]
6impl crate::ResetValue for super::TXPAUSEQUANT3 {
7 type Type = u32;
8 #[inline(always)]
9 fn reset_value() -> Self::Type { 0xffff_ffff }
10}
11#[doc = "Reader of field `QUANTP6`"]
12pub type QUANTP6_R = crate::R<u16, u16>;
13#[doc = "Write proxy for field `QUANTP6`"]
14pub struct QUANTP6_W<'a> {
15 w: &'a mut W,
16}
17impl<'a> QUANTP6_W<'a> {
18 #[doc = r"Writes raw bits to the field"]
19 #[inline(always)]
20 pub unsafe fn bits(self, value: u16) -> &'a mut W {
21 self.w.bits = (self.w.bits & !0xffff) | ((value as u32) & 0xffff);
22 self.w
23 }
24}
25#[doc = "Reader of field `QUANTP7`"]
26pub type QUANTP7_R = crate::R<u16, u16>;
27#[doc = "Write proxy for field `QUANTP7`"]
28pub struct QUANTP7_W<'a> {
29 w: &'a mut W,
30}
31impl<'a> QUANTP7_W<'a> {
32 #[doc = r"Writes raw bits to the field"]
33 #[inline(always)]
34 pub unsafe fn bits(self, value: u16) -> &'a mut W {
35 self.w.bits = (self.w.bits & !(0xffff << 16)) | (((value as u32) & 0xffff) << 16);
36 self.w
37 }
38}
39impl R {
40 #[doc = "Bits 0:15 - Transmit pause quantum - written with the pause quantum value for pause frame transmission of priority 6."]
41 #[inline(always)]
42 pub fn quantp6(&self) -> QUANTP6_R { QUANTP6_R::new((self.bits & 0xffff) as u16) }
43 #[doc = "Bits 16:31 - Transmit pause quantum - written with the pause quantum value for pause frame transmission of priority 7."]
44 #[inline(always)]
45 pub fn quantp7(&self) -> QUANTP7_R { QUANTP7_R::new(((self.bits >> 16) & 0xffff) as u16) }
46}
47impl W {
48 #[doc = "Bits 0:15 - Transmit pause quantum - written with the pause quantum value for pause frame transmission of priority 6."]
49 #[inline(always)]
50 pub fn quantp6(&mut self) -> QUANTP6_W { QUANTP6_W { w: self } }
51 #[doc = "Bits 16:31 - Transmit pause quantum - written with the pause quantum value for pause frame transmission of priority 7."]
52 #[inline(always)]
53 pub fn quantp7(&mut self) -> QUANTP7_W { QUANTP7_W { w: self } }
54}