#[doc = "Register `IRQ_END` reader"] pub struct R(crate::R); impl core::ops::Deref for R { type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl From> for R { #[inline(always)] fn from(reader: crate::R) -> Self { R(reader) } } #[doc = "Field `FIFO_DEPTH_TRIG` reader - Indicates the FIFO entry count is less than or equal to the trigger level and the interrupt is enabled"] pub struct FIFO_DEPTH_TRIG_R(crate::FieldReader); impl FIFO_DEPTH_TRIG_R { #[inline(always)] pub(crate) fn new(bits: bool) -> Self { FIFO_DEPTH_TRIG_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for FIFO_DEPTH_TRIG_R { type Target = crate::FieldReader; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `TRIG_ERROR` reader - Indicates a manual or external trigger occurred when the DAC was BUSY doing a conversion and the interrupt is enabled"] pub struct TRIG_ERROR_R(crate::FieldReader); impl TRIG_ERROR_R { #[inline(always)] pub(crate) fn new(bits: bool) -> Self { TRIG_ERROR_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for TRIG_ERROR_R { type Target = crate::FieldReader; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `DAC_DONE` reader - Indicates that a DAC conversion is done and the interrupt is enabled"] pub struct DAC_DONE_R(crate::FieldReader); impl DAC_DONE_R { #[inline(always)] pub(crate) fn new(bits: bool) -> Self { DAC_DONE_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for DAC_DONE_R { type Target = crate::FieldReader; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `FIFO_UFLOW` reader - Indicates a FIFO underflow occurred and the interrupt is enabled"] pub struct FIFO_UFLOW_R(crate::FieldReader); impl FIFO_UFLOW_R { #[inline(always)] pub(crate) fn new(bits: bool) -> Self { FIFO_UFLOW_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for FIFO_UFLOW_R { type Target = crate::FieldReader; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `FIFO_OFLOW` reader - Indicates a FIFO overflow occurred and the interrupt is enabled"] pub struct FIFO_OFLOW_R(crate::FieldReader); impl FIFO_OFLOW_R { #[inline(always)] pub(crate) fn new(bits: bool) -> Self { FIFO_OFLOW_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for FIFO_OFLOW_R { type Target = crate::FieldReader; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `FIFO_FULL` reader - Indicates the FIFO is full and the interrupt is enabled"] pub struct FIFO_FULL_R(crate::FieldReader); impl FIFO_FULL_R { #[inline(always)] pub(crate) fn new(bits: bool) -> Self { FIFO_FULL_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for FIFO_FULL_R { type Target = crate::FieldReader; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `FIFO_EMPTY` reader - Indicates the FIFO is empty and the interrupt is enabled"] pub struct FIFO_EMPTY_R(crate::FieldReader); impl FIFO_EMPTY_R { #[inline(always)] pub(crate) fn new(bits: bool) -> Self { FIFO_EMPTY_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for FIFO_EMPTY_R { type Target = crate::FieldReader; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl R { #[doc = "Bit 6 - Indicates the FIFO entry count is less than or equal to the trigger level and the interrupt is enabled"] #[inline(always)] pub fn fifo_depth_trig(&self) -> FIFO_DEPTH_TRIG_R { FIFO_DEPTH_TRIG_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 5 - Indicates a manual or external trigger occurred when the DAC was BUSY doing a conversion and the interrupt is enabled"] #[inline(always)] pub fn trig_error(&self) -> TRIG_ERROR_R { TRIG_ERROR_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 4 - Indicates that a DAC conversion is done and the interrupt is enabled"] #[inline(always)] pub fn dac_done(&self) -> DAC_DONE_R { DAC_DONE_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 3 - Indicates a FIFO underflow occurred and the interrupt is enabled"] #[inline(always)] pub fn fifo_uflow(&self) -> FIFO_UFLOW_R { FIFO_UFLOW_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 2 - Indicates a FIFO overflow occurred and the interrupt is enabled"] #[inline(always)] pub fn fifo_oflow(&self) -> FIFO_OFLOW_R { FIFO_OFLOW_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 1 - Indicates the FIFO is full and the interrupt is enabled"] #[inline(always)] pub fn fifo_full(&self) -> FIFO_FULL_R { FIFO_FULL_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 0 - Indicates the FIFO is empty and the interrupt is enabled"] #[inline(always)] pub fn fifo_empty(&self) -> FIFO_EMPTY_R { FIFO_EMPTY_R::new((self.bits & 0x01) != 0) } } #[doc = "Enabled Interrupt Status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [irq_end](index.html) module"] pub struct IRQ_END_SPEC; impl crate::RegisterSpec for IRQ_END_SPEC { type Ux = u32; } #[doc = "`read()` method returns [irq_end::R](R) reader structure"] impl crate::Readable for IRQ_END_SPEC { type Reader = R; } #[doc = "`reset()` method sets IRQ_END to value 0"] impl crate::Resettable for IRQ_END_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 } }