#[doc = "Register `STATUS` reader"]
pub struct R(crate::R<STATUS_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<STATUS_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<STATUS_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<STATUS_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `STATUS` writer"]
pub struct W(crate::W<STATUS_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<STATUS_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<STATUS_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<STATUS_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `TI` reader - Transmit Interrupt"]
pub struct TI_R(crate::FieldReader<bool, bool>);
impl TI_R {
pub(crate) fn new(bits: bool) -> Self {
TI_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for TI_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `TI` writer - Transmit Interrupt"]
pub struct TI_W<'a> {
w: &'a mut W,
}
impl<'a> TI_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
self.w
}
}
#[doc = "Field `TPS` reader - Transmit Process Stopped"]
pub struct TPS_R(crate::FieldReader<bool, bool>);
impl TPS_R {
pub(crate) fn new(bits: bool) -> Self {
TPS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for TPS_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `TPS` writer - Transmit Process Stopped"]
pub struct TPS_W<'a> {
w: &'a mut W,
}
impl<'a> TPS_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
self.w
}
}
#[doc = "Field `TU` reader - Transmit Buffer Unavailable"]
pub struct TU_R(crate::FieldReader<bool, bool>);
impl TU_R {
pub(crate) fn new(bits: bool) -> Self {
TU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for TU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `TU` writer - Transmit Buffer Unavailable"]
pub struct TU_W<'a> {
w: &'a mut W,
}
impl<'a> TU_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
self.w
}
}
#[doc = "Field `TJT` reader - Transmit Jabber Timeout"]
pub struct TJT_R(crate::FieldReader<bool, bool>);
impl TJT_R {
pub(crate) fn new(bits: bool) -> Self {
TJT_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for TJT_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `TJT` writer - Transmit Jabber Timeout"]
pub struct TJT_W<'a> {
w: &'a mut W,
}
impl<'a> TJT_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
self.w
}
}
#[doc = "Field `OVF` reader - Receive Overflow"]
pub struct OVF_R(crate::FieldReader<bool, bool>);
impl OVF_R {
pub(crate) fn new(bits: bool) -> Self {
OVF_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for OVF_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `OVF` writer - Receive Overflow"]
pub struct OVF_W<'a> {
w: &'a mut W,
}
impl<'a> OVF_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
self.w
}
}
#[doc = "Field `UNF` reader - Transmit Underflow"]
pub struct UNF_R(crate::FieldReader<bool, bool>);
impl UNF_R {
pub(crate) fn new(bits: bool) -> Self {
UNF_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for UNF_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `UNF` writer - Transmit Underflow"]
pub struct UNF_W<'a> {
w: &'a mut W,
}
impl<'a> UNF_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
self.w
}
}
#[doc = "Field `RI` reader - Receive Interrupt"]
pub struct RI_R(crate::FieldReader<bool, bool>);
impl RI_R {
pub(crate) fn new(bits: bool) -> Self {
RI_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RI_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RI` writer - Receive Interrupt"]
pub struct RI_W<'a> {
w: &'a mut W,
}
impl<'a> RI_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
self.w
}
}
#[doc = "Field `RU` reader - Receive Buffer Unavailable"]
pub struct RU_R(crate::FieldReader<bool, bool>);
impl RU_R {
pub(crate) fn new(bits: bool) -> Self {
RU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RU` writer - Receive Buffer Unavailable"]
pub struct RU_W<'a> {
w: &'a mut W,
}
impl<'a> RU_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
self.w
}
}
#[doc = "Field `RPS` reader - Receive Process Stopped"]
pub struct RPS_R(crate::FieldReader<bool, bool>);
impl RPS_R {
pub(crate) fn new(bits: bool) -> Self {
RPS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RPS_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RPS` writer - Receive Process Stopped"]
pub struct RPS_W<'a> {
w: &'a mut W,
}
impl<'a> RPS_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
self.w
}
}
#[doc = "Field `RWT` reader - Receive Watchdog Timeout"]
pub struct RWT_R(crate::FieldReader<bool, bool>);
impl RWT_R {
pub(crate) fn new(bits: bool) -> Self {
RWT_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RWT_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `RWT` writer - Receive Watchdog Timeout"]
pub struct RWT_W<'a> {
w: &'a mut W,
}
impl<'a> RWT_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
self.w
}
}
#[doc = "Field `ETI` reader - Early Transmit Interrupt"]
pub struct ETI_R(crate::FieldReader<bool, bool>);
impl ETI_R {
pub(crate) fn new(bits: bool) -> Self {
ETI_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for ETI_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `ETI` writer - Early Transmit Interrupt"]
pub struct ETI_W<'a> {
w: &'a mut W,
}
impl<'a> ETI_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
self.w
}
}
#[doc = "Field `FBI` reader - Fatal Bus Error Interrupt"]
pub struct FBI_R(crate::FieldReader<bool, bool>);
impl FBI_R {
pub(crate) fn new(bits: bool) -> Self {
FBI_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for FBI_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `FBI` writer - Fatal Bus Error Interrupt"]
pub struct FBI_W<'a> {
w: &'a mut W,
}
impl<'a> FBI_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 13)) | ((value as u32 & 0x01) << 13);
self.w
}
}
#[doc = "Field `ERI` reader - Early Receive Interrupt"]
pub struct ERI_R(crate::FieldReader<bool, bool>);
impl ERI_R {
pub(crate) fn new(bits: bool) -> Self {
ERI_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for ERI_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `ERI` writer - Early Receive Interrupt"]
pub struct ERI_W<'a> {
w: &'a mut W,
}
impl<'a> ERI_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
self.w
}
}
#[doc = "Field `AIS` reader - Abnormal Interrupt Summary"]
pub struct AIS_R(crate::FieldReader<bool, bool>);
impl AIS_R {
pub(crate) fn new(bits: bool) -> Self {
AIS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for AIS_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `AIS` writer - Abnormal Interrupt Summary"]
pub struct AIS_W<'a> {
w: &'a mut W,
}
impl<'a> AIS_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
self.w
}
}
#[doc = "Field `NIS` reader - Normal Interrupt Summary"]
pub struct NIS_R(crate::FieldReader<bool, bool>);
impl NIS_R {
pub(crate) fn new(bits: bool) -> Self {
NIS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for NIS_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `NIS` writer - Normal Interrupt Summary"]
pub struct NIS_W<'a> {
w: &'a mut W,
}
impl<'a> NIS_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16);
self.w
}
}
#[doc = "Field `RS` reader - Received Process State"]
pub struct RS_R(crate::FieldReader<u8, u8>);
impl RS_R {
pub(crate) fn new(bits: u8) -> Self {
RS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for RS_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `TS` reader - Transmit Process State"]
pub struct TS_R(crate::FieldReader<u8, u8>);
impl TS_R {
pub(crate) fn new(bits: u8) -> Self {
TS_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for TS_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `EB` reader - Error Bits"]
pub struct EB_R(crate::FieldReader<u8, u8>);
impl EB_R {
pub(crate) fn new(bits: u8) -> Self {
EB_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for EB_R {
type Target = crate::FieldReader<u8, u8>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `EMI` reader - ETH MMC Interrupt"]
pub struct EMI_R(crate::FieldReader<bool, bool>);
impl EMI_R {
pub(crate) fn new(bits: bool) -> Self {
EMI_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for EMI_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `EPI` reader - ETH PMT Interrupt"]
pub struct EPI_R(crate::FieldReader<bool, bool>);
impl EPI_R {
pub(crate) fn new(bits: bool) -> Self {
EPI_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for EPI_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `TTI` reader - Timestamp Trigger Interrupt"]
pub struct TTI_R(crate::FieldReader<bool, bool>);
impl TTI_R {
pub(crate) fn new(bits: bool) -> Self {
TTI_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for TTI_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl R {
#[doc = "Bit 0 - Transmit Interrupt"]
#[inline(always)]
pub fn ti(&self) -> TI_R {
TI_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Transmit Process Stopped"]
#[inline(always)]
pub fn tps(&self) -> TPS_R {
TPS_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Transmit Buffer Unavailable"]
#[inline(always)]
pub fn tu(&self) -> TU_R {
TU_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Transmit Jabber Timeout"]
#[inline(always)]
pub fn tjt(&self) -> TJT_R {
TJT_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Receive Overflow"]
#[inline(always)]
pub fn ovf(&self) -> OVF_R {
OVF_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Transmit Underflow"]
#[inline(always)]
pub fn unf(&self) -> UNF_R {
UNF_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - Receive Interrupt"]
#[inline(always)]
pub fn ri(&self) -> RI_R {
RI_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Receive Buffer Unavailable"]
#[inline(always)]
pub fn ru(&self) -> RU_R {
RU_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Receive Process Stopped"]
#[inline(always)]
pub fn rps(&self) -> RPS_R {
RPS_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Receive Watchdog Timeout"]
#[inline(always)]
pub fn rwt(&self) -> RWT_R {
RWT_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - Early Transmit Interrupt"]
#[inline(always)]
pub fn eti(&self) -> ETI_R {
ETI_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 13 - Fatal Bus Error Interrupt"]
#[inline(always)]
pub fn fbi(&self) -> FBI_R {
FBI_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - Early Receive Interrupt"]
#[inline(always)]
pub fn eri(&self) -> ERI_R {
ERI_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - Abnormal Interrupt Summary"]
#[inline(always)]
pub fn ais(&self) -> AIS_R {
AIS_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 16 - Normal Interrupt Summary"]
#[inline(always)]
pub fn nis(&self) -> NIS_R {
NIS_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bits 17:19 - Received Process State"]
#[inline(always)]
pub fn rs(&self) -> RS_R {
RS_R::new(((self.bits >> 17) & 0x07) as u8)
}
#[doc = "Bits 20:22 - Transmit Process State"]
#[inline(always)]
pub fn ts(&self) -> TS_R {
TS_R::new(((self.bits >> 20) & 0x07) as u8)
}
#[doc = "Bits 23:25 - Error Bits"]
#[inline(always)]
pub fn eb(&self) -> EB_R {
EB_R::new(((self.bits >> 23) & 0x07) as u8)
}
#[doc = "Bit 27 - ETH MMC Interrupt"]
#[inline(always)]
pub fn emi(&self) -> EMI_R {
EMI_R::new(((self.bits >> 27) & 0x01) != 0)
}
#[doc = "Bit 28 - ETH PMT Interrupt"]
#[inline(always)]
pub fn epi(&self) -> EPI_R {
EPI_R::new(((self.bits >> 28) & 0x01) != 0)
}
#[doc = "Bit 29 - Timestamp Trigger Interrupt"]
#[inline(always)]
pub fn tti(&self) -> TTI_R {
TTI_R::new(((self.bits >> 29) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - Transmit Interrupt"]
#[inline(always)]
pub fn ti(&mut self) -> TI_W {
TI_W { w: self }
}
#[doc = "Bit 1 - Transmit Process Stopped"]
#[inline(always)]
pub fn tps(&mut self) -> TPS_W {
TPS_W { w: self }
}
#[doc = "Bit 2 - Transmit Buffer Unavailable"]
#[inline(always)]
pub fn tu(&mut self) -> TU_W {
TU_W { w: self }
}
#[doc = "Bit 3 - Transmit Jabber Timeout"]
#[inline(always)]
pub fn tjt(&mut self) -> TJT_W {
TJT_W { w: self }
}
#[doc = "Bit 4 - Receive Overflow"]
#[inline(always)]
pub fn ovf(&mut self) -> OVF_W {
OVF_W { w: self }
}
#[doc = "Bit 5 - Transmit Underflow"]
#[inline(always)]
pub fn unf(&mut self) -> UNF_W {
UNF_W { w: self }
}
#[doc = "Bit 6 - Receive Interrupt"]
#[inline(always)]
pub fn ri(&mut self) -> RI_W {
RI_W { w: self }
}
#[doc = "Bit 7 - Receive Buffer Unavailable"]
#[inline(always)]
pub fn ru(&mut self) -> RU_W {
RU_W { w: self }
}
#[doc = "Bit 8 - Receive Process Stopped"]
#[inline(always)]
pub fn rps(&mut self) -> RPS_W {
RPS_W { w: self }
}
#[doc = "Bit 9 - Receive Watchdog Timeout"]
#[inline(always)]
pub fn rwt(&mut self) -> RWT_W {
RWT_W { w: self }
}
#[doc = "Bit 10 - Early Transmit Interrupt"]
#[inline(always)]
pub fn eti(&mut self) -> ETI_W {
ETI_W { w: self }
}
#[doc = "Bit 13 - Fatal Bus Error Interrupt"]
#[inline(always)]
pub fn fbi(&mut self) -> FBI_W {
FBI_W { w: self }
}
#[doc = "Bit 14 - Early Receive Interrupt"]
#[inline(always)]
pub fn eri(&mut self) -> ERI_W {
ERI_W { w: self }
}
#[doc = "Bit 15 - Abnormal Interrupt Summary"]
#[inline(always)]
pub fn ais(&mut self) -> AIS_W {
AIS_W { w: self }
}
#[doc = "Bit 16 - Normal Interrupt Summary"]
#[inline(always)]
pub fn nis(&mut self) -> NIS_W {
NIS_W { w: self }
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "Status Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [status](index.html) module"]
pub struct STATUS_SPEC;
impl crate::RegisterSpec for STATUS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [status::R](R) reader structure"]
impl crate::Readable for STATUS_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [status::W](W) writer structure"]
impl crate::Writable for STATUS_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets STATUS to value 0"]
impl crate::Resettable for STATUS_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}