#[doc = "Register `VID_PKT_STATUS` reader"]
pub type R = crate::R<VID_PKT_STATUS_SPEC>;
#[doc = "Field `DPI_CMD_W_EMPTY` reader - NA"]
pub type DPI_CMD_W_EMPTY_R = crate::BitReader;
#[doc = "Field `DPI_CMD_W_FULL` reader - NA"]
pub type DPI_CMD_W_FULL_R = crate::BitReader;
#[doc = "Field `DPI_PLD_W_EMPTY` reader - NA"]
pub type DPI_PLD_W_EMPTY_R = crate::BitReader;
#[doc = "Field `DPI_PLD_W_FULL` reader - NA"]
pub type DPI_PLD_W_FULL_R = crate::BitReader;
#[doc = "Field `DPI_BUFF_PLD_EMPTY` reader - NA"]
pub type DPI_BUFF_PLD_EMPTY_R = crate::BitReader;
#[doc = "Field `DPI_BUFF_PLD_FULL` reader - NA"]
pub type DPI_BUFF_PLD_FULL_R = crate::BitReader;
impl R {
#[doc = "Bit 0 - NA"]
#[inline(always)]
pub fn dpi_cmd_w_empty(&self) -> DPI_CMD_W_EMPTY_R {
DPI_CMD_W_EMPTY_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - NA"]
#[inline(always)]
pub fn dpi_cmd_w_full(&self) -> DPI_CMD_W_FULL_R {
DPI_CMD_W_FULL_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - NA"]
#[inline(always)]
pub fn dpi_pld_w_empty(&self) -> DPI_PLD_W_EMPTY_R {
DPI_PLD_W_EMPTY_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - NA"]
#[inline(always)]
pub fn dpi_pld_w_full(&self) -> DPI_PLD_W_FULL_R {
DPI_PLD_W_FULL_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 16 - NA"]
#[inline(always)]
pub fn dpi_buff_pld_empty(&self) -> DPI_BUFF_PLD_EMPTY_R {
DPI_BUFF_PLD_EMPTY_R::new(((self.bits >> 16) & 1) != 0)
}
#[doc = "Bit 17 - NA"]
#[inline(always)]
pub fn dpi_buff_pld_full(&self) -> DPI_BUFF_PLD_FULL_R {
DPI_BUFF_PLD_FULL_R::new(((self.bits >> 17) & 1) != 0)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("VID_PKT_STATUS")
.field(
"dpi_cmd_w_empty",
&format_args!("{}", self.dpi_cmd_w_empty().bit()),
)
.field(
"dpi_cmd_w_full",
&format_args!("{}", self.dpi_cmd_w_full().bit()),
)
.field(
"dpi_pld_w_empty",
&format_args!("{}", self.dpi_pld_w_empty().bit()),
)
.field(
"dpi_pld_w_full",
&format_args!("{}", self.dpi_pld_w_full().bit()),
)
.field(
"dpi_buff_pld_empty",
&format_args!("{}", self.dpi_buff_pld_empty().bit()),
)
.field(
"dpi_buff_pld_full",
&format_args!("{}", self.dpi_buff_pld_full().bit()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<VID_PKT_STATUS_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(&self.read(), f)
}
}
#[doc = "NA\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`vid_pkt_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct VID_PKT_STATUS_SPEC;
impl crate::RegisterSpec for VID_PKT_STATUS_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`vid_pkt_status::R`](R) reader structure"]
impl crate::Readable for VID_PKT_STATUS_SPEC {}
#[doc = "`reset()` method sets VID_PKT_STATUS to value 0x0001_0005"]
impl crate::Resettable for VID_PKT_STATUS_SPEC {
const RESET_VALUE: u32 = 0x0001_0005;
}