#[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::FA1R {
#[doc = r"Modifies the contents of the register"]
#[inline(always)]
pub fn modify<F>(&self, f: F)
where
for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W,
{
let bits = self.register.get();
self.register.set(f(&R { bits }, &mut W { bits }).bits);
}
#[doc = r"Reads the contents of the register"]
#[inline(always)]
pub fn read(&self) -> R {
R {
bits: self.register.get(),
}
}
#[doc = r"Writes to the register"]
#[inline(always)]
pub fn write<F>(&self, f: F)
where
F: FnOnce(&mut W) -> &mut W,
{
self.register.set(
f(&mut W {
bits: Self::reset_value(),
})
.bits,
);
}
#[doc = r"Reset value of the register"]
#[inline(always)]
pub const fn reset_value() -> u32 {
0
}
#[doc = r"Writes the reset value to the register"]
#[inline(always)]
pub fn reset(&self) {
self.register.set(Self::reset_value())
}
}
#[doc = r"Value of the field"]
pub struct FACT0R {
bits: bool,
}
impl FACT0R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT0W<'a> {
w: &'a mut W,
}
impl<'a> _FACT0W<'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 &= !(0x01 << 0);
self.w.bits |= ((value as u32) & 0x01) << 0;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT1R {
bits: bool,
}
impl FACT1R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT1W<'a> {
w: &'a mut W,
}
impl<'a> _FACT1W<'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 &= !(0x01 << 1);
self.w.bits |= ((value as u32) & 0x01) << 1;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT2R {
bits: bool,
}
impl FACT2R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT2W<'a> {
w: &'a mut W,
}
impl<'a> _FACT2W<'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 &= !(0x01 << 2);
self.w.bits |= ((value as u32) & 0x01) << 2;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT3R {
bits: bool,
}
impl FACT3R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT3W<'a> {
w: &'a mut W,
}
impl<'a> _FACT3W<'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 &= !(0x01 << 3);
self.w.bits |= ((value as u32) & 0x01) << 3;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT4R {
bits: bool,
}
impl FACT4R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT4W<'a> {
w: &'a mut W,
}
impl<'a> _FACT4W<'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 &= !(0x01 << 4);
self.w.bits |= ((value as u32) & 0x01) << 4;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT5R {
bits: bool,
}
impl FACT5R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT5W<'a> {
w: &'a mut W,
}
impl<'a> _FACT5W<'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 &= !(0x01 << 5);
self.w.bits |= ((value as u32) & 0x01) << 5;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT6R {
bits: bool,
}
impl FACT6R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT6W<'a> {
w: &'a mut W,
}
impl<'a> _FACT6W<'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 &= !(0x01 << 6);
self.w.bits |= ((value as u32) & 0x01) << 6;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT7R {
bits: bool,
}
impl FACT7R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT7W<'a> {
w: &'a mut W,
}
impl<'a> _FACT7W<'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 &= !(0x01 << 7);
self.w.bits |= ((value as u32) & 0x01) << 7;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT8R {
bits: bool,
}
impl FACT8R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT8W<'a> {
w: &'a mut W,
}
impl<'a> _FACT8W<'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 &= !(0x01 << 8);
self.w.bits |= ((value as u32) & 0x01) << 8;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT9R {
bits: bool,
}
impl FACT9R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT9W<'a> {
w: &'a mut W,
}
impl<'a> _FACT9W<'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 &= !(0x01 << 9);
self.w.bits |= ((value as u32) & 0x01) << 9;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT10R {
bits: bool,
}
impl FACT10R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT10W<'a> {
w: &'a mut W,
}
impl<'a> _FACT10W<'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 &= !(0x01 << 10);
self.w.bits |= ((value as u32) & 0x01) << 10;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT11R {
bits: bool,
}
impl FACT11R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT11W<'a> {
w: &'a mut W,
}
impl<'a> _FACT11W<'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 &= !(0x01 << 11);
self.w.bits |= ((value as u32) & 0x01) << 11;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT12R {
bits: bool,
}
impl FACT12R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT12W<'a> {
w: &'a mut W,
}
impl<'a> _FACT12W<'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 &= !(0x01 << 12);
self.w.bits |= ((value as u32) & 0x01) << 12;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT13R {
bits: bool,
}
impl FACT13R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT13W<'a> {
w: &'a mut W,
}
impl<'a> _FACT13W<'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 &= !(0x01 << 13);
self.w.bits |= ((value as u32) & 0x01) << 13;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT14R {
bits: bool,
}
impl FACT14R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT14W<'a> {
w: &'a mut W,
}
impl<'a> _FACT14W<'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 &= !(0x01 << 14);
self.w.bits |= ((value as u32) & 0x01) << 14;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT15R {
bits: bool,
}
impl FACT15R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT15W<'a> {
w: &'a mut W,
}
impl<'a> _FACT15W<'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 &= !(0x01 << 15);
self.w.bits |= ((value as u32) & 0x01) << 15;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT16R {
bits: bool,
}
impl FACT16R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT16W<'a> {
w: &'a mut W,
}
impl<'a> _FACT16W<'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 &= !(0x01 << 16);
self.w.bits |= ((value as u32) & 0x01) << 16;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT17R {
bits: bool,
}
impl FACT17R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT17W<'a> {
w: &'a mut W,
}
impl<'a> _FACT17W<'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 &= !(0x01 << 17);
self.w.bits |= ((value as u32) & 0x01) << 17;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT18R {
bits: bool,
}
impl FACT18R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT18W<'a> {
w: &'a mut W,
}
impl<'a> _FACT18W<'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 &= !(0x01 << 18);
self.w.bits |= ((value as u32) & 0x01) << 18;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT19R {
bits: bool,
}
impl FACT19R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT19W<'a> {
w: &'a mut W,
}
impl<'a> _FACT19W<'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 &= !(0x01 << 19);
self.w.bits |= ((value as u32) & 0x01) << 19;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT20R {
bits: bool,
}
impl FACT20R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT20W<'a> {
w: &'a mut W,
}
impl<'a> _FACT20W<'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 &= !(0x01 << 20);
self.w.bits |= ((value as u32) & 0x01) << 20;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT21R {
bits: bool,
}
impl FACT21R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT21W<'a> {
w: &'a mut W,
}
impl<'a> _FACT21W<'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 &= !(0x01 << 21);
self.w.bits |= ((value as u32) & 0x01) << 21;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT22R {
bits: bool,
}
impl FACT22R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT22W<'a> {
w: &'a mut W,
}
impl<'a> _FACT22W<'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 &= !(0x01 << 22);
self.w.bits |= ((value as u32) & 0x01) << 22;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT23R {
bits: bool,
}
impl FACT23R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT23W<'a> {
w: &'a mut W,
}
impl<'a> _FACT23W<'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 &= !(0x01 << 23);
self.w.bits |= ((value as u32) & 0x01) << 23;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT24R {
bits: bool,
}
impl FACT24R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT24W<'a> {
w: &'a mut W,
}
impl<'a> _FACT24W<'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 &= !(0x01 << 24);
self.w.bits |= ((value as u32) & 0x01) << 24;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT25R {
bits: bool,
}
impl FACT25R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT25W<'a> {
w: &'a mut W,
}
impl<'a> _FACT25W<'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 &= !(0x01 << 25);
self.w.bits |= ((value as u32) & 0x01) << 25;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT26R {
bits: bool,
}
impl FACT26R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT26W<'a> {
w: &'a mut W,
}
impl<'a> _FACT26W<'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 &= !(0x01 << 26);
self.w.bits |= ((value as u32) & 0x01) << 26;
self.w
}
}
#[doc = r"Value of the field"]
pub struct FACT27R {
bits: bool,
}
impl FACT27R {
#[doc = r"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
self.bits
}
#[doc = r"Returns `true` if the bit is clear (0)"]
#[inline(always)]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r"Returns `true` if the bit is set (1)"]
#[inline(always)]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
}
#[doc = r"Proxy"]
pub struct _FACT27W<'a> {
w: &'a mut W,
}
impl<'a> _FACT27W<'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 &= !(0x01 << 27);
self.w.bits |= ((value as u32) & 0x01) << 27;
self.w
}
}
impl R {
#[doc = r"Value of the register as raw bits"]
#[inline(always)]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bit 0 - Filter active"]
#[inline(always)]
pub fn fact0(&self) -> FACT0R {
let bits = ((self.bits >> 0) & 0x01) != 0;
FACT0R { bits }
}
#[doc = "Bit 1 - Filter active"]
#[inline(always)]
pub fn fact1(&self) -> FACT1R {
let bits = ((self.bits >> 1) & 0x01) != 0;
FACT1R { bits }
}
#[doc = "Bit 2 - Filter active"]
#[inline(always)]
pub fn fact2(&self) -> FACT2R {
let bits = ((self.bits >> 2) & 0x01) != 0;
FACT2R { bits }
}
#[doc = "Bit 3 - Filter active"]
#[inline(always)]
pub fn fact3(&self) -> FACT3R {
let bits = ((self.bits >> 3) & 0x01) != 0;
FACT3R { bits }
}
#[doc = "Bit 4 - Filter active"]
#[inline(always)]
pub fn fact4(&self) -> FACT4R {
let bits = ((self.bits >> 4) & 0x01) != 0;
FACT4R { bits }
}
#[doc = "Bit 5 - Filter active"]
#[inline(always)]
pub fn fact5(&self) -> FACT5R {
let bits = ((self.bits >> 5) & 0x01) != 0;
FACT5R { bits }
}
#[doc = "Bit 6 - Filter active"]
#[inline(always)]
pub fn fact6(&self) -> FACT6R {
let bits = ((self.bits >> 6) & 0x01) != 0;
FACT6R { bits }
}
#[doc = "Bit 7 - Filter active"]
#[inline(always)]
pub fn fact7(&self) -> FACT7R {
let bits = ((self.bits >> 7) & 0x01) != 0;
FACT7R { bits }
}
#[doc = "Bit 8 - Filter active"]
#[inline(always)]
pub fn fact8(&self) -> FACT8R {
let bits = ((self.bits >> 8) & 0x01) != 0;
FACT8R { bits }
}
#[doc = "Bit 9 - Filter active"]
#[inline(always)]
pub fn fact9(&self) -> FACT9R {
let bits = ((self.bits >> 9) & 0x01) != 0;
FACT9R { bits }
}
#[doc = "Bit 10 - Filter active"]
#[inline(always)]
pub fn fact10(&self) -> FACT10R {
let bits = ((self.bits >> 10) & 0x01) != 0;
FACT10R { bits }
}
#[doc = "Bit 11 - Filter active"]
#[inline(always)]
pub fn fact11(&self) -> FACT11R {
let bits = ((self.bits >> 11) & 0x01) != 0;
FACT11R { bits }
}
#[doc = "Bit 12 - Filter active"]
#[inline(always)]
pub fn fact12(&self) -> FACT12R {
let bits = ((self.bits >> 12) & 0x01) != 0;
FACT12R { bits }
}
#[doc = "Bit 13 - Filter active"]
#[inline(always)]
pub fn fact13(&self) -> FACT13R {
let bits = ((self.bits >> 13) & 0x01) != 0;
FACT13R { bits }
}
#[doc = "Bit 14 - Filter active"]
#[inline(always)]
pub fn fact14(&self) -> FACT14R {
let bits = ((self.bits >> 14) & 0x01) != 0;
FACT14R { bits }
}
#[doc = "Bit 15 - Filter active"]
#[inline(always)]
pub fn fact15(&self) -> FACT15R {
let bits = ((self.bits >> 15) & 0x01) != 0;
FACT15R { bits }
}
#[doc = "Bit 16 - Filter active"]
#[inline(always)]
pub fn fact16(&self) -> FACT16R {
let bits = ((self.bits >> 16) & 0x01) != 0;
FACT16R { bits }
}
#[doc = "Bit 17 - Filter active"]
#[inline(always)]
pub fn fact17(&self) -> FACT17R {
let bits = ((self.bits >> 17) & 0x01) != 0;
FACT17R { bits }
}
#[doc = "Bit 18 - Filter active"]
#[inline(always)]
pub fn fact18(&self) -> FACT18R {
let bits = ((self.bits >> 18) & 0x01) != 0;
FACT18R { bits }
}
#[doc = "Bit 19 - Filter active"]
#[inline(always)]
pub fn fact19(&self) -> FACT19R {
let bits = ((self.bits >> 19) & 0x01) != 0;
FACT19R { bits }
}
#[doc = "Bit 20 - Filter active"]
#[inline(always)]
pub fn fact20(&self) -> FACT20R {
let bits = ((self.bits >> 20) & 0x01) != 0;
FACT20R { bits }
}
#[doc = "Bit 21 - Filter active"]
#[inline(always)]
pub fn fact21(&self) -> FACT21R {
let bits = ((self.bits >> 21) & 0x01) != 0;
FACT21R { bits }
}
#[doc = "Bit 22 - Filter active"]
#[inline(always)]
pub fn fact22(&self) -> FACT22R {
let bits = ((self.bits >> 22) & 0x01) != 0;
FACT22R { bits }
}
#[doc = "Bit 23 - Filter active"]
#[inline(always)]
pub fn fact23(&self) -> FACT23R {
let bits = ((self.bits >> 23) & 0x01) != 0;
FACT23R { bits }
}
#[doc = "Bit 24 - Filter active"]
#[inline(always)]
pub fn fact24(&self) -> FACT24R {
let bits = ((self.bits >> 24) & 0x01) != 0;
FACT24R { bits }
}
#[doc = "Bit 25 - Filter active"]
#[inline(always)]
pub fn fact25(&self) -> FACT25R {
let bits = ((self.bits >> 25) & 0x01) != 0;
FACT25R { bits }
}
#[doc = "Bit 26 - Filter active"]
#[inline(always)]
pub fn fact26(&self) -> FACT26R {
let bits = ((self.bits >> 26) & 0x01) != 0;
FACT26R { bits }
}
#[doc = "Bit 27 - Filter active"]
#[inline(always)]
pub fn fact27(&self) -> FACT27R {
let bits = ((self.bits >> 27) & 0x01) != 0;
FACT27R { bits }
}
}
impl W {
#[doc = r"Writes raw bits to the register"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
#[doc = "Bit 0 - Filter active"]
#[inline(always)]
pub fn fact0(&mut self) -> _FACT0W {
_FACT0W { w: self }
}
#[doc = "Bit 1 - Filter active"]
#[inline(always)]
pub fn fact1(&mut self) -> _FACT1W {
_FACT1W { w: self }
}
#[doc = "Bit 2 - Filter active"]
#[inline(always)]
pub fn fact2(&mut self) -> _FACT2W {
_FACT2W { w: self }
}
#[doc = "Bit 3 - Filter active"]
#[inline(always)]
pub fn fact3(&mut self) -> _FACT3W {
_FACT3W { w: self }
}
#[doc = "Bit 4 - Filter active"]
#[inline(always)]
pub fn fact4(&mut self) -> _FACT4W {
_FACT4W { w: self }
}
#[doc = "Bit 5 - Filter active"]
#[inline(always)]
pub fn fact5(&mut self) -> _FACT5W {
_FACT5W { w: self }
}
#[doc = "Bit 6 - Filter active"]
#[inline(always)]
pub fn fact6(&mut self) -> _FACT6W {
_FACT6W { w: self }
}
#[doc = "Bit 7 - Filter active"]
#[inline(always)]
pub fn fact7(&mut self) -> _FACT7W {
_FACT7W { w: self }
}
#[doc = "Bit 8 - Filter active"]
#[inline(always)]
pub fn fact8(&mut self) -> _FACT8W {
_FACT8W { w: self }
}
#[doc = "Bit 9 - Filter active"]
#[inline(always)]
pub fn fact9(&mut self) -> _FACT9W {
_FACT9W { w: self }
}
#[doc = "Bit 10 - Filter active"]
#[inline(always)]
pub fn fact10(&mut self) -> _FACT10W {
_FACT10W { w: self }
}
#[doc = "Bit 11 - Filter active"]
#[inline(always)]
pub fn fact11(&mut self) -> _FACT11W {
_FACT11W { w: self }
}
#[doc = "Bit 12 - Filter active"]
#[inline(always)]
pub fn fact12(&mut self) -> _FACT12W {
_FACT12W { w: self }
}
#[doc = "Bit 13 - Filter active"]
#[inline(always)]
pub fn fact13(&mut self) -> _FACT13W {
_FACT13W { w: self }
}
#[doc = "Bit 14 - Filter active"]
#[inline(always)]
pub fn fact14(&mut self) -> _FACT14W {
_FACT14W { w: self }
}
#[doc = "Bit 15 - Filter active"]
#[inline(always)]
pub fn fact15(&mut self) -> _FACT15W {
_FACT15W { w: self }
}
#[doc = "Bit 16 - Filter active"]
#[inline(always)]
pub fn fact16(&mut self) -> _FACT16W {
_FACT16W { w: self }
}
#[doc = "Bit 17 - Filter active"]
#[inline(always)]
pub fn fact17(&mut self) -> _FACT17W {
_FACT17W { w: self }
}
#[doc = "Bit 18 - Filter active"]
#[inline(always)]
pub fn fact18(&mut self) -> _FACT18W {
_FACT18W { w: self }
}
#[doc = "Bit 19 - Filter active"]
#[inline(always)]
pub fn fact19(&mut self) -> _FACT19W {
_FACT19W { w: self }
}
#[doc = "Bit 20 - Filter active"]
#[inline(always)]
pub fn fact20(&mut self) -> _FACT20W {
_FACT20W { w: self }
}
#[doc = "Bit 21 - Filter active"]
#[inline(always)]
pub fn fact21(&mut self) -> _FACT21W {
_FACT21W { w: self }
}
#[doc = "Bit 22 - Filter active"]
#[inline(always)]
pub fn fact22(&mut self) -> _FACT22W {
_FACT22W { w: self }
}
#[doc = "Bit 23 - Filter active"]
#[inline(always)]
pub fn fact23(&mut self) -> _FACT23W {
_FACT23W { w: self }
}
#[doc = "Bit 24 - Filter active"]
#[inline(always)]
pub fn fact24(&mut self) -> _FACT24W {
_FACT24W { w: self }
}
#[doc = "Bit 25 - Filter active"]
#[inline(always)]
pub fn fact25(&mut self) -> _FACT25W {
_FACT25W { w: self }
}
#[doc = "Bit 26 - Filter active"]
#[inline(always)]
pub fn fact26(&mut self) -> _FACT26W {
_FACT26W { w: self }
}
#[doc = "Bit 27 - Filter active"]
#[inline(always)]
pub fn fact27(&mut self) -> _FACT27W {
_FACT27W { w: self }
}
}