#[doc = "Register `MPCBB1_VCTR25` reader"]
pub struct R(crate::R<MPCBB1_VCTR25_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<MPCBB1_VCTR25_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<MPCBB1_VCTR25_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<MPCBB1_VCTR25_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `MPCBB1_VCTR25` writer"]
pub struct W(crate::W<MPCBB1_VCTR25_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<MPCBB1_VCTR25_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<MPCBB1_VCTR25_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<MPCBB1_VCTR25_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `B800` reader - B800"]
pub struct B800_R(crate::FieldReader<bool, bool>);
impl B800_R {
pub(crate) fn new(bits: bool) -> Self {
B800_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B800_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B800` writer - B800"]
pub struct B800_W<'a> {
w: &'a mut W,
}
impl<'a> B800_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 `B801` reader - B801"]
pub struct B801_R(crate::FieldReader<bool, bool>);
impl B801_R {
pub(crate) fn new(bits: bool) -> Self {
B801_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B801_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B801` writer - B801"]
pub struct B801_W<'a> {
w: &'a mut W,
}
impl<'a> B801_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 `B802` reader - B802"]
pub struct B802_R(crate::FieldReader<bool, bool>);
impl B802_R {
pub(crate) fn new(bits: bool) -> Self {
B802_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B802_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B802` writer - B802"]
pub struct B802_W<'a> {
w: &'a mut W,
}
impl<'a> B802_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 `B803` reader - B803"]
pub struct B803_R(crate::FieldReader<bool, bool>);
impl B803_R {
pub(crate) fn new(bits: bool) -> Self {
B803_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B803_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B803` writer - B803"]
pub struct B803_W<'a> {
w: &'a mut W,
}
impl<'a> B803_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 `B804` reader - B804"]
pub struct B804_R(crate::FieldReader<bool, bool>);
impl B804_R {
pub(crate) fn new(bits: bool) -> Self {
B804_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B804_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B804` writer - B804"]
pub struct B804_W<'a> {
w: &'a mut W,
}
impl<'a> B804_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 `B805` reader - B805"]
pub struct B805_R(crate::FieldReader<bool, bool>);
impl B805_R {
pub(crate) fn new(bits: bool) -> Self {
B805_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B805_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B805` writer - B805"]
pub struct B805_W<'a> {
w: &'a mut W,
}
impl<'a> B805_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 `B806` reader - B806"]
pub struct B806_R(crate::FieldReader<bool, bool>);
impl B806_R {
pub(crate) fn new(bits: bool) -> Self {
B806_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B806_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B806` writer - B806"]
pub struct B806_W<'a> {
w: &'a mut W,
}
impl<'a> B806_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 `B807` reader - B807"]
pub struct B807_R(crate::FieldReader<bool, bool>);
impl B807_R {
pub(crate) fn new(bits: bool) -> Self {
B807_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B807_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B807` writer - B807"]
pub struct B807_W<'a> {
w: &'a mut W,
}
impl<'a> B807_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 `B808` reader - B808"]
pub struct B808_R(crate::FieldReader<bool, bool>);
impl B808_R {
pub(crate) fn new(bits: bool) -> Self {
B808_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B808_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B808` writer - B808"]
pub struct B808_W<'a> {
w: &'a mut W,
}
impl<'a> B808_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 `B809` reader - B809"]
pub struct B809_R(crate::FieldReader<bool, bool>);
impl B809_R {
pub(crate) fn new(bits: bool) -> Self {
B809_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B809_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B809` writer - B809"]
pub struct B809_W<'a> {
w: &'a mut W,
}
impl<'a> B809_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 `B810` reader - B810"]
pub struct B810_R(crate::FieldReader<bool, bool>);
impl B810_R {
pub(crate) fn new(bits: bool) -> Self {
B810_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B810_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B810` writer - B810"]
pub struct B810_W<'a> {
w: &'a mut W,
}
impl<'a> B810_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 `B811` reader - B811"]
pub struct B811_R(crate::FieldReader<bool, bool>);
impl B811_R {
pub(crate) fn new(bits: bool) -> Self {
B811_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B811_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B811` writer - B811"]
pub struct B811_W<'a> {
w: &'a mut W,
}
impl<'a> B811_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 `B812` reader - B812"]
pub struct B812_R(crate::FieldReader<bool, bool>);
impl B812_R {
pub(crate) fn new(bits: bool) -> Self {
B812_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B812_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B812` writer - B812"]
pub struct B812_W<'a> {
w: &'a mut W,
}
impl<'a> B812_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 `B813` reader - B813"]
pub struct B813_R(crate::FieldReader<bool, bool>);
impl B813_R {
pub(crate) fn new(bits: bool) -> Self {
B813_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B813_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B813` writer - B813"]
pub struct B813_W<'a> {
w: &'a mut W,
}
impl<'a> B813_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 `B814` reader - B814"]
pub struct B814_R(crate::FieldReader<bool, bool>);
impl B814_R {
pub(crate) fn new(bits: bool) -> Self {
B814_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B814_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B814` writer - B814"]
pub struct B814_W<'a> {
w: &'a mut W,
}
impl<'a> B814_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 `B815` reader - B815"]
pub struct B815_R(crate::FieldReader<bool, bool>);
impl B815_R {
pub(crate) fn new(bits: bool) -> Self {
B815_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B815_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B815` writer - B815"]
pub struct B815_W<'a> {
w: &'a mut W,
}
impl<'a> B815_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 `B816` reader - B816"]
pub struct B816_R(crate::FieldReader<bool, bool>);
impl B816_R {
pub(crate) fn new(bits: bool) -> Self {
B816_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B816_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B816` writer - B816"]
pub struct B816_W<'a> {
w: &'a mut W,
}
impl<'a> B816_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 `B817` reader - B817"]
pub struct B817_R(crate::FieldReader<bool, bool>);
impl B817_R {
pub(crate) fn new(bits: bool) -> Self {
B817_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B817_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B817` writer - B817"]
pub struct B817_W<'a> {
w: &'a mut W,
}
impl<'a> B817_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 `B818` reader - B818"]
pub struct B818_R(crate::FieldReader<bool, bool>);
impl B818_R {
pub(crate) fn new(bits: bool) -> Self {
B818_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B818_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B818` writer - B818"]
pub struct B818_W<'a> {
w: &'a mut W,
}
impl<'a> B818_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 `B819` reader - B819"]
pub struct B819_R(crate::FieldReader<bool, bool>);
impl B819_R {
pub(crate) fn new(bits: bool) -> Self {
B819_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B819_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B819` writer - B819"]
pub struct B819_W<'a> {
w: &'a mut W,
}
impl<'a> B819_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 `B820` reader - B820"]
pub struct B820_R(crate::FieldReader<bool, bool>);
impl B820_R {
pub(crate) fn new(bits: bool) -> Self {
B820_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B820_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B820` writer - B820"]
pub struct B820_W<'a> {
w: &'a mut W,
}
impl<'a> B820_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 `B821` reader - B821"]
pub struct B821_R(crate::FieldReader<bool, bool>);
impl B821_R {
pub(crate) fn new(bits: bool) -> Self {
B821_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B821_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B821` writer - B821"]
pub struct B821_W<'a> {
w: &'a mut W,
}
impl<'a> B821_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 `B822` reader - B822"]
pub struct B822_R(crate::FieldReader<bool, bool>);
impl B822_R {
pub(crate) fn new(bits: bool) -> Self {
B822_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B822_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B822` writer - B822"]
pub struct B822_W<'a> {
w: &'a mut W,
}
impl<'a> B822_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 `B823` reader - B823"]
pub struct B823_R(crate::FieldReader<bool, bool>);
impl B823_R {
pub(crate) fn new(bits: bool) -> Self {
B823_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B823_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B823` writer - B823"]
pub struct B823_W<'a> {
w: &'a mut W,
}
impl<'a> B823_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 `B824` reader - B824"]
pub struct B824_R(crate::FieldReader<bool, bool>);
impl B824_R {
pub(crate) fn new(bits: bool) -> Self {
B824_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B824_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B824` writer - B824"]
pub struct B824_W<'a> {
w: &'a mut W,
}
impl<'a> B824_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 `B825` reader - B825"]
pub struct B825_R(crate::FieldReader<bool, bool>);
impl B825_R {
pub(crate) fn new(bits: bool) -> Self {
B825_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B825_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B825` writer - B825"]
pub struct B825_W<'a> {
w: &'a mut W,
}
impl<'a> B825_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 `B826` reader - B826"]
pub struct B826_R(crate::FieldReader<bool, bool>);
impl B826_R {
pub(crate) fn new(bits: bool) -> Self {
B826_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B826_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B826` writer - B826"]
pub struct B826_W<'a> {
w: &'a mut W,
}
impl<'a> B826_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 `B827` reader - B827"]
pub struct B827_R(crate::FieldReader<bool, bool>);
impl B827_R {
pub(crate) fn new(bits: bool) -> Self {
B827_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B827_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B827` writer - B827"]
pub struct B827_W<'a> {
w: &'a mut W,
}
impl<'a> B827_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 `B828` reader - B828"]
pub struct B828_R(crate::FieldReader<bool, bool>);
impl B828_R {
pub(crate) fn new(bits: bool) -> Self {
B828_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B828_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B828` writer - B828"]
pub struct B828_W<'a> {
w: &'a mut W,
}
impl<'a> B828_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 `B829` reader - B829"]
pub struct B829_R(crate::FieldReader<bool, bool>);
impl B829_R {
pub(crate) fn new(bits: bool) -> Self {
B829_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B829_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B829` writer - B829"]
pub struct B829_W<'a> {
w: &'a mut W,
}
impl<'a> B829_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 `B830` reader - B830"]
pub struct B830_R(crate::FieldReader<bool, bool>);
impl B830_R {
pub(crate) fn new(bits: bool) -> Self {
B830_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B830_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B830` writer - B830"]
pub struct B830_W<'a> {
w: &'a mut W,
}
impl<'a> B830_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 `B831` reader - B831"]
pub struct B831_R(crate::FieldReader<bool, bool>);
impl B831_R {
pub(crate) fn new(bits: bool) -> Self {
B831_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for B831_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `B831` writer - B831"]
pub struct B831_W<'a> {
w: &'a mut W,
}
impl<'a> B831_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 - B800"]
#[inline(always)]
pub fn b800(&self) -> B800_R {
B800_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - B801"]
#[inline(always)]
pub fn b801(&self) -> B801_R {
B801_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - B802"]
#[inline(always)]
pub fn b802(&self) -> B802_R {
B802_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - B803"]
#[inline(always)]
pub fn b803(&self) -> B803_R {
B803_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - B804"]
#[inline(always)]
pub fn b804(&self) -> B804_R {
B804_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - B805"]
#[inline(always)]
pub fn b805(&self) -> B805_R {
B805_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - B806"]
#[inline(always)]
pub fn b806(&self) -> B806_R {
B806_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - B807"]
#[inline(always)]
pub fn b807(&self) -> B807_R {
B807_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - B808"]
#[inline(always)]
pub fn b808(&self) -> B808_R {
B808_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - B809"]
#[inline(always)]
pub fn b809(&self) -> B809_R {
B809_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - B810"]
#[inline(always)]
pub fn b810(&self) -> B810_R {
B810_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - B811"]
#[inline(always)]
pub fn b811(&self) -> B811_R {
B811_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 12 - B812"]
#[inline(always)]
pub fn b812(&self) -> B812_R {
B812_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 13 - B813"]
#[inline(always)]
pub fn b813(&self) -> B813_R {
B813_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - B814"]
#[inline(always)]
pub fn b814(&self) -> B814_R {
B814_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - B815"]
#[inline(always)]
pub fn b815(&self) -> B815_R {
B815_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 16 - B816"]
#[inline(always)]
pub fn b816(&self) -> B816_R {
B816_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 17 - B817"]
#[inline(always)]
pub fn b817(&self) -> B817_R {
B817_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 18 - B818"]
#[inline(always)]
pub fn b818(&self) -> B818_R {
B818_R::new(((self.bits >> 18) & 0x01) != 0)
}
#[doc = "Bit 19 - B819"]
#[inline(always)]
pub fn b819(&self) -> B819_R {
B819_R::new(((self.bits >> 19) & 0x01) != 0)
}
#[doc = "Bit 20 - B820"]
#[inline(always)]
pub fn b820(&self) -> B820_R {
B820_R::new(((self.bits >> 20) & 0x01) != 0)
}
#[doc = "Bit 21 - B821"]
#[inline(always)]
pub fn b821(&self) -> B821_R {
B821_R::new(((self.bits >> 21) & 0x01) != 0)
}
#[doc = "Bit 22 - B822"]
#[inline(always)]
pub fn b822(&self) -> B822_R {
B822_R::new(((self.bits >> 22) & 0x01) != 0)
}
#[doc = "Bit 23 - B823"]
#[inline(always)]
pub fn b823(&self) -> B823_R {
B823_R::new(((self.bits >> 23) & 0x01) != 0)
}
#[doc = "Bit 24 - B824"]
#[inline(always)]
pub fn b824(&self) -> B824_R {
B824_R::new(((self.bits >> 24) & 0x01) != 0)
}
#[doc = "Bit 25 - B825"]
#[inline(always)]
pub fn b825(&self) -> B825_R {
B825_R::new(((self.bits >> 25) & 0x01) != 0)
}
#[doc = "Bit 26 - B826"]
#[inline(always)]
pub fn b826(&self) -> B826_R {
B826_R::new(((self.bits >> 26) & 0x01) != 0)
}
#[doc = "Bit 27 - B827"]
#[inline(always)]
pub fn b827(&self) -> B827_R {
B827_R::new(((self.bits >> 27) & 0x01) != 0)
}
#[doc = "Bit 28 - B828"]
#[inline(always)]
pub fn b828(&self) -> B828_R {
B828_R::new(((self.bits >> 28) & 0x01) != 0)
}
#[doc = "Bit 29 - B829"]
#[inline(always)]
pub fn b829(&self) -> B829_R {
B829_R::new(((self.bits >> 29) & 0x01) != 0)
}
#[doc = "Bit 30 - B830"]
#[inline(always)]
pub fn b830(&self) -> B830_R {
B830_R::new(((self.bits >> 30) & 0x01) != 0)
}
#[doc = "Bit 31 - B831"]
#[inline(always)]
pub fn b831(&self) -> B831_R {
B831_R::new(((self.bits >> 31) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - B800"]
#[inline(always)]
pub fn b800(&mut self) -> B800_W {
B800_W { w: self }
}
#[doc = "Bit 1 - B801"]
#[inline(always)]
pub fn b801(&mut self) -> B801_W {
B801_W { w: self }
}
#[doc = "Bit 2 - B802"]
#[inline(always)]
pub fn b802(&mut self) -> B802_W {
B802_W { w: self }
}
#[doc = "Bit 3 - B803"]
#[inline(always)]
pub fn b803(&mut self) -> B803_W {
B803_W { w: self }
}
#[doc = "Bit 4 - B804"]
#[inline(always)]
pub fn b804(&mut self) -> B804_W {
B804_W { w: self }
}
#[doc = "Bit 5 - B805"]
#[inline(always)]
pub fn b805(&mut self) -> B805_W {
B805_W { w: self }
}
#[doc = "Bit 6 - B806"]
#[inline(always)]
pub fn b806(&mut self) -> B806_W {
B806_W { w: self }
}
#[doc = "Bit 7 - B807"]
#[inline(always)]
pub fn b807(&mut self) -> B807_W {
B807_W { w: self }
}
#[doc = "Bit 8 - B808"]
#[inline(always)]
pub fn b808(&mut self) -> B808_W {
B808_W { w: self }
}
#[doc = "Bit 9 - B809"]
#[inline(always)]
pub fn b809(&mut self) -> B809_W {
B809_W { w: self }
}
#[doc = "Bit 10 - B810"]
#[inline(always)]
pub fn b810(&mut self) -> B810_W {
B810_W { w: self }
}
#[doc = "Bit 11 - B811"]
#[inline(always)]
pub fn b811(&mut self) -> B811_W {
B811_W { w: self }
}
#[doc = "Bit 12 - B812"]
#[inline(always)]
pub fn b812(&mut self) -> B812_W {
B812_W { w: self }
}
#[doc = "Bit 13 - B813"]
#[inline(always)]
pub fn b813(&mut self) -> B813_W {
B813_W { w: self }
}
#[doc = "Bit 14 - B814"]
#[inline(always)]
pub fn b814(&mut self) -> B814_W {
B814_W { w: self }
}
#[doc = "Bit 15 - B815"]
#[inline(always)]
pub fn b815(&mut self) -> B815_W {
B815_W { w: self }
}
#[doc = "Bit 16 - B816"]
#[inline(always)]
pub fn b816(&mut self) -> B816_W {
B816_W { w: self }
}
#[doc = "Bit 17 - B817"]
#[inline(always)]
pub fn b817(&mut self) -> B817_W {
B817_W { w: self }
}
#[doc = "Bit 18 - B818"]
#[inline(always)]
pub fn b818(&mut self) -> B818_W {
B818_W { w: self }
}
#[doc = "Bit 19 - B819"]
#[inline(always)]
pub fn b819(&mut self) -> B819_W {
B819_W { w: self }
}
#[doc = "Bit 20 - B820"]
#[inline(always)]
pub fn b820(&mut self) -> B820_W {
B820_W { w: self }
}
#[doc = "Bit 21 - B821"]
#[inline(always)]
pub fn b821(&mut self) -> B821_W {
B821_W { w: self }
}
#[doc = "Bit 22 - B822"]
#[inline(always)]
pub fn b822(&mut self) -> B822_W {
B822_W { w: self }
}
#[doc = "Bit 23 - B823"]
#[inline(always)]
pub fn b823(&mut self) -> B823_W {
B823_W { w: self }
}
#[doc = "Bit 24 - B824"]
#[inline(always)]
pub fn b824(&mut self) -> B824_W {
B824_W { w: self }
}
#[doc = "Bit 25 - B825"]
#[inline(always)]
pub fn b825(&mut self) -> B825_W {
B825_W { w: self }
}
#[doc = "Bit 26 - B826"]
#[inline(always)]
pub fn b826(&mut self) -> B826_W {
B826_W { w: self }
}
#[doc = "Bit 27 - B827"]
#[inline(always)]
pub fn b827(&mut self) -> B827_W {
B827_W { w: self }
}
#[doc = "Bit 28 - B828"]
#[inline(always)]
pub fn b828(&mut self) -> B828_W {
B828_W { w: self }
}
#[doc = "Bit 29 - B829"]
#[inline(always)]
pub fn b829(&mut self) -> B829_W {
B829_W { w: self }
}
#[doc = "Bit 30 - B830"]
#[inline(always)]
pub fn b830(&mut self) -> B830_W {
B830_W { w: self }
}
#[doc = "Bit 31 - B831"]
#[inline(always)]
pub fn b831(&mut self) -> B831_W {
B831_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 = "MPCBBx vector register\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 [mpcbb1_vctr25](index.html) module"]
pub struct MPCBB1_VCTR25_SPEC;
impl crate::RegisterSpec for MPCBB1_VCTR25_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [mpcbb1_vctr25::R](R) reader structure"]
impl crate::Readable for MPCBB1_VCTR25_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [mpcbb1_vctr25::W](W) writer structure"]
impl crate::Writable for MPCBB1_VCTR25_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets MPCBB1_VCTR25 to value 0xffff_ffff"]
impl crate::Resettable for MPCBB1_VCTR25_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0xffff_ffff
}
}