diff options
| author | Arne Dußin | 2021-11-06 11:50:33 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-11-06 11:50:33 +0100 |
| commit | 0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 (patch) | |
| tree | a184284dbd2316f4624f092e4e7521ea8c90855b /src/can0/txbcr.rs | |
| download | samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.tar.gz samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.zip | |
Initial commit
Diffstat (limited to 'src/can0/txbcr.rs')
| -rw-r--r-- | src/can0/txbcr.rs | 1538 |
1 files changed, 1538 insertions, 0 deletions
diff --git a/src/can0/txbcr.rs b/src/can0/txbcr.rs new file mode 100644 index 0000000..1f9aa5f --- /dev/null +++ b/src/can0/txbcr.rs @@ -0,0 +1,1538 @@ +#[doc = "Register `TXBCR` reader"] +pub struct R(crate::R<TXBCR_SPEC>); +impl core::ops::Deref for R { + type Target = crate::R<TXBCR_SPEC>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +impl From<crate::R<TXBCR_SPEC>> for R { + #[inline(always)] + fn from(reader: crate::R<TXBCR_SPEC>) -> Self { + R(reader) + } +} +#[doc = "Register `TXBCR` writer"] +pub struct W(crate::W<TXBCR_SPEC>); +impl core::ops::Deref for W { + type Target = crate::W<TXBCR_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<TXBCR_SPEC>> for W { + #[inline(always)] + fn from(writer: crate::W<TXBCR_SPEC>) -> Self { + W(writer) + } +} +#[doc = "Field `CR0` reader - Cancellation Request 0"] +pub struct CR0_R(crate::FieldReader<bool, bool>); +impl CR0_R { + pub(crate) fn new(bits: bool) -> Self { + CR0_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR0_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR0` writer - Cancellation Request 0"] +pub struct CR0_W<'a> { + w: &'a mut W, +} +impl<'a> CR0_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 = "Field `CR1` reader - Cancellation Request 1"] +pub struct CR1_R(crate::FieldReader<bool, bool>); +impl CR1_R { + pub(crate) fn new(bits: bool) -> Self { + CR1_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR1_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR1` writer - Cancellation Request 1"] +pub struct CR1_W<'a> { + w: &'a mut W, +} +impl<'a> CR1_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 = "Field `CR2` reader - Cancellation Request 2"] +pub struct CR2_R(crate::FieldReader<bool, bool>); +impl CR2_R { + pub(crate) fn new(bits: bool) -> Self { + CR2_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR2_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR2` writer - Cancellation Request 2"] +pub struct CR2_W<'a> { + w: &'a mut W, +} +impl<'a> CR2_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 = "Field `CR3` reader - Cancellation Request 3"] +pub struct CR3_R(crate::FieldReader<bool, bool>); +impl CR3_R { + pub(crate) fn new(bits: bool) -> Self { + CR3_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR3_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR3` writer - Cancellation Request 3"] +pub struct CR3_W<'a> { + w: &'a mut W, +} +impl<'a> CR3_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 << 3)) | ((value as u32 & 0x01) << 3); + self.w + } +} +#[doc = "Field `CR4` reader - Cancellation Request 4"] +pub struct CR4_R(crate::FieldReader<bool, bool>); +impl CR4_R { + pub(crate) fn new(bits: bool) -> Self { + CR4_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR4_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR4` writer - Cancellation Request 4"] +pub struct CR4_W<'a> { + w: &'a mut W, +} +impl<'a> CR4_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 = "Field `CR5` reader - Cancellation Request 5"] +pub struct CR5_R(crate::FieldReader<bool, bool>); +impl CR5_R { + pub(crate) fn new(bits: bool) -> Self { + CR5_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR5_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR5` writer - Cancellation Request 5"] +pub struct CR5_W<'a> { + w: &'a mut W, +} +impl<'a> CR5_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 = "Field `CR6` reader - Cancellation Request 6"] +pub struct CR6_R(crate::FieldReader<bool, bool>); +impl CR6_R { + pub(crate) fn new(bits: bool) -> Self { + CR6_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR6_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR6` writer - Cancellation Request 6"] +pub struct CR6_W<'a> { + w: &'a mut W, +} +impl<'a> CR6_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 = "Field `CR7` reader - Cancellation Request 7"] +pub struct CR7_R(crate::FieldReader<bool, bool>); +impl CR7_R { + pub(crate) fn new(bits: bool) -> Self { + CR7_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR7_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR7` writer - Cancellation Request 7"] +pub struct CR7_W<'a> { + w: &'a mut W, +} +impl<'a> CR7_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 << 7)) | ((value as u32 & 0x01) << 7); + self.w + } +} +#[doc = "Field `CR8` reader - Cancellation Request 8"] +pub struct CR8_R(crate::FieldReader<bool, bool>); +impl CR8_R { + pub(crate) fn new(bits: bool) -> Self { + CR8_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR8_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR8` writer - Cancellation Request 8"] +pub struct CR8_W<'a> { + w: &'a mut W, +} +impl<'a> CR8_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 = "Field `CR9` reader - Cancellation Request 9"] +pub struct CR9_R(crate::FieldReader<bool, bool>); +impl CR9_R { + pub(crate) fn new(bits: bool) -> Self { + CR9_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR9_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR9` writer - Cancellation Request 9"] +pub struct CR9_W<'a> { + w: &'a mut W, +} +impl<'a> CR9_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 = "Field `CR10` reader - Cancellation Request 10"] +pub struct CR10_R(crate::FieldReader<bool, bool>); +impl CR10_R { + pub(crate) fn new(bits: bool) -> Self { + CR10_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR10_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR10` writer - Cancellation Request 10"] +pub struct CR10_W<'a> { + w: &'a mut W, +} +impl<'a> CR10_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 = "Field `CR11` reader - Cancellation Request 11"] +pub struct CR11_R(crate::FieldReader<bool, bool>); +impl CR11_R { + pub(crate) fn new(bits: bool) -> Self { + CR11_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR11_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR11` writer - Cancellation Request 11"] +pub struct CR11_W<'a> { + w: &'a mut W, +} +impl<'a> CR11_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 << 11)) | ((value as u32 & 0x01) << 11); + self.w + } +} +#[doc = "Field `CR12` reader - Cancellation Request 12"] +pub struct CR12_R(crate::FieldReader<bool, bool>); +impl CR12_R { + pub(crate) fn new(bits: bool) -> Self { + CR12_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR12_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR12` writer - Cancellation Request 12"] +pub struct CR12_W<'a> { + w: &'a mut W, +} +impl<'a> CR12_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 = "Field `CR13` reader - Cancellation Request 13"] +pub struct CR13_R(crate::FieldReader<bool, bool>); +impl CR13_R { + pub(crate) fn new(bits: bool) -> Self { + CR13_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR13_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR13` writer - Cancellation Request 13"] +pub struct CR13_W<'a> { + w: &'a mut W, +} +impl<'a> CR13_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 = "Field `CR14` reader - Cancellation Request 14"] +pub struct CR14_R(crate::FieldReader<bool, bool>); +impl CR14_R { + pub(crate) fn new(bits: bool) -> Self { + CR14_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR14_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR14` writer - Cancellation Request 14"] +pub struct CR14_W<'a> { + w: &'a mut W, +} +impl<'a> CR14_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 = "Field `CR15` reader - Cancellation Request 15"] +pub struct CR15_R(crate::FieldReader<bool, bool>); +impl CR15_R { + pub(crate) fn new(bits: bool) -> Self { + CR15_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR15_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR15` writer - Cancellation Request 15"] +pub struct CR15_W<'a> { + w: &'a mut W, +} +impl<'a> CR15_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 << 15)) | ((value as u32 & 0x01) << 15); + self.w + } +} +#[doc = "Field `CR16` reader - Cancellation Request 16"] +pub struct CR16_R(crate::FieldReader<bool, bool>); +impl CR16_R { + pub(crate) fn new(bits: bool) -> Self { + CR16_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR16_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR16` writer - Cancellation Request 16"] +pub struct CR16_W<'a> { + w: &'a mut W, +} +impl<'a> CR16_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 = "Field `CR17` reader - Cancellation Request 17"] +pub struct CR17_R(crate::FieldReader<bool, bool>); +impl CR17_R { + pub(crate) fn new(bits: bool) -> Self { + CR17_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR17_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR17` writer - Cancellation Request 17"] +pub struct CR17_W<'a> { + w: &'a mut W, +} +impl<'a> CR17_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 = "Field `CR18` reader - Cancellation Request 18"] +pub struct CR18_R(crate::FieldReader<bool, bool>); +impl CR18_R { + pub(crate) fn new(bits: bool) -> Self { + CR18_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR18_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR18` writer - Cancellation Request 18"] +pub struct CR18_W<'a> { + w: &'a mut W, +} +impl<'a> CR18_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 = "Field `CR19` reader - Cancellation Request 19"] +pub struct CR19_R(crate::FieldReader<bool, bool>); +impl CR19_R { + pub(crate) fn new(bits: bool) -> Self { + CR19_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR19_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR19` writer - Cancellation Request 19"] +pub struct CR19_W<'a> { + w: &'a mut W, +} +impl<'a> CR19_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 + } +} +#[doc = "Field `CR20` reader - Cancellation Request 20"] +pub struct CR20_R(crate::FieldReader<bool, bool>); +impl CR20_R { + pub(crate) fn new(bits: bool) -> Self { + CR20_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR20_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR20` writer - Cancellation Request 20"] +pub struct CR20_W<'a> { + w: &'a mut W, +} +impl<'a> CR20_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 << 20)) | ((value as u32 & 0x01) << 20); + self.w + } +} +#[doc = "Field `CR21` reader - Cancellation Request 21"] +pub struct CR21_R(crate::FieldReader<bool, bool>); +impl CR21_R { + pub(crate) fn new(bits: bool) -> Self { + CR21_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR21_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR21` writer - Cancellation Request 21"] +pub struct CR21_W<'a> { + w: &'a mut W, +} +impl<'a> CR21_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 << 21)) | ((value as u32 & 0x01) << 21); + self.w + } +} +#[doc = "Field `CR22` reader - Cancellation Request 22"] +pub struct CR22_R(crate::FieldReader<bool, bool>); +impl CR22_R { + pub(crate) fn new(bits: bool) -> Self { + CR22_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR22_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR22` writer - Cancellation Request 22"] +pub struct CR22_W<'a> { + w: &'a mut W, +} +impl<'a> CR22_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 << 22)) | ((value as u32 & 0x01) << 22); + self.w + } +} +#[doc = "Field `CR23` reader - Cancellation Request 23"] +pub struct CR23_R(crate::FieldReader<bool, bool>); +impl CR23_R { + pub(crate) fn new(bits: bool) -> Self { + CR23_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR23_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR23` writer - Cancellation Request 23"] +pub struct CR23_W<'a> { + w: &'a mut W, +} +impl<'a> CR23_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 << 23)) | ((value as u32 & 0x01) << 23); + self.w + } +} +#[doc = "Field `CR24` reader - Cancellation Request 24"] +pub struct CR24_R(crate::FieldReader<bool, bool>); +impl CR24_R { + pub(crate) fn new(bits: bool) -> Self { + CR24_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR24_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR24` writer - Cancellation Request 24"] +pub struct CR24_W<'a> { + w: &'a mut W, +} +impl<'a> CR24_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 << 24)) | ((value as u32 & 0x01) << 24); + self.w + } +} +#[doc = "Field `CR25` reader - Cancellation Request 25"] +pub struct CR25_R(crate::FieldReader<bool, bool>); +impl CR25_R { + pub(crate) fn new(bits: bool) -> Self { + CR25_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR25_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR25` writer - Cancellation Request 25"] +pub struct CR25_W<'a> { + w: &'a mut W, +} +impl<'a> CR25_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 << 25)) | ((value as u32 & 0x01) << 25); + self.w + } +} +#[doc = "Field `CR26` reader - Cancellation Request 26"] +pub struct CR26_R(crate::FieldReader<bool, bool>); +impl CR26_R { + pub(crate) fn new(bits: bool) -> Self { + CR26_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR26_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR26` writer - Cancellation Request 26"] +pub struct CR26_W<'a> { + w: &'a mut W, +} +impl<'a> CR26_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 << 26)) | ((value as u32 & 0x01) << 26); + self.w + } +} +#[doc = "Field `CR27` reader - Cancellation Request 27"] +pub struct CR27_R(crate::FieldReader<bool, bool>); +impl CR27_R { + pub(crate) fn new(bits: bool) -> Self { + CR27_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR27_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR27` writer - Cancellation Request 27"] +pub struct CR27_W<'a> { + w: &'a mut W, +} +impl<'a> CR27_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 << 27)) | ((value as u32 & 0x01) << 27); + self.w + } +} +#[doc = "Field `CR28` reader - Cancellation Request 28"] +pub struct CR28_R(crate::FieldReader<bool, bool>); +impl CR28_R { + pub(crate) fn new(bits: bool) -> Self { + CR28_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR28_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR28` writer - Cancellation Request 28"] +pub struct CR28_W<'a> { + w: &'a mut W, +} +impl<'a> CR28_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 << 28)) | ((value as u32 & 0x01) << 28); + self.w + } +} +#[doc = "Field `CR29` reader - Cancellation Request 29"] +pub struct CR29_R(crate::FieldReader<bool, bool>); +impl CR29_R { + pub(crate) fn new(bits: bool) -> Self { + CR29_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR29_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR29` writer - Cancellation Request 29"] +pub struct CR29_W<'a> { + w: &'a mut W, +} +impl<'a> CR29_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 << 29)) | ((value as u32 & 0x01) << 29); + self.w + } +} +#[doc = "Field `CR30` reader - Cancellation Request 30"] +pub struct CR30_R(crate::FieldReader<bool, bool>); +impl CR30_R { + pub(crate) fn new(bits: bool) -> Self { + CR30_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR30_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR30` writer - Cancellation Request 30"] +pub struct CR30_W<'a> { + w: &'a mut W, +} +impl<'a> CR30_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 << 30)) | ((value as u32 & 0x01) << 30); + self.w + } +} +#[doc = "Field `CR31` reader - Cancellation Request 31"] +pub struct CR31_R(crate::FieldReader<bool, bool>); +impl CR31_R { + pub(crate) fn new(bits: bool) -> Self { + CR31_R(crate::FieldReader::new(bits)) + } +} +impl core::ops::Deref for CR31_R { + type Target = crate::FieldReader<bool, bool>; + #[inline(always)] + fn deref(&self) -> &Self::Target { + &self.0 + } +} +#[doc = "Field `CR31` writer - Cancellation Request 31"] +pub struct CR31_W<'a> { + w: &'a mut W, +} +impl<'a> CR31_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 << 31)) | ((value as u32 & 0x01) << 31); + self.w + } +} +impl R { + #[doc = "Bit 0 - Cancellation Request 0"] + #[inline(always)] + pub fn cr0(&self) -> CR0_R { + CR0_R::new((self.bits & 0x01) != 0) + } + #[doc = "Bit 1 - Cancellation Request 1"] + #[inline(always)] + pub fn cr1(&self) -> CR1_R { + CR1_R::new(((self.bits >> 1) & 0x01) != 0) + } + #[doc = "Bit 2 - Cancellation Request 2"] + #[inline(always)] + pub fn cr2(&self) -> CR2_R { + CR2_R::new(((self.bits >> 2) & 0x01) != 0) + } + #[doc = "Bit 3 - Cancellation Request 3"] + #[inline(always)] + pub fn cr3(&self) -> CR3_R { + CR3_R::new(((self.bits >> 3) & 0x01) != 0) + } + #[doc = "Bit 4 - Cancellation Request 4"] + #[inline(always)] + pub fn cr4(&self) -> CR4_R { + CR4_R::new(((self.bits >> 4) & 0x01) != 0) + } + #[doc = "Bit 5 - Cancellation Request 5"] + #[inline(always)] + pub fn cr5(&self) -> CR5_R { + CR5_R::new(((self.bits >> 5) & 0x01) != 0) + } + #[doc = "Bit 6 - Cancellation Request 6"] + #[inline(always)] + pub fn cr6(&self) -> CR6_R { + CR6_R::new(((self.bits >> 6) & 0x01) != 0) + } + #[doc = "Bit 7 - Cancellation Request 7"] + #[inline(always)] + pub fn cr7(&self) -> CR7_R { + CR7_R::new(((self.bits >> 7) & 0x01) != 0) + } + #[doc = "Bit 8 - Cancellation Request 8"] + #[inline(always)] + pub fn cr8(&self) -> CR8_R { + CR8_R::new(((self.bits >> 8) & 0x01) != 0) + } + #[doc = "Bit 9 - Cancellation Request 9"] + #[inline(always)] + pub fn cr9(&self) -> CR9_R { + CR9_R::new(((self.bits >> 9) & 0x01) != 0) + } + #[doc = "Bit 10 - Cancellation Request 10"] + #[inline(always)] + pub fn cr10(&self) -> CR10_R { + CR10_R::new(((self.bits >> 10) & 0x01) != 0) + } + #[doc = "Bit 11 - Cancellation Request 11"] + #[inline(always)] + pub fn cr11(&self) -> CR11_R { + CR11_R::new(((self.bits >> 11) & 0x01) != 0) + } + #[doc = "Bit 12 - Cancellation Request 12"] + #[inline(always)] + pub fn cr12(&self) -> CR12_R { + CR12_R::new(((self.bits >> 12) & 0x01) != 0) + } + #[doc = "Bit 13 - Cancellation Request 13"] + #[inline(always)] + pub fn cr13(&self) -> CR13_R { + CR13_R::new(((self.bits >> 13) & 0x01) != 0) + } + #[doc = "Bit 14 - Cancellation Request 14"] + #[inline(always)] + pub fn cr14(&self) -> CR14_R { + CR14_R::new(((self.bits >> 14) & 0x01) != 0) + } + #[doc = "Bit 15 - Cancellation Request 15"] + #[inline(always)] + pub fn cr15(&self) -> CR15_R { + CR15_R::new(((self.bits >> 15) & 0x01) != 0) + } + #[doc = "Bit 16 - Cancellation Request 16"] + #[inline(always)] + pub fn cr16(&self) -> CR16_R { + CR16_R::new(((self.bits >> 16) & 0x01) != 0) + } + #[doc = "Bit 17 - Cancellation Request 17"] + #[inline(always)] + pub fn cr17(&self) -> CR17_R { + CR17_R::new(((self.bits >> 17) & 0x01) != 0) + } + #[doc = "Bit 18 - Cancellation Request 18"] + #[inline(always)] + pub fn cr18(&self) -> CR18_R { + CR18_R::new(((self.bits >> 18) & 0x01) != 0) + } + #[doc = "Bit 19 - Cancellation Request 19"] + #[inline(always)] + pub fn cr19(&self) -> CR19_R { + CR19_R::new(((self.bits >> 19) & 0x01) != 0) + } + #[doc = "Bit 20 - Cancellation Request 20"] + #[inline(always)] + pub fn cr20(&self) -> CR20_R { + CR20_R::new(((self.bits >> 20) & 0x01) != 0) + } + #[doc = "Bit 21 - Cancellation Request 21"] + #[inline(always)] + pub fn cr21(&self) -> CR21_R { + CR21_R::new(((self.bits >> 21) & 0x01) != 0) + } + #[doc = "Bit 22 - Cancellation Request 22"] + #[inline(always)] + pub fn cr22(&self) -> CR22_R { + CR22_R::new(((self.bits >> 22) & 0x01) != 0) + } + #[doc = "Bit 23 - Cancellation Request 23"] + #[inline(always)] + pub fn cr23(&self) -> CR23_R { + CR23_R::new(((self.bits >> 23) & 0x01) != 0) + } + #[doc = "Bit 24 - Cancellation Request 24"] + #[inline(always)] + pub fn cr24(&self) -> CR24_R { + CR24_R::new(((self.bits >> 24) & 0x01) != 0) + } + #[doc = "Bit 25 - Cancellation Request 25"] + #[inline(always)] + pub fn cr25(&self) -> CR25_R { + CR25_R::new(((self.bits >> 25) & 0x01) != 0) + } + #[doc = "Bit 26 - Cancellation Request 26"] + #[inline(always)] + pub fn cr26(&self) -> CR26_R { + CR26_R::new(((self.bits >> 26) & 0x01) != 0) + } + #[doc = "Bit 27 - Cancellation Request 27"] + #[inline(always)] + pub fn cr27(&self) -> CR27_R { + CR27_R::new(((self.bits >> 27) & 0x01) != 0) + } + #[doc = "Bit 28 - Cancellation Request 28"] + #[inline(always)] + pub fn cr28(&self) -> CR28_R { + CR28_R::new(((self.bits >> 28) & 0x01) != 0) + } + #[doc = "Bit 29 - Cancellation Request 29"] + #[inline(always)] + pub fn cr29(&self) -> CR29_R { + CR29_R::new(((self.bits >> 29) & 0x01) != 0) + } + #[doc = "Bit 30 - Cancellation Request 30"] + #[inline(always)] + pub fn cr30(&self) -> CR30_R { + CR30_R::new(((self.bits >> 30) & 0x01) != 0) + } + #[doc = "Bit 31 - Cancellation Request 31"] + #[inline(always)] + pub fn cr31(&self) -> CR31_R { + CR31_R::new(((self.bits >> 31) & 0x01) != 0) + } +} +impl W { + #[doc = "Bit 0 - Cancellation Request 0"] + #[inline(always)] + pub fn cr0(&mut self) -> CR0_W { + CR0_W { w: self } + } + #[doc = "Bit 1 - Cancellation Request 1"] + #[inline(always)] + pub fn cr1(&mut self) -> CR1_W { + CR1_W { w: self } + } + #[doc = "Bit 2 - Cancellation Request 2"] + #[inline(always)] + pub fn cr2(&mut self) -> CR2_W { + CR2_W { w: self } + } + #[doc = "Bit 3 - Cancellation Request 3"] + #[inline(always)] + pub fn cr3(&mut self) -> CR3_W { + CR3_W { w: self } + } + #[doc = "Bit 4 - Cancellation Request 4"] + #[inline(always)] + pub fn cr4(&mut self) -> CR4_W { + CR4_W { w: self } + } + #[doc = "Bit 5 - Cancellation Request 5"] + #[inline(always)] + pub fn cr5(&mut self) -> CR5_W { + CR5_W { w: self } + } + #[doc = "Bit 6 - Cancellation Request 6"] + #[inline(always)] + pub fn cr6(&mut self) -> CR6_W { + CR6_W { w: self } + } + #[doc = "Bit 7 - Cancellation Request 7"] + #[inline(always)] + pub fn cr7(&mut self) -> CR7_W { + CR7_W { w: self } + } + #[doc = "Bit 8 - Cancellation Request 8"] + #[inline(always)] + pub fn cr8(&mut self) -> CR8_W { + CR8_W { w: self } + } + #[doc = "Bit 9 - Cancellation Request 9"] + #[inline(always)] + pub fn cr9(&mut self) -> CR9_W { + CR9_W { w: self } + } + #[doc = "Bit 10 - Cancellation Request 10"] + #[inline(always)] + pub fn cr10(&mut self) -> CR10_W { + CR10_W { w: self } + } + #[doc = "Bit 11 - Cancellation Request 11"] + #[inline(always)] + pub fn cr11(&mut self) -> CR11_W { + CR11_W { w: self } + } + #[doc = "Bit 12 - Cancellation Request 12"] + #[inline(always)] + pub fn cr12(&mut self) -> CR12_W { + CR12_W { w: self } + } + #[doc = "Bit 13 - Cancellation Request 13"] + #[inline(always)] + pub fn cr13(&mut self) -> CR13_W { + CR13_W { w: self } + } + #[doc = "Bit 14 - Cancellation Request 14"] + #[inline(always)] + pub fn cr14(&mut self) -> CR14_W { + CR14_W { w: self } + } + #[doc = "Bit 15 - Cancellation Request 15"] + #[inline(always)] + pub fn cr15(&mut self) -> CR15_W { + CR15_W { w: self } + } + #[doc = "Bit 16 - Cancellation Request 16"] + #[inline(always)] + pub fn cr16(&mut self) -> CR16_W { + CR16_W { w: self } + } + #[doc = "Bit 17 - Cancellation Request 17"] + #[inline(always)] + pub fn cr17(&mut self) -> CR17_W { + CR17_W { w: self } + } + #[doc = "Bit 18 - Cancellation Request 18"] + #[inline(always)] + pub fn cr18(&mut self) -> CR18_W { + CR18_W { w: self } + } + #[doc = "Bit 19 - Cancellation Request 19"] + #[inline(always)] + pub fn cr19(&mut self) -> CR19_W { + CR19_W { w: self } + } + #[doc = "Bit 20 - Cancellation Request 20"] + #[inline(always)] + pub fn cr20(&mut self) -> CR20_W { + CR20_W { w: self } + } + #[doc = "Bit 21 - Cancellation Request 21"] + #[inline(always)] + pub fn cr21(&mut self) -> CR21_W { + CR21_W { w: self } + } + #[doc = "Bit 22 - Cancellation Request 22"] + #[inline(always)] + pub fn cr22(&mut self) -> CR22_W { + CR22_W { w: self } + } + #[doc = "Bit 23 - Cancellation Request 23"] + #[inline(always)] + pub fn cr23(&mut self) -> CR23_W { + CR23_W { w: self } + } + #[doc = "Bit 24 - Cancellation Request 24"] + #[inline(always)] + pub fn cr24(&mut self) -> CR24_W { + CR24_W { w: self } + } + #[doc = "Bit 25 - Cancellation Request 25"] + #[inline(always)] + pub fn cr25(&mut self) -> CR25_W { + CR25_W { w: self } + } + #[doc = "Bit 26 - Cancellation Request 26"] + #[inline(always)] + pub fn cr26(&mut self) -> CR26_W { + CR26_W { w: self } + } + #[doc = "Bit 27 - Cancellation Request 27"] + #[inline(always)] + pub fn cr27(&mut self) -> CR27_W { + CR27_W { w: self } + } + #[doc = "Bit 28 - Cancellation Request 28"] + #[inline(always)] + pub fn cr28(&mut self) -> CR28_W { + CR28_W { w: self } + } + #[doc = "Bit 29 - Cancellation Request 29"] + #[inline(always)] + pub fn cr29(&mut self) -> CR29_W { + CR29_W { w: self } + } + #[doc = "Bit 30 - Cancellation Request 30"] + #[inline(always)] + pub fn cr30(&mut self) -> CR30_W { + CR30_W { w: self } + } + #[doc = "Bit 31 - Cancellation Request 31"] + #[inline(always)] + pub fn cr31(&mut self) -> CR31_W { + CR31_W { w: 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 = "Tx Buffer Cancellation Request\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [txbcr](index.html) module"] +pub struct TXBCR_SPEC; +impl crate::RegisterSpec for TXBCR_SPEC { + type Ux = u32; +} +#[doc = "`read()` method returns [txbcr::R](R) reader structure"] +impl crate::Readable for TXBCR_SPEC { + type Reader = R; +} +#[doc = "`write(|w| ..)` method takes [txbcr::W](W) writer structure"] +impl crate::Writable for TXBCR_SPEC { + type Writer = W; +} +#[doc = "`reset()` method sets TXBCR to value 0"] +impl crate::Resettable for TXBCR_SPEC { + #[inline(always)] + fn reset_value() -> Self::Ux { + 0 + } +} |
