#[doc = r" Value read from the register"]
pub struct R {
bits: u32,
}
#[doc = r" Value to write to the register"]
pub struct W {
bits: u32,
}
impl super::INTENSET {
#[doc = r" Modifies the contents of the register"]
#[inline]
pub fn modify<F>(&self, f: F)
where
for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W,
{
let bits = self.register.get();
let r = R { bits: bits };
let mut w = W { bits: bits };
f(&r, &mut w);
self.register.set(w.bits);
}
#[doc = r" Reads the contents of the register"]
#[inline]
pub fn read(&self) -> R {
R {
bits: self.register.get(),
}
}
#[doc = r" Writes to the register"]
#[inline]
pub fn write<F>(&self, f: F)
where
F: FnOnce(&mut W) -> &mut W,
{
let mut w = W::reset_value();
f(&mut w);
self.register.set(w.bits);
}
#[doc = r" Writes the reset value to the register"]
#[inline]
pub fn reset(&self) {
self.write(|w| w)
}
}
#[doc = "Possible values of the field `REGION0WA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REGION0WAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl REGION0WAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
REGION0WAR::DISABLED => false,
REGION0WAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> REGION0WAR {
match value {
false => REGION0WAR::DISABLED,
true => REGION0WAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == REGION0WAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == REGION0WAR::ENABLED
}
}
#[doc = "Possible values of the field `REGION0RA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REGION0RAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl REGION0RAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
REGION0RAR::DISABLED => false,
REGION0RAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> REGION0RAR {
match value {
false => REGION0RAR::DISABLED,
true => REGION0RAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == REGION0RAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == REGION0RAR::ENABLED
}
}
#[doc = "Possible values of the field `REGION1WA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REGION1WAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl REGION1WAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
REGION1WAR::DISABLED => false,
REGION1WAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> REGION1WAR {
match value {
false => REGION1WAR::DISABLED,
true => REGION1WAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == REGION1WAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == REGION1WAR::ENABLED
}
}
#[doc = "Possible values of the field `REGION1RA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REGION1RAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl REGION1RAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
REGION1RAR::DISABLED => false,
REGION1RAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> REGION1RAR {
match value {
false => REGION1RAR::DISABLED,
true => REGION1RAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == REGION1RAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == REGION1RAR::ENABLED
}
}
#[doc = "Possible values of the field `REGION2WA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REGION2WAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl REGION2WAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
REGION2WAR::DISABLED => false,
REGION2WAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> REGION2WAR {
match value {
false => REGION2WAR::DISABLED,
true => REGION2WAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == REGION2WAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == REGION2WAR::ENABLED
}
}
#[doc = "Possible values of the field `REGION2RA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REGION2RAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl REGION2RAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
REGION2RAR::DISABLED => false,
REGION2RAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> REGION2RAR {
match value {
false => REGION2RAR::DISABLED,
true => REGION2RAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == REGION2RAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == REGION2RAR::ENABLED
}
}
#[doc = "Possible values of the field `REGION3WA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REGION3WAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl REGION3WAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
REGION3WAR::DISABLED => false,
REGION3WAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> REGION3WAR {
match value {
false => REGION3WAR::DISABLED,
true => REGION3WAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == REGION3WAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == REGION3WAR::ENABLED
}
}
#[doc = "Possible values of the field `REGION3RA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REGION3RAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl REGION3RAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
REGION3RAR::DISABLED => false,
REGION3RAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> REGION3RAR {
match value {
false => REGION3RAR::DISABLED,
true => REGION3RAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == REGION3RAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == REGION3RAR::ENABLED
}
}
#[doc = "Possible values of the field `PREGION0WA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PREGION0WAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl PREGION0WAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
PREGION0WAR::DISABLED => false,
PREGION0WAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> PREGION0WAR {
match value {
false => PREGION0WAR::DISABLED,
true => PREGION0WAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == PREGION0WAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == PREGION0WAR::ENABLED
}
}
#[doc = "Possible values of the field `PREGION0RA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PREGION0RAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl PREGION0RAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
PREGION0RAR::DISABLED => false,
PREGION0RAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> PREGION0RAR {
match value {
false => PREGION0RAR::DISABLED,
true => PREGION0RAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == PREGION0RAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == PREGION0RAR::ENABLED
}
}
#[doc = "Possible values of the field `PREGION1WA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PREGION1WAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl PREGION1WAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
PREGION1WAR::DISABLED => false,
PREGION1WAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> PREGION1WAR {
match value {
false => PREGION1WAR::DISABLED,
true => PREGION1WAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == PREGION1WAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == PREGION1WAR::ENABLED
}
}
#[doc = "Possible values of the field `PREGION1RA`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PREGION1RAR {
#[doc = "Read: Disabled"]
DISABLED,
#[doc = "Read: Enabled"]
ENABLED,
}
impl PREGION1RAR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
PREGION1RAR::DISABLED => false,
PREGION1RAR::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> PREGION1RAR {
match value {
false => PREGION1RAR::DISABLED,
true => PREGION1RAR::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == PREGION1RAR::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == PREGION1RAR::ENABLED
}
}
#[doc = "Values that can be written to the field `REGION0WA`"]
pub enum REGION0WAW {
#[doc = "Enable"]
SET,
}
impl REGION0WAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
REGION0WAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _REGION0WAW<'a> {
w: &'a mut W,
}
impl<'a> _REGION0WAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: REGION0WAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(REGION0WAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 0;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `REGION0RA`"]
pub enum REGION0RAW {
#[doc = "Enable"]
SET,
}
impl REGION0RAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
REGION0RAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _REGION0RAW<'a> {
w: &'a mut W,
}
impl<'a> _REGION0RAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: REGION0RAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(REGION0RAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 1;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `REGION1WA`"]
pub enum REGION1WAW {
#[doc = "Enable"]
SET,
}
impl REGION1WAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
REGION1WAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _REGION1WAW<'a> {
w: &'a mut W,
}
impl<'a> _REGION1WAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: REGION1WAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(REGION1WAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 2;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `REGION1RA`"]
pub enum REGION1RAW {
#[doc = "Enable"]
SET,
}
impl REGION1RAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
REGION1RAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _REGION1RAW<'a> {
w: &'a mut W,
}
impl<'a> _REGION1RAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: REGION1RAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(REGION1RAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 3;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `REGION2WA`"]
pub enum REGION2WAW {
#[doc = "Enable"]
SET,
}
impl REGION2WAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
REGION2WAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _REGION2WAW<'a> {
w: &'a mut W,
}
impl<'a> _REGION2WAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: REGION2WAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(REGION2WAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 4;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `REGION2RA`"]
pub enum REGION2RAW {
#[doc = "Enable"]
SET,
}
impl REGION2RAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
REGION2RAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _REGION2RAW<'a> {
w: &'a mut W,
}
impl<'a> _REGION2RAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: REGION2RAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(REGION2RAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 5;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `REGION3WA`"]
pub enum REGION3WAW {
#[doc = "Enable"]
SET,
}
impl REGION3WAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
REGION3WAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _REGION3WAW<'a> {
w: &'a mut W,
}
impl<'a> _REGION3WAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: REGION3WAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(REGION3WAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 6;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `REGION3RA`"]
pub enum REGION3RAW {
#[doc = "Enable"]
SET,
}
impl REGION3RAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
REGION3RAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _REGION3RAW<'a> {
w: &'a mut W,
}
impl<'a> _REGION3RAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: REGION3RAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(REGION3RAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 7;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `PREGION0WA`"]
pub enum PREGION0WAW {
#[doc = "Enable"]
SET,
}
impl PREGION0WAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
PREGION0WAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _PREGION0WAW<'a> {
w: &'a mut W,
}
impl<'a> _PREGION0WAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: PREGION0WAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(PREGION0WAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 24;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `PREGION0RA`"]
pub enum PREGION0RAW {
#[doc = "Enable"]
SET,
}
impl PREGION0RAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
PREGION0RAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _PREGION0RAW<'a> {
w: &'a mut W,
}
impl<'a> _PREGION0RAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: PREGION0RAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(PREGION0RAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 25;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `PREGION1WA`"]
pub enum PREGION1WAW {
#[doc = "Enable"]
SET,
}
impl PREGION1WAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
PREGION1WAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _PREGION1WAW<'a> {
w: &'a mut W,
}
impl<'a> _PREGION1WAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: PREGION1WAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(PREGION1WAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 26;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `PREGION1RA`"]
pub enum PREGION1RAW {
#[doc = "Enable"]
SET,
}
impl PREGION1RAW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
PREGION1RAW::SET => true,
}
}
}
#[doc = r" Proxy"]
pub struct _PREGION1RAW<'a> {
w: &'a mut W,
}
impl<'a> _PREGION1RAW<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: PREGION1RAW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Enable"]
#[inline]
pub fn set(self) -> &'a mut W {
self.variant(PREGION1RAW::SET)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 27;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bit 0 - Write '1' to enable interrupt for REGION\\[0\\].WA event"]
#[inline]
pub fn region0wa(&self) -> REGION0WAR {
REGION0WAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 0;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 1 - Write '1' to enable interrupt for REGION\\[0\\].RA event"]
#[inline]
pub fn region0ra(&self) -> REGION0RAR {
REGION0RAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 1;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 2 - Write '1' to enable interrupt for REGION\\[1\\].WA event"]
#[inline]
pub fn region1wa(&self) -> REGION1WAR {
REGION1WAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 2;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 3 - Write '1' to enable interrupt for REGION\\[1\\].RA event"]
#[inline]
pub fn region1ra(&self) -> REGION1RAR {
REGION1RAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 3;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 4 - Write '1' to enable interrupt for REGION\\[2\\].WA event"]
#[inline]
pub fn region2wa(&self) -> REGION2WAR {
REGION2WAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 4;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 5 - Write '1' to enable interrupt for REGION\\[2\\].RA event"]
#[inline]
pub fn region2ra(&self) -> REGION2RAR {
REGION2RAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 5;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 6 - Write '1' to enable interrupt for REGION\\[3\\].WA event"]
#[inline]
pub fn region3wa(&self) -> REGION3WAR {
REGION3WAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 6;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 7 - Write '1' to enable interrupt for REGION\\[3\\].RA event"]
#[inline]
pub fn region3ra(&self) -> REGION3RAR {
REGION3RAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 7;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 24 - Write '1' to enable interrupt for PREGION\\[0\\].WA event"]
#[inline]
pub fn pregion0wa(&self) -> PREGION0WAR {
PREGION0WAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 24;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 25 - Write '1' to enable interrupt for PREGION\\[0\\].RA event"]
#[inline]
pub fn pregion0ra(&self) -> PREGION0RAR {
PREGION0RAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 25;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 26 - Write '1' to enable interrupt for PREGION\\[1\\].WA event"]
#[inline]
pub fn pregion1wa(&self) -> PREGION1WAR {
PREGION1WAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 26;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 27 - Write '1' to enable interrupt for PREGION\\[1\\].RA event"]
#[inline]
pub fn pregion1ra(&self) -> PREGION1RAR {
PREGION1RAR::_from({
const MASK: bool = true;
const OFFSET: u8 = 27;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
}
impl W {
#[doc = r" Reset value of the register"]
#[inline]
pub fn reset_value() -> W {
W { bits: 0 }
}
#[doc = r" Writes raw bits to the register"]
#[inline]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
#[doc = "Bit 0 - Write '1' to enable interrupt for REGION\\[0\\].WA event"]
#[inline]
pub fn region0wa(&mut self) -> _REGION0WAW {
_REGION0WAW { w: self }
}
#[doc = "Bit 1 - Write '1' to enable interrupt for REGION\\[0\\].RA event"]
#[inline]
pub fn region0ra(&mut self) -> _REGION0RAW {
_REGION0RAW { w: self }
}
#[doc = "Bit 2 - Write '1' to enable interrupt for REGION\\[1\\].WA event"]
#[inline]
pub fn region1wa(&mut self) -> _REGION1WAW {
_REGION1WAW { w: self }
}
#[doc = "Bit 3 - Write '1' to enable interrupt for REGION\\[1\\].RA event"]
#[inline]
pub fn region1ra(&mut self) -> _REGION1RAW {
_REGION1RAW { w: self }
}
#[doc = "Bit 4 - Write '1' to enable interrupt for REGION\\[2\\].WA event"]
#[inline]
pub fn region2wa(&mut self) -> _REGION2WAW {
_REGION2WAW { w: self }
}
#[doc = "Bit 5 - Write '1' to enable interrupt for REGION\\[2\\].RA event"]
#[inline]
pub fn region2ra(&mut self) -> _REGION2RAW {
_REGION2RAW { w: self }
}
#[doc = "Bit 6 - Write '1' to enable interrupt for REGION\\[3\\].WA event"]
#[inline]
pub fn region3wa(&mut self) -> _REGION3WAW {
_REGION3WAW { w: self }
}
#[doc = "Bit 7 - Write '1' to enable interrupt for REGION\\[3\\].RA event"]
#[inline]
pub fn region3ra(&mut self) -> _REGION3RAW {
_REGION3RAW { w: self }
}
#[doc = "Bit 24 - Write '1' to enable interrupt for PREGION\\[0\\].WA event"]
#[inline]
pub fn pregion0wa(&mut self) -> _PREGION0WAW {
_PREGION0WAW { w: self }
}
#[doc = "Bit 25 - Write '1' to enable interrupt for PREGION\\[0\\].RA event"]
#[inline]
pub fn pregion0ra(&mut self) -> _PREGION0RAW {
_PREGION0RAW { w: self }
}
#[doc = "Bit 26 - Write '1' to enable interrupt for PREGION\\[1\\].WA event"]
#[inline]
pub fn pregion1wa(&mut self) -> _PREGION1WAW {
_PREGION1WAW { w: self }
}
#[doc = "Bit 27 - Write '1' to enable interrupt for PREGION\\[1\\].RA event"]
#[inline]
pub fn pregion1ra(&mut self) -> _PREGION1RAW {
_PREGION1RAW { w: self }
}
}