#[doc = "Writer for register GCSC"]
pub type W = crate::W<u32, super::GCSC>;
#[doc = "Register GCSC `reset()`'s with value 0"]
impl crate::ResetValue for super::GCSC {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Write proxy for field `S0SC`"]
pub struct S0SC_W<'a> {
w: &'a mut W,
}
impl<'a> S0SC_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 = "Write proxy for field `S0DSC`"]
pub struct S0DSC_W<'a> {
w: &'a mut W,
}
impl<'a> S0DSC_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 = "Write proxy for field `S0PSC`"]
pub struct S0PSC_W<'a> {
w: &'a mut W,
}
impl<'a> S0PSC_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 = "Write proxy for field `S1SC`"]
pub struct S1SC_W<'a> {
w: &'a mut W,
}
impl<'a> S1SC_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 = "Write proxy for field `S1DSC`"]
pub struct S1DSC_W<'a> {
w: &'a mut W,
}
impl<'a> S1DSC_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 = "Write proxy for field `S1PSC`"]
pub struct S1PSC_W<'a> {
w: &'a mut W,
}
impl<'a> S1PSC_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 = "Write proxy for field `S2SC`"]
pub struct S2SC_W<'a> {
w: &'a mut W,
}
impl<'a> S2SC_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 = "Write proxy for field `S2DSC`"]
pub struct S2DSC_W<'a> {
w: &'a mut W,
}
impl<'a> S2DSC_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 = "Write proxy for field `S2PSC`"]
pub struct S2PSC_W<'a> {
w: &'a mut W,
}
impl<'a> S2PSC_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 = "Write proxy for field `S3SC`"]
pub struct S3SC_W<'a> {
w: &'a mut W,
}
impl<'a> S3SC_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 = "Write proxy for field `S3DSC`"]
pub struct S3DSC_W<'a> {
w: &'a mut W,
}
impl<'a> S3DSC_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 = "Write proxy for field `S3PSC`"]
pub struct S3PSC_W<'a> {
w: &'a mut W,
}
impl<'a> S3PSC_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 = "Write proxy for field `S0STC`"]
pub struct S0STC_W<'a> {
w: &'a mut W,
}
impl<'a> S0STC_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 = "Write proxy for field `S1STC`"]
pub struct S1STC_W<'a> {
w: &'a mut W,
}
impl<'a> S1STC_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 = "Write proxy for field `S2STC`"]
pub struct S2STC_W<'a> {
w: &'a mut W,
}
impl<'a> S2STC_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 = "Write proxy for field `S3STC`"]
pub struct S3STC_W<'a> {
w: &'a mut W,
}
impl<'a> S3STC_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
}
}
impl W {
#[doc = "Bit 0 - Slice 0 shadow transfer clear"]
#[inline(always)]
pub fn s0sc(&mut self) -> S0SC_W {
S0SC_W { w: self }
}
#[doc = "Bit 1 - Slice 0 Dither shadow transfer clear"]
#[inline(always)]
pub fn s0dsc(&mut self) -> S0DSC_W {
S0DSC_W { w: self }
}
#[doc = "Bit 2 - Slice 0 Prescaler shadow transfer clear"]
#[inline(always)]
pub fn s0psc(&mut self) -> S0PSC_W {
S0PSC_W { w: self }
}
#[doc = "Bit 4 - Slice 1 shadow transfer clear"]
#[inline(always)]
pub fn s1sc(&mut self) -> S1SC_W {
S1SC_W { w: self }
}
#[doc = "Bit 5 - Slice 1 Dither shadow transfer clear"]
#[inline(always)]
pub fn s1dsc(&mut self) -> S1DSC_W {
S1DSC_W { w: self }
}
#[doc = "Bit 6 - Slice 1 Prescaler shadow transfer clear"]
#[inline(always)]
pub fn s1psc(&mut self) -> S1PSC_W {
S1PSC_W { w: self }
}
#[doc = "Bit 8 - Slice 2 shadow transfer clear"]
#[inline(always)]
pub fn s2sc(&mut self) -> S2SC_W {
S2SC_W { w: self }
}
#[doc = "Bit 9 - Slice 2 Dither shadow transfer clear"]
#[inline(always)]
pub fn s2dsc(&mut self) -> S2DSC_W {
S2DSC_W { w: self }
}
#[doc = "Bit 10 - Slice 2 Prescaler shadow transfer clear"]
#[inline(always)]
pub fn s2psc(&mut self) -> S2PSC_W {
S2PSC_W { w: self }
}
#[doc = "Bit 12 - Slice 3 shadow transfer clear"]
#[inline(always)]
pub fn s3sc(&mut self) -> S3SC_W {
S3SC_W { w: self }
}
#[doc = "Bit 13 - Slice 3 Dither shadow transfer clear"]
#[inline(always)]
pub fn s3dsc(&mut self) -> S3DSC_W {
S3DSC_W { w: self }
}
#[doc = "Bit 14 - Slice 3 Prescaler shadow transfer clear"]
#[inline(always)]
pub fn s3psc(&mut self) -> S3PSC_W {
S3PSC_W { w: self }
}
#[doc = "Bit 16 - Slice 0 status bit clear"]
#[inline(always)]
pub fn s0stc(&mut self) -> S0STC_W {
S0STC_W { w: self }
}
#[doc = "Bit 17 - Slice 1 status bit clear"]
#[inline(always)]
pub fn s1stc(&mut self) -> S1STC_W {
S1STC_W { w: self }
}
#[doc = "Bit 18 - Slice 2 status bit clear"]
#[inline(always)]
pub fn s2stc(&mut self) -> S2STC_W {
S2STC_W { w: self }
}
#[doc = "Bit 19 - Slice 3 status bit clear"]
#[inline(always)]
pub fn s3stc(&mut self) -> S3STC_W {
S3STC_W { w: self }
}
}