#[doc = r" Value read from the register"]
pub struct R {
bits: u32,
}
impl super::MACDR {
#[doc = r" Reads the contents of the register"]
#[inline]
pub fn read(&self) -> R {
R {
bits: self.register.get(),
}
}
}
#[doc = r" Value of the field"]
pub struct TFCSTSR {
bits: u8,
}
impl TFCSTSR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct TPESTSR {
bits: bool,
}
impl TPESTSR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r" Value of the field"]
pub struct RFCFCSTSR {
bits: u8,
}
impl RFCFCSTSR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct RPESTSR {
bits: bool,
}
impl RPESTSR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bits 17:18 - MAC Transmit Packet Controller Status"]
#[inline]
pub fn tfcsts(&self) -> TFCSTSR {
let bits = {
const MASK: u8 = 3;
const OFFSET: u8 = 17;
((self.bits >> OFFSET) & MASK as u32) as u8
};
TFCSTSR { bits }
}
#[doc = "Bit 16 - MAC MII Transmit Protocol Engine Status"]
#[inline]
pub fn tpests(&self) -> TPESTSR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 16;
((self.bits >> OFFSET) & MASK as u32) != 0
};
TPESTSR { bits }
}
#[doc = "Bits 1:2 - MAC Receive Packet Controller FIFO Status"]
#[inline]
pub fn rfcfcsts(&self) -> RFCFCSTSR {
let bits = {
const MASK: u8 = 3;
const OFFSET: u8 = 1;
((self.bits >> OFFSET) & MASK as u32) as u8
};
RFCFCSTSR { bits }
}
#[doc = "Bit 0 - MAC MII Receive Protocol Engine Status"]
#[inline]
pub fn rpests(&self) -> RPESTSR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 0;
((self.bits >> OFFSET) & MASK as u32) != 0
};
RPESTSR { bits }
}
}