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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
#[doc = r"Value read from the register"] pub struct R { bits: u32, } impl super::MACHWF2R { #[doc = r"Reads the contents of the register"] #[inline(always)] pub fn read(&self) -> R { R { bits: self.register.get(), } } } #[doc = r"Value of the field"] pub struct RXQCNTR { bits: u8, } impl RXQCNTR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct TXQCNTR { bits: u8, } impl TXQCNTR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct RXCHCNTR { bits: u8, } impl RXCHCNTR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct TXCHCNTR { bits: u8, } impl TXCHCNTR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct PPSOUTNUMR { bits: u8, } impl PPSOUTNUMR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } #[doc = r"Value of the field"] pub struct AUXSNAPNUMR { bits: u8, } impl AUXSNAPNUMR { #[doc = r"Value of the field as raw bits"] #[inline(always)] pub fn bits(&self) -> u8 { self.bits } } impl R { #[doc = r"Value of the register as raw bits"] #[inline(always)] pub fn bits(&self) -> u32 { self.bits } #[doc = "Bits 0:3 - Number of MTL Receive Queues"] #[inline(always)] pub fn rxqcnt(&self) -> RXQCNTR { let bits = ((self.bits >> 0) & 0x0f) as u8; RXQCNTR { bits } } #[doc = "Bits 6:9 - Number of MTL Transmit Queues"] #[inline(always)] pub fn txqcnt(&self) -> TXQCNTR { let bits = ((self.bits >> 6) & 0x0f) as u8; TXQCNTR { bits } } #[doc = "Bits 12:15 - Number of DMA Receive Channels"] #[inline(always)] pub fn rxchcnt(&self) -> RXCHCNTR { let bits = ((self.bits >> 12) & 0x0f) as u8; RXCHCNTR { bits } } #[doc = "Bits 18:21 - Number of DMA Transmit Channels"] #[inline(always)] pub fn txchcnt(&self) -> TXCHCNTR { let bits = ((self.bits >> 18) & 0x0f) as u8; TXCHCNTR { bits } } #[doc = "Bits 24:26 - Number of PPS Outputs"] #[inline(always)] pub fn ppsoutnum(&self) -> PPSOUTNUMR { let bits = ((self.bits >> 24) & 0x07) as u8; PPSOUTNUMR { bits } } #[doc = "Bits 28:30 - Number of Auxiliary Snapshot Inputs"] #[inline(always)] pub fn auxsnapnum(&self) -> AUXSNAPNUMR { let bits = ((self.bits >> 28) & 0x07) as u8; AUXSNAPNUMR { bits } } }