#[doc = "Writer for register TASKS_EP0RCVOUT"]
pub type W = crate::pac::generic::W<u32, super::TASKS_EP0RCVOUT>;
#[doc = "Register TASKS_EP0RCVOUT `reset()`'s with value 0"]
impl crate::pac::generic::ResetValue for super::TASKS_EP0RCVOUT {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Write proxy for field `TASKS_EP0RCVOUT`"]
pub struct TASKS_EP0RCVOUT_W<'a> {
w: &'a mut W,
}
impl<'a> TASKS_EP0RCVOUT_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
}
}
impl W {
#[doc = "Bit 0"]
#[inline(always)]
pub fn tasks_ep0rcvout(&mut self) -> TASKS_EP0RCVOUT_W {
TASKS_EP0RCVOUT_W { w: self }
}
}