#[doc = "Reader of register LOCKBIT_WORD0"]
pub type R = crate::R<u32, super::LOCKBIT_WORD0>;
#[doc = "Writer for register LOCKBIT_WORD0"]
pub type W = crate::W<u32, super::LOCKBIT_WORD0>;
#[doc = "Register LOCKBIT_WORD0 `reset()`'s with value 0"]
impl crate::ResetValue for super::LOCKBIT_WORD0 {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Reader of field `LOCK_REGION_0`"]
pub type LOCK_REGION_0_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_0`"]
pub struct LOCK_REGION_0_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_0_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 = "Reader of field `LOCK_REGION_1`"]
pub type LOCK_REGION_1_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_1`"]
pub struct LOCK_REGION_1_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_1_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 = "Reader of field `LOCK_REGION_2`"]
pub type LOCK_REGION_2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_2`"]
pub struct LOCK_REGION_2_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_2_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 = "Reader of field `LOCK_REGION_3`"]
pub type LOCK_REGION_3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_3`"]
pub struct LOCK_REGION_3_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_3_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 = "Reader of field `LOCK_REGION_4`"]
pub type LOCK_REGION_4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_4`"]
pub struct LOCK_REGION_4_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_4_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 = "Reader of field `LOCK_REGION_5`"]
pub type LOCK_REGION_5_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_5`"]
pub struct LOCK_REGION_5_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_5_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 = "Reader of field `LOCK_REGION_6`"]
pub type LOCK_REGION_6_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_6`"]
pub struct LOCK_REGION_6_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_6_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 = "Reader of field `LOCK_REGION_7`"]
pub type LOCK_REGION_7_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_7`"]
pub struct LOCK_REGION_7_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_7_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 = "Reader of field `LOCK_REGION_8`"]
pub type LOCK_REGION_8_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_8`"]
pub struct LOCK_REGION_8_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_8_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 = "Reader of field `LOCK_REGION_9`"]
pub type LOCK_REGION_9_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_9`"]
pub struct LOCK_REGION_9_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_9_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 = "Reader of field `LOCK_REGION_10`"]
pub type LOCK_REGION_10_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_10`"]
pub struct LOCK_REGION_10_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_10_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 = "Reader of field `LOCK_REGION_11`"]
pub type LOCK_REGION_11_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_11`"]
pub struct LOCK_REGION_11_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_11_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 = "Reader of field `LOCK_REGION_12`"]
pub type LOCK_REGION_12_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_12`"]
pub struct LOCK_REGION_12_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_12_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 = "Reader of field `LOCK_REGION_13`"]
pub type LOCK_REGION_13_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_13`"]
pub struct LOCK_REGION_13_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_13_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 = "Reader of field `LOCK_REGION_14`"]
pub type LOCK_REGION_14_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_14`"]
pub struct LOCK_REGION_14_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_14_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 = "Reader of field `LOCK_REGION_15`"]
pub type LOCK_REGION_15_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_15`"]
pub struct LOCK_REGION_15_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_15_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 = "Reader of field `LOCK_REGION_16`"]
pub type LOCK_REGION_16_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_16`"]
pub struct LOCK_REGION_16_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_16_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 = "Reader of field `LOCK_REGION_17`"]
pub type LOCK_REGION_17_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_17`"]
pub struct LOCK_REGION_17_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_17_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 = "Reader of field `LOCK_REGION_18`"]
pub type LOCK_REGION_18_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_18`"]
pub struct LOCK_REGION_18_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_18_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 = "Reader of field `LOCK_REGION_19`"]
pub type LOCK_REGION_19_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_19`"]
pub struct LOCK_REGION_19_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_19_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 = "Reader of field `LOCK_REGION_20`"]
pub type LOCK_REGION_20_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_20`"]
pub struct LOCK_REGION_20_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_20_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 = "Reader of field `LOCK_REGION_21`"]
pub type LOCK_REGION_21_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_21`"]
pub struct LOCK_REGION_21_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_21_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 = "Reader of field `LOCK_REGION_22`"]
pub type LOCK_REGION_22_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_22`"]
pub struct LOCK_REGION_22_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_22_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 = "Reader of field `LOCK_REGION_23`"]
pub type LOCK_REGION_23_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_23`"]
pub struct LOCK_REGION_23_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_23_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 = "Reader of field `LOCK_REGION_24`"]
pub type LOCK_REGION_24_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_24`"]
pub struct LOCK_REGION_24_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_24_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 = "Reader of field `LOCK_REGION_25`"]
pub type LOCK_REGION_25_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_25`"]
pub struct LOCK_REGION_25_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_25_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 = "Reader of field `LOCK_REGION_26`"]
pub type LOCK_REGION_26_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_26`"]
pub struct LOCK_REGION_26_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_26_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 = "Reader of field `LOCK_REGION_27`"]
pub type LOCK_REGION_27_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_27`"]
pub struct LOCK_REGION_27_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_27_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 = "Reader of field `LOCK_REGION_28`"]
pub type LOCK_REGION_28_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_28`"]
pub struct LOCK_REGION_28_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_28_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 = "Reader of field `LOCK_REGION_29`"]
pub type LOCK_REGION_29_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_29`"]
pub struct LOCK_REGION_29_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_29_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 = "Reader of field `LOCK_REGION_30`"]
pub type LOCK_REGION_30_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_30`"]
pub struct LOCK_REGION_30_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_30_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 = "Reader of field `LOCK_REGION_31`"]
pub type LOCK_REGION_31_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `LOCK_REGION_31`"]
pub struct LOCK_REGION_31_W<'a> {
w: &'a mut W,
}
impl<'a> LOCK_REGION_31_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 - Lock Region 0"]
#[inline(always)]
pub fn lock_region_0(&self) -> LOCK_REGION_0_R {
LOCK_REGION_0_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - Lock Region 1"]
#[inline(always)]
pub fn lock_region_1(&self) -> LOCK_REGION_1_R {
LOCK_REGION_1_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - Lock Region 2"]
#[inline(always)]
pub fn lock_region_2(&self) -> LOCK_REGION_2_R {
LOCK_REGION_2_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 3 - Lock Region 3"]
#[inline(always)]
pub fn lock_region_3(&self) -> LOCK_REGION_3_R {
LOCK_REGION_3_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 4 - Lock Region 4"]
#[inline(always)]
pub fn lock_region_4(&self) -> LOCK_REGION_4_R {
LOCK_REGION_4_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 5 - Lock Region 5"]
#[inline(always)]
pub fn lock_region_5(&self) -> LOCK_REGION_5_R {
LOCK_REGION_5_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 6 - Lock Region 6"]
#[inline(always)]
pub fn lock_region_6(&self) -> LOCK_REGION_6_R {
LOCK_REGION_6_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 7 - Lock Region 7"]
#[inline(always)]
pub fn lock_region_7(&self) -> LOCK_REGION_7_R {
LOCK_REGION_7_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 8 - Lock Region 8"]
#[inline(always)]
pub fn lock_region_8(&self) -> LOCK_REGION_8_R {
LOCK_REGION_8_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 9 - Lock Region 9"]
#[inline(always)]
pub fn lock_region_9(&self) -> LOCK_REGION_9_R {
LOCK_REGION_9_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 10 - Lock Region 10"]
#[inline(always)]
pub fn lock_region_10(&self) -> LOCK_REGION_10_R {
LOCK_REGION_10_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 11 - Lock Region 11"]
#[inline(always)]
pub fn lock_region_11(&self) -> LOCK_REGION_11_R {
LOCK_REGION_11_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 12 - Lock Region 12"]
#[inline(always)]
pub fn lock_region_12(&self) -> LOCK_REGION_12_R {
LOCK_REGION_12_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 13 - Lock Region 13"]
#[inline(always)]
pub fn lock_region_13(&self) -> LOCK_REGION_13_R {
LOCK_REGION_13_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 14 - Lock Region 14"]
#[inline(always)]
pub fn lock_region_14(&self) -> LOCK_REGION_14_R {
LOCK_REGION_14_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 15 - Lock Region 15"]
#[inline(always)]
pub fn lock_region_15(&self) -> LOCK_REGION_15_R {
LOCK_REGION_15_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 16 - Lock Region 16"]
#[inline(always)]
pub fn lock_region_16(&self) -> LOCK_REGION_16_R {
LOCK_REGION_16_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 17 - Lock Region 17"]
#[inline(always)]
pub fn lock_region_17(&self) -> LOCK_REGION_17_R {
LOCK_REGION_17_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 18 - Lock Region 18"]
#[inline(always)]
pub fn lock_region_18(&self) -> LOCK_REGION_18_R {
LOCK_REGION_18_R::new(((self.bits >> 18) & 0x01) != 0)
}
#[doc = "Bit 19 - Lock Region 19"]
#[inline(always)]
pub fn lock_region_19(&self) -> LOCK_REGION_19_R {
LOCK_REGION_19_R::new(((self.bits >> 19) & 0x01) != 0)
}
#[doc = "Bit 20 - Lock Region 20"]
#[inline(always)]
pub fn lock_region_20(&self) -> LOCK_REGION_20_R {
LOCK_REGION_20_R::new(((self.bits >> 20) & 0x01) != 0)
}
#[doc = "Bit 21 - Lock Region 21"]
#[inline(always)]
pub fn lock_region_21(&self) -> LOCK_REGION_21_R {
LOCK_REGION_21_R::new(((self.bits >> 21) & 0x01) != 0)
}
#[doc = "Bit 22 - Lock Region 22"]
#[inline(always)]
pub fn lock_region_22(&self) -> LOCK_REGION_22_R {
LOCK_REGION_22_R::new(((self.bits >> 22) & 0x01) != 0)
}
#[doc = "Bit 23 - Lock Region 23"]
#[inline(always)]
pub fn lock_region_23(&self) -> LOCK_REGION_23_R {
LOCK_REGION_23_R::new(((self.bits >> 23) & 0x01) != 0)
}
#[doc = "Bit 24 - Lock Region 24"]
#[inline(always)]
pub fn lock_region_24(&self) -> LOCK_REGION_24_R {
LOCK_REGION_24_R::new(((self.bits >> 24) & 0x01) != 0)
}
#[doc = "Bit 25 - Lock Region 25"]
#[inline(always)]
pub fn lock_region_25(&self) -> LOCK_REGION_25_R {
LOCK_REGION_25_R::new(((self.bits >> 25) & 0x01) != 0)
}
#[doc = "Bit 26 - Lock Region 26"]
#[inline(always)]
pub fn lock_region_26(&self) -> LOCK_REGION_26_R {
LOCK_REGION_26_R::new(((self.bits >> 26) & 0x01) != 0)
}
#[doc = "Bit 27 - Lock Region 27"]
#[inline(always)]
pub fn lock_region_27(&self) -> LOCK_REGION_27_R {
LOCK_REGION_27_R::new(((self.bits >> 27) & 0x01) != 0)
}
#[doc = "Bit 28 - Lock Region 28"]
#[inline(always)]
pub fn lock_region_28(&self) -> LOCK_REGION_28_R {
LOCK_REGION_28_R::new(((self.bits >> 28) & 0x01) != 0)
}
#[doc = "Bit 29 - Lock Region 29"]
#[inline(always)]
pub fn lock_region_29(&self) -> LOCK_REGION_29_R {
LOCK_REGION_29_R::new(((self.bits >> 29) & 0x01) != 0)
}
#[doc = "Bit 30 - Lock Region 30"]
#[inline(always)]
pub fn lock_region_30(&self) -> LOCK_REGION_30_R {
LOCK_REGION_30_R::new(((self.bits >> 30) & 0x01) != 0)
}
#[doc = "Bit 31 - Lock Region 31"]
#[inline(always)]
pub fn lock_region_31(&self) -> LOCK_REGION_31_R {
LOCK_REGION_31_R::new(((self.bits >> 31) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - Lock Region 0"]
#[inline(always)]
pub fn lock_region_0(&mut self) -> LOCK_REGION_0_W {
LOCK_REGION_0_W { w: self }
}
#[doc = "Bit 1 - Lock Region 1"]
#[inline(always)]
pub fn lock_region_1(&mut self) -> LOCK_REGION_1_W {
LOCK_REGION_1_W { w: self }
}
#[doc = "Bit 2 - Lock Region 2"]
#[inline(always)]
pub fn lock_region_2(&mut self) -> LOCK_REGION_2_W {
LOCK_REGION_2_W { w: self }
}
#[doc = "Bit 3 - Lock Region 3"]
#[inline(always)]
pub fn lock_region_3(&mut self) -> LOCK_REGION_3_W {
LOCK_REGION_3_W { w: self }
}
#[doc = "Bit 4 - Lock Region 4"]
#[inline(always)]
pub fn lock_region_4(&mut self) -> LOCK_REGION_4_W {
LOCK_REGION_4_W { w: self }
}
#[doc = "Bit 5 - Lock Region 5"]
#[inline(always)]
pub fn lock_region_5(&mut self) -> LOCK_REGION_5_W {
LOCK_REGION_5_W { w: self }
}
#[doc = "Bit 6 - Lock Region 6"]
#[inline(always)]
pub fn lock_region_6(&mut self) -> LOCK_REGION_6_W {
LOCK_REGION_6_W { w: self }
}
#[doc = "Bit 7 - Lock Region 7"]
#[inline(always)]
pub fn lock_region_7(&mut self) -> LOCK_REGION_7_W {
LOCK_REGION_7_W { w: self }
}
#[doc = "Bit 8 - Lock Region 8"]
#[inline(always)]
pub fn lock_region_8(&mut self) -> LOCK_REGION_8_W {
LOCK_REGION_8_W { w: self }
}
#[doc = "Bit 9 - Lock Region 9"]
#[inline(always)]
pub fn lock_region_9(&mut self) -> LOCK_REGION_9_W {
LOCK_REGION_9_W { w: self }
}
#[doc = "Bit 10 - Lock Region 10"]
#[inline(always)]
pub fn lock_region_10(&mut self) -> LOCK_REGION_10_W {
LOCK_REGION_10_W { w: self }
}
#[doc = "Bit 11 - Lock Region 11"]
#[inline(always)]
pub fn lock_region_11(&mut self) -> LOCK_REGION_11_W {
LOCK_REGION_11_W { w: self }
}
#[doc = "Bit 12 - Lock Region 12"]
#[inline(always)]
pub fn lock_region_12(&mut self) -> LOCK_REGION_12_W {
LOCK_REGION_12_W { w: self }
}
#[doc = "Bit 13 - Lock Region 13"]
#[inline(always)]
pub fn lock_region_13(&mut self) -> LOCK_REGION_13_W {
LOCK_REGION_13_W { w: self }
}
#[doc = "Bit 14 - Lock Region 14"]
#[inline(always)]
pub fn lock_region_14(&mut self) -> LOCK_REGION_14_W {
LOCK_REGION_14_W { w: self }
}
#[doc = "Bit 15 - Lock Region 15"]
#[inline(always)]
pub fn lock_region_15(&mut self) -> LOCK_REGION_15_W {
LOCK_REGION_15_W { w: self }
}
#[doc = "Bit 16 - Lock Region 16"]
#[inline(always)]
pub fn lock_region_16(&mut self) -> LOCK_REGION_16_W {
LOCK_REGION_16_W { w: self }
}
#[doc = "Bit 17 - Lock Region 17"]
#[inline(always)]
pub fn lock_region_17(&mut self) -> LOCK_REGION_17_W {
LOCK_REGION_17_W { w: self }
}
#[doc = "Bit 18 - Lock Region 18"]
#[inline(always)]
pub fn lock_region_18(&mut self) -> LOCK_REGION_18_W {
LOCK_REGION_18_W { w: self }
}
#[doc = "Bit 19 - Lock Region 19"]
#[inline(always)]
pub fn lock_region_19(&mut self) -> LOCK_REGION_19_W {
LOCK_REGION_19_W { w: self }
}
#[doc = "Bit 20 - Lock Region 20"]
#[inline(always)]
pub fn lock_region_20(&mut self) -> LOCK_REGION_20_W {
LOCK_REGION_20_W { w: self }
}
#[doc = "Bit 21 - Lock Region 21"]
#[inline(always)]
pub fn lock_region_21(&mut self) -> LOCK_REGION_21_W {
LOCK_REGION_21_W { w: self }
}
#[doc = "Bit 22 - Lock Region 22"]
#[inline(always)]
pub fn lock_region_22(&mut self) -> LOCK_REGION_22_W {
LOCK_REGION_22_W { w: self }
}
#[doc = "Bit 23 - Lock Region 23"]
#[inline(always)]
pub fn lock_region_23(&mut self) -> LOCK_REGION_23_W {
LOCK_REGION_23_W { w: self }
}
#[doc = "Bit 24 - Lock Region 24"]
#[inline(always)]
pub fn lock_region_24(&mut self) -> LOCK_REGION_24_W {
LOCK_REGION_24_W { w: self }
}
#[doc = "Bit 25 - Lock Region 25"]
#[inline(always)]
pub fn lock_region_25(&mut self) -> LOCK_REGION_25_W {
LOCK_REGION_25_W { w: self }
}
#[doc = "Bit 26 - Lock Region 26"]
#[inline(always)]
pub fn lock_region_26(&mut self) -> LOCK_REGION_26_W {
LOCK_REGION_26_W { w: self }
}
#[doc = "Bit 27 - Lock Region 27"]
#[inline(always)]
pub fn lock_region_27(&mut self) -> LOCK_REGION_27_W {
LOCK_REGION_27_W { w: self }
}
#[doc = "Bit 28 - Lock Region 28"]
#[inline(always)]
pub fn lock_region_28(&mut self) -> LOCK_REGION_28_W {
LOCK_REGION_28_W { w: self }
}
#[doc = "Bit 29 - Lock Region 29"]
#[inline(always)]
pub fn lock_region_29(&mut self) -> LOCK_REGION_29_W {
LOCK_REGION_29_W { w: self }
}
#[doc = "Bit 30 - Lock Region 30"]
#[inline(always)]
pub fn lock_region_30(&mut self) -> LOCK_REGION_30_W {
LOCK_REGION_30_W { w: self }
}
#[doc = "Bit 31 - Lock Region 31"]
#[inline(always)]
pub fn lock_region_31(&mut self) -> LOCK_REGION_31_W {
LOCK_REGION_31_W { w: self }
}
}