#[doc = r" Value to write to the register"] pub struct W { bits: u32, } impl super::OSSUPD { #[doc = r" Writes to the register"] #[inline] pub fn write(&self, f: F) where F: FnOnce(&mut W) -> &mut W, { let bits = self.register.get(); let mut w = W { bits: bits }; f(&mut w); self.register.set(w.bits); } } #[doc = r" Proxy"] pub struct _OSSUPH0W<'a> { w: &'a mut W, } impl<'a> _OSSUPH0W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 0; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPH1W<'a> { w: &'a mut W, } impl<'a> _OSSUPH1W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 1; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPH2W<'a> { w: &'a mut W, } impl<'a> _OSSUPH2W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 2; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPH3W<'a> { w: &'a mut W, } impl<'a> _OSSUPH3W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 3; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPH4W<'a> { w: &'a mut W, } impl<'a> _OSSUPH4W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 4; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPH5W<'a> { w: &'a mut W, } impl<'a> _OSSUPH5W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 5; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPH6W<'a> { w: &'a mut W, } impl<'a> _OSSUPH6W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 6; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPH7W<'a> { w: &'a mut W, } impl<'a> _OSSUPH7W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 7; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPL0W<'a> { w: &'a mut W, } impl<'a> _OSSUPL0W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 16; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPL1W<'a> { w: &'a mut W, } impl<'a> _OSSUPL1W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 17; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPL2W<'a> { w: &'a mut W, } impl<'a> _OSSUPL2W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 18; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPL3W<'a> { w: &'a mut W, } impl<'a> _OSSUPL3W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 19; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPL4W<'a> { w: &'a mut W, } impl<'a> _OSSUPL4W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 20; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPL5W<'a> { w: &'a mut W, } impl<'a> _OSSUPL5W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 21; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPL6W<'a> { w: &'a mut W, } impl<'a> _OSSUPL6W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 22; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _OSSUPL7W<'a> { w: &'a mut W, } impl<'a> _OSSUPL7W<'a> { #[doc = r" Sets the field bit"] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r" Clears the field bit"] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r" Writes raw bits to the field"] #[inline] pub fn bit(self, value: bool) -> &'a mut W { const MASK: bool = true; const OFFSET: u8 = 23; self.w.bits &= !((MASK as u32) << OFFSET); self.w.bits |= ((value & MASK) as u32) << OFFSET; self.w } } impl W { #[doc = "Bit 0 - Output Selection Set for PWMH output of the channel 0"] #[inline] pub fn ossuph0(&mut self) -> _OSSUPH0W { _OSSUPH0W { w: self } } #[doc = "Bit 1 - Output Selection Set for PWMH output of the channel 1"] #[inline] pub fn ossuph1(&mut self) -> _OSSUPH1W { _OSSUPH1W { w: self } } #[doc = "Bit 2 - Output Selection Set for PWMH output of the channel 2"] #[inline] pub fn ossuph2(&mut self) -> _OSSUPH2W { _OSSUPH2W { w: self } } #[doc = "Bit 3 - Output Selection Set for PWMH output of the channel 3"] #[inline] pub fn ossuph3(&mut self) -> _OSSUPH3W { _OSSUPH3W { w: self } } #[doc = "Bit 4 - Output Selection Set for PWMH output of the channel 4"] #[inline] pub fn ossuph4(&mut self) -> _OSSUPH4W { _OSSUPH4W { w: self } } #[doc = "Bit 5 - Output Selection Set for PWMH output of the channel 5"] #[inline] pub fn ossuph5(&mut self) -> _OSSUPH5W { _OSSUPH5W { w: self } } #[doc = "Bit 6 - Output Selection Set for PWMH output of the channel 6"] #[inline] pub fn ossuph6(&mut self) -> _OSSUPH6W { _OSSUPH6W { w: self } } #[doc = "Bit 7 - Output Selection Set for PWMH output of the channel 7"] #[inline] pub fn ossuph7(&mut self) -> _OSSUPH7W { _OSSUPH7W { w: self } } #[doc = "Bit 16 - Output Selection Set for PWML output of the channel 0"] #[inline] pub fn ossupl0(&mut self) -> _OSSUPL0W { _OSSUPL0W { w: self } } #[doc = "Bit 17 - Output Selection Set for PWML output of the channel 1"] #[inline] pub fn ossupl1(&mut self) -> _OSSUPL1W { _OSSUPL1W { w: self } } #[doc = "Bit 18 - Output Selection Set for PWML output of the channel 2"] #[inline] pub fn ossupl2(&mut self) -> _OSSUPL2W { _OSSUPL2W { w: self } } #[doc = "Bit 19 - Output Selection Set for PWML output of the channel 3"] #[inline] pub fn ossupl3(&mut self) -> _OSSUPL3W { _OSSUPL3W { w: self } } #[doc = "Bit 20 - Output Selection Set for PWML output of the channel 4"] #[inline] pub fn ossupl4(&mut self) -> _OSSUPL4W { _OSSUPL4W { w: self } } #[doc = "Bit 21 - Output Selection Set for PWML output of the channel 5"] #[inline] pub fn ossupl5(&mut self) -> _OSSUPL5W { _OSSUPL5W { w: self } } #[doc = "Bit 22 - Output Selection Set for PWML output of the channel 6"] #[inline] pub fn ossupl6(&mut self) -> _OSSUPL6W { _OSSUPL6W { w: self } } #[doc = "Bit 23 - Output Selection Set for PWML output of the channel 7"] #[inline] pub fn ossupl7(&mut self) -> _OSSUPL7W { _OSSUPL7W { w: self } } }