#[doc = "Register `OUT_MSK` writer"]
pub type W = crate::W<OUT_MSK_SPEC>;
#[doc = "Field `OUT_VALUE` writer - This register is used to configure updated output value of 8-channel dedicated GPIO."]
pub type OUT_VALUE_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
#[doc = "Field `OUT_MSK` writer - This register is used to configure channels which would be updated. 1: corresponding channel's output would be updated."]
pub type OUT_MSK_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<OUT_MSK_SPEC> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "(not readable)")
    }
}
impl W {
    #[doc = "Bits 0:7 - This register is used to configure updated output value of 8-channel dedicated GPIO."]
    #[inline(always)]
    pub fn out_value(&mut self) -> OUT_VALUE_W<'_, OUT_MSK_SPEC> {
        OUT_VALUE_W::new(self, 0)
    }
    #[doc = "Bits 8:15 - This register is used to configure channels which would be updated. 1: corresponding channel's output would be updated."]
    #[inline(always)]
    pub fn out_msk(&mut self) -> OUT_MSK_W<'_, OUT_MSK_SPEC> {
        OUT_MSK_W::new(self, 8)
    }
}
#[doc = "Dedicated GPIO mask output register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`out_msk::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct OUT_MSK_SPEC;
impl crate::RegisterSpec for OUT_MSK_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`out_msk::W`](W) writer structure"]
impl crate::Writable for OUT_MSK_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets OUT_MSK to value 0"]
impl crate::Resettable for OUT_MSK_SPEC {}
