#[doc = "Register `FIR0` writer"]
pub struct W(crate::W<FIR0_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<FIR0_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<FIR0_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<FIR0_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `FAE0` writer - Force Acknowledge Error 0"]
pub struct FAE0_W<'a> {
w: &'a mut W,
}
impl<'a> FAE0_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 `FAE1` writer - Force Acknowledge Error 1"]
pub struct FAE1_W<'a> {
w: &'a mut W,
}
impl<'a> FAE1_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 `FAE2` writer - Force Acknowledge Error 2"]
pub struct FAE2_W<'a> {
w: &'a mut W,
}
impl<'a> FAE2_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 `FAE3` writer - Force Acknowledge Error 3"]
pub struct FAE3_W<'a> {
w: &'a mut W,
}
impl<'a> FAE3_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 `FAE4` writer - Force Acknowledge Error 4"]
pub struct FAE4_W<'a> {
w: &'a mut W,
}
impl<'a> FAE4_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 `FAE5` writer - Force Acknowledge Error 5"]
pub struct FAE5_W<'a> {
w: &'a mut W,
}
impl<'a> FAE5_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 `FAE6` writer - Force Acknowledge Error 6"]
pub struct FAE6_W<'a> {
w: &'a mut W,
}
impl<'a> FAE6_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 `FAE7` writer - Force Acknowledge Error 7"]
pub struct FAE7_W<'a> {
w: &'a mut W,
}
impl<'a> FAE7_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 `FAE8` writer - Force Acknowledge Error 8"]
pub struct FAE8_W<'a> {
w: &'a mut W,
}
impl<'a> FAE8_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 `FAE9` writer - Force Acknowledge Error 9"]
pub struct FAE9_W<'a> {
w: &'a mut W,
}
impl<'a> FAE9_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 `FAE10` writer - Force Acknowledge Error 10"]
pub struct FAE10_W<'a> {
w: &'a mut W,
}
impl<'a> FAE10_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 `FAE11` writer - Force Acknowledge Error 11"]
pub struct FAE11_W<'a> {
w: &'a mut W,
}
impl<'a> FAE11_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 << 11)) | ((value as u32 & 0x01) << 11);
self.w
}
}
#[doc = "Field `FAE12` writer - Force Acknowledge Error 12"]
pub struct FAE12_W<'a> {
w: &'a mut W,
}
impl<'a> FAE12_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 << 12)) | ((value as u32 & 0x01) << 12);
self.w
}
}
#[doc = "Field `FAE13` writer - Force Acknowledge Error 13"]
pub struct FAE13_W<'a> {
w: &'a mut W,
}
impl<'a> FAE13_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 `FAE14` writer - Force Acknowledge Error 14"]
pub struct FAE14_W<'a> {
w: &'a mut W,
}
impl<'a> FAE14_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 `FAE15` writer - Force Acknowledge Error 15"]
pub struct FAE15_W<'a> {
w: &'a mut W,
}
impl<'a> FAE15_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 `FPE0` writer - Force PHY Error 0"]
pub struct FPE0_W<'a> {
w: &'a mut W,
}
impl<'a> FPE0_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 `FPE1` writer - Force PHY Error 1"]
pub struct FPE1_W<'a> {
w: &'a mut W,
}
impl<'a> FPE1_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 << 17)) | ((value as u32 & 0x01) << 17);
self.w
}
}
#[doc = "Field `FPE2` writer - Force PHY Error 2"]
pub struct FPE2_W<'a> {
w: &'a mut W,
}
impl<'a> FPE2_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 << 18)) | ((value as u32 & 0x01) << 18);
self.w
}
}
#[doc = "Field `FPE3` writer - Force PHY Error 3"]
pub struct FPE3_W<'a> {
w: &'a mut W,
}
impl<'a> FPE3_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 << 19)) | ((value as u32 & 0x01) << 19);
self.w
}
}
#[doc = "Field `FPE4` writer - Force PHY Error 4"]
pub struct FPE4_W<'a> {
w: &'a mut W,
}
impl<'a> FPE4_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 << 20)) | ((value as u32 & 0x01) << 20);
self.w
}
}
impl W {
#[doc = "Bit 0 - Force Acknowledge Error 0"]
#[inline(always)]
pub fn fae0(&mut self) -> FAE0_W {
FAE0_W { w: self }
}
#[doc = "Bit 1 - Force Acknowledge Error 1"]
#[inline(always)]
pub fn fae1(&mut self) -> FAE1_W {
FAE1_W { w: self }
}
#[doc = "Bit 2 - Force Acknowledge Error 2"]
#[inline(always)]
pub fn fae2(&mut self) -> FAE2_W {
FAE2_W { w: self }
}
#[doc = "Bit 3 - Force Acknowledge Error 3"]
#[inline(always)]
pub fn fae3(&mut self) -> FAE3_W {
FAE3_W { w: self }
}
#[doc = "Bit 4 - Force Acknowledge Error 4"]
#[inline(always)]
pub fn fae4(&mut self) -> FAE4_W {
FAE4_W { w: self }
}
#[doc = "Bit 5 - Force Acknowledge Error 5"]
#[inline(always)]
pub fn fae5(&mut self) -> FAE5_W {
FAE5_W { w: self }
}
#[doc = "Bit 6 - Force Acknowledge Error 6"]
#[inline(always)]
pub fn fae6(&mut self) -> FAE6_W {
FAE6_W { w: self }
}
#[doc = "Bit 7 - Force Acknowledge Error 7"]
#[inline(always)]
pub fn fae7(&mut self) -> FAE7_W {
FAE7_W { w: self }
}
#[doc = "Bit 8 - Force Acknowledge Error 8"]
#[inline(always)]
pub fn fae8(&mut self) -> FAE8_W {
FAE8_W { w: self }
}
#[doc = "Bit 9 - Force Acknowledge Error 9"]
#[inline(always)]
pub fn fae9(&mut self) -> FAE9_W {
FAE9_W { w: self }
}
#[doc = "Bit 10 - Force Acknowledge Error 10"]
#[inline(always)]
pub fn fae10(&mut self) -> FAE10_W {
FAE10_W { w: self }
}
#[doc = "Bit 11 - Force Acknowledge Error 11"]
#[inline(always)]
pub fn fae11(&mut self) -> FAE11_W {
FAE11_W { w: self }
}
#[doc = "Bit 12 - Force Acknowledge Error 12"]
#[inline(always)]
pub fn fae12(&mut self) -> FAE12_W {
FAE12_W { w: self }
}
#[doc = "Bit 13 - Force Acknowledge Error 13"]
#[inline(always)]
pub fn fae13(&mut self) -> FAE13_W {
FAE13_W { w: self }
}
#[doc = "Bit 14 - Force Acknowledge Error 14"]
#[inline(always)]
pub fn fae14(&mut self) -> FAE14_W {
FAE14_W { w: self }
}
#[doc = "Bit 15 - Force Acknowledge Error 15"]
#[inline(always)]
pub fn fae15(&mut self) -> FAE15_W {
FAE15_W { w: self }
}
#[doc = "Bit 16 - Force PHY Error 0"]
#[inline(always)]
pub fn fpe0(&mut self) -> FPE0_W {
FPE0_W { w: self }
}
#[doc = "Bit 17 - Force PHY Error 1"]
#[inline(always)]
pub fn fpe1(&mut self) -> FPE1_W {
FPE1_W { w: self }
}
#[doc = "Bit 18 - Force PHY Error 2"]
#[inline(always)]
pub fn fpe2(&mut self) -> FPE2_W {
FPE2_W { w: self }
}
#[doc = "Bit 19 - Force PHY Error 3"]
#[inline(always)]
pub fn fpe3(&mut self) -> FPE3_W {
FPE3_W { w: self }
}
#[doc = "Bit 20 - Force PHY Error 4"]
#[inline(always)]
pub fn fpe4(&mut self) -> FPE4_W {
FPE4_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 = "DSI Host Force Interrupt Register 0\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [fir0](index.html) module"]
pub struct FIR0_SPEC;
impl crate::RegisterSpec for FIR0_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [fir0::W](W) writer structure"]
impl crate::Writable for FIR0_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets FIR0 to value 0"]
impl crate::Resettable for FIR0_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}