mimxrt595s 0.5.0

Peripheral access crate (PAC) for NXP i.MX RT595S microcontrollers
Documentation
#[doc = "Register `DIRNOT[%s]` writer"]
pub struct W(crate::W<DIRNOT_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<DIRNOT_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<DIRNOT_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<DIRNOT_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Toggle direction bits.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(u32)]
pub enum DIRNOTP_AW {
    #[doc = "0: No operation"]
    DIRNOT_0 = 0,
    #[doc = "1: Toggles direction bit"]
    DIRNOT_1 = 1,
}
impl From<DIRNOTP_AW> for u32 {
    #[inline(always)]
    fn from(variant: DIRNOTP_AW) -> Self {
        variant as _
    }
}
#[doc = "Field `DIRNOTP` writer - Toggle direction bits."]
pub type DIRNOTP_W<'a, const O: u8> =
    crate::FieldWriter<'a, u32, DIRNOT_SPEC, u32, DIRNOTP_AW, 29, O>;
impl<'a, const O: u8> DIRNOTP_W<'a, O> {
    #[doc = "No operation"]
    #[inline(always)]
    pub fn dirnot_0(self) -> &'a mut W {
        self.variant(DIRNOTP_AW::DIRNOT_0)
    }
    #[doc = "Toggles direction bit"]
    #[inline(always)]
    pub fn dirnot_1(self) -> &'a mut W {
        self.variant(DIRNOTP_AW::DIRNOT_1)
    }
}
impl W {
    #[doc = "Bits 0:28 - Toggle direction bits."]
    #[inline(always)]
    #[must_use]
    pub fn dirnotp(&mut self) -> DIRNOTP_W<0> {
        DIRNOTP_W::new(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 = "Port direction toggle\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 [dirnot](index.html) module"]
pub struct DIRNOT_SPEC;
impl crate::RegisterSpec for DIRNOT_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [dirnot::W](W) writer structure"]
impl crate::Writable for DIRNOT_SPEC {
    type Writer = W;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets DIRNOT[%s]
to value 0"]
impl crate::Resettable for DIRNOT_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}