#[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::TIMBDIER5 {
#[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 DLYPRTDER {
bits: bool,
}
impl DLYPRTDER {
#[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 _DLYPRTDEW<'a> {
w: &'a mut W,
}
impl<'a> _DLYPRTDEW<'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 << 30);
self.w.bits |= ((value as u32) & 0x01) << 30;
self.w
}
}
#[doc = r"Value of the field"]
pub struct RSTDER {
bits: bool,
}
impl RSTDER {
#[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 _RSTDEW<'a> {
w: &'a mut W,
}
impl<'a> _RSTDEW<'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 << 29);
self.w.bits |= ((value as u32) & 0x01) << 29;
self.w
}
}
#[doc = r"Value of the field"]
pub struct RSTX2DER {
bits: bool,
}
impl RSTX2DER {
#[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 _RSTX2DEW<'a> {
w: &'a mut W,
}
impl<'a> _RSTX2DEW<'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 << 28);
self.w.bits |= ((value as u32) & 0x01) << 28;
self.w
}
}
#[doc = r"Value of the field"]
pub struct SETX2DER {
bits: bool,
}
impl SETX2DER {
#[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 _SETX2DEW<'a> {
w: &'a mut W,
}
impl<'a> _SETX2DEW<'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
}
}
#[doc = r"Value of the field"]
pub struct RSTX1DER {
bits: bool,
}
impl RSTX1DER {
#[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 _RSTX1DEW<'a> {
w: &'a mut W,
}
impl<'a> _RSTX1DEW<'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 SET1XDER {
bits: bool,
}
impl SET1XDER {
#[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 _SET1XDEW<'a> {
w: &'a mut W,
}
impl<'a> _SET1XDEW<'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 CPT2DER {
bits: bool,
}
impl CPT2DER {
#[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 _CPT2DEW<'a> {
w: &'a mut W,
}
impl<'a> _CPT2DEW<'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 CPT1DER {
bits: bool,
}
impl CPT1DER {
#[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 _CPT1DEW<'a> {
w: &'a mut W,
}
impl<'a> _CPT1DEW<'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 UPDDER {
bits: bool,
}
impl UPDDER {
#[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 _UPDDEW<'a> {
w: &'a mut W,
}
impl<'a> _UPDDEW<'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 REPDER {
bits: bool,
}
impl REPDER {
#[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 _REPDEW<'a> {
w: &'a mut W,
}
impl<'a> _REPDEW<'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 CMP4DER {
bits: bool,
}
impl CMP4DER {
#[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 _CMP4DEW<'a> {
w: &'a mut W,
}
impl<'a> _CMP4DEW<'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 CMP3DER {
bits: bool,
}
impl CMP3DER {
#[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 _CMP3DEW<'a> {
w: &'a mut W,
}
impl<'a> _CMP3DEW<'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 CMP2DER {
bits: bool,
}
impl CMP2DER {
#[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 _CMP2DEW<'a> {
w: &'a mut W,
}
impl<'a> _CMP2DEW<'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 CMP1DER {
bits: bool,
}
impl CMP1DER {
#[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 _CMP1DEW<'a> {
w: &'a mut W,
}
impl<'a> _CMP1DEW<'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 DLYPRTIER {
bits: bool,
}
impl DLYPRTIER {
#[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 _DLYPRTIEW<'a> {
w: &'a mut W,
}
impl<'a> _DLYPRTIEW<'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 RSTIER {
bits: bool,
}
impl RSTIER {
#[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 _RSTIEW<'a> {
w: &'a mut W,
}
impl<'a> _RSTIEW<'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 RSTX2IER {
bits: bool,
}
impl RSTX2IER {
#[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 _RSTX2IEW<'a> {
w: &'a mut W,
}
impl<'a> _RSTX2IEW<'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 SETX2IER {
bits: bool,
}
impl SETX2IER {
#[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 _SETX2IEW<'a> {
w: &'a mut W,
}
impl<'a> _SETX2IEW<'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 RSTX1IER {
bits: bool,
}
impl RSTX1IER {
#[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 _RSTX1IEW<'a> {
w: &'a mut W,
}
impl<'a> _RSTX1IEW<'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 SET1XIER {
bits: bool,
}
impl SET1XIER {
#[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 _SET1XIEW<'a> {
w: &'a mut W,
}
impl<'a> _SET1XIEW<'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 CPT2IER {
bits: bool,
}
impl CPT2IER {
#[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 _CPT2IEW<'a> {
w: &'a mut W,
}
impl<'a> _CPT2IEW<'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 CPT1IER {
bits: bool,
}
impl CPT1IER {
#[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 _CPT1IEW<'a> {
w: &'a mut W,
}
impl<'a> _CPT1IEW<'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 UPDIER {
bits: bool,
}
impl UPDIER {
#[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 _UPDIEW<'a> {
w: &'a mut W,
}
impl<'a> _UPDIEW<'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 REPIER {
bits: bool,
}
impl REPIER {
#[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 _REPIEW<'a> {
w: &'a mut W,
}
impl<'a> _REPIEW<'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 CMP4IER {
bits: bool,
}
impl CMP4IER {
#[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 _CMP4IEW<'a> {
w: &'a mut W,
}
impl<'a> _CMP4IEW<'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 CMP3IER {
bits: bool,
}
impl CMP3IER {
#[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 _CMP3IEW<'a> {
w: &'a mut W,
}
impl<'a> _CMP3IEW<'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 CMP2IER {
bits: bool,
}
impl CMP2IER {
#[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 _CMP2IEW<'a> {
w: &'a mut W,
}
impl<'a> _CMP2IEW<'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 CMP1IER {
bits: bool,
}
impl CMP1IER {
#[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 _CMP1IEW<'a> {
w: &'a mut W,
}
impl<'a> _CMP1IEW<'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
}
}
impl R {
#[doc = r"Value of the register as raw bits"]
#[inline(always)]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bit 30 - DLYPRTDE"]
#[inline(always)]
pub fn dlyprtde(&self) -> DLYPRTDER {
let bits = ((self.bits >> 30) & 0x01) != 0;
DLYPRTDER { bits }
}
#[doc = "Bit 29 - RSTDE"]
#[inline(always)]
pub fn rstde(&self) -> RSTDER {
let bits = ((self.bits >> 29) & 0x01) != 0;
RSTDER { bits }
}
#[doc = "Bit 28 - RSTx2DE"]
#[inline(always)]
pub fn rstx2de(&self) -> RSTX2DER {
let bits = ((self.bits >> 28) & 0x01) != 0;
RSTX2DER { bits }
}
#[doc = "Bit 27 - SETx2DE"]
#[inline(always)]
pub fn setx2de(&self) -> SETX2DER {
let bits = ((self.bits >> 27) & 0x01) != 0;
SETX2DER { bits }
}
#[doc = "Bit 26 - RSTx1DE"]
#[inline(always)]
pub fn rstx1de(&self) -> RSTX1DER {
let bits = ((self.bits >> 26) & 0x01) != 0;
RSTX1DER { bits }
}
#[doc = "Bit 25 - SET1xDE"]
#[inline(always)]
pub fn set1x_de(&self) -> SET1XDER {
let bits = ((self.bits >> 25) & 0x01) != 0;
SET1XDER { bits }
}
#[doc = "Bit 24 - CPT2DE"]
#[inline(always)]
pub fn cpt2de(&self) -> CPT2DER {
let bits = ((self.bits >> 24) & 0x01) != 0;
CPT2DER { bits }
}
#[doc = "Bit 23 - CPT1DE"]
#[inline(always)]
pub fn cpt1de(&self) -> CPT1DER {
let bits = ((self.bits >> 23) & 0x01) != 0;
CPT1DER { bits }
}
#[doc = "Bit 22 - UPDDE"]
#[inline(always)]
pub fn updde(&self) -> UPDDER {
let bits = ((self.bits >> 22) & 0x01) != 0;
UPDDER { bits }
}
#[doc = "Bit 20 - REPDE"]
#[inline(always)]
pub fn repde(&self) -> REPDER {
let bits = ((self.bits >> 20) & 0x01) != 0;
REPDER { bits }
}
#[doc = "Bit 19 - CMP4DE"]
#[inline(always)]
pub fn cmp4de(&self) -> CMP4DER {
let bits = ((self.bits >> 19) & 0x01) != 0;
CMP4DER { bits }
}
#[doc = "Bit 18 - CMP3DE"]
#[inline(always)]
pub fn cmp3de(&self) -> CMP3DER {
let bits = ((self.bits >> 18) & 0x01) != 0;
CMP3DER { bits }
}
#[doc = "Bit 17 - CMP2DE"]
#[inline(always)]
pub fn cmp2de(&self) -> CMP2DER {
let bits = ((self.bits >> 17) & 0x01) != 0;
CMP2DER { bits }
}
#[doc = "Bit 16 - CMP1DE"]
#[inline(always)]
pub fn cmp1de(&self) -> CMP1DER {
let bits = ((self.bits >> 16) & 0x01) != 0;
CMP1DER { bits }
}
#[doc = "Bit 14 - DLYPRTIE"]
#[inline(always)]
pub fn dlyprtie(&self) -> DLYPRTIER {
let bits = ((self.bits >> 14) & 0x01) != 0;
DLYPRTIER { bits }
}
#[doc = "Bit 13 - RSTIE"]
#[inline(always)]
pub fn rstie(&self) -> RSTIER {
let bits = ((self.bits >> 13) & 0x01) != 0;
RSTIER { bits }
}
#[doc = "Bit 12 - RSTx2IE"]
#[inline(always)]
pub fn rstx2ie(&self) -> RSTX2IER {
let bits = ((self.bits >> 12) & 0x01) != 0;
RSTX2IER { bits }
}
#[doc = "Bit 11 - SETx2IE"]
#[inline(always)]
pub fn setx2ie(&self) -> SETX2IER {
let bits = ((self.bits >> 11) & 0x01) != 0;
SETX2IER { bits }
}
#[doc = "Bit 10 - RSTx1IE"]
#[inline(always)]
pub fn rstx1ie(&self) -> RSTX1IER {
let bits = ((self.bits >> 10) & 0x01) != 0;
RSTX1IER { bits }
}
#[doc = "Bit 9 - SET1xIE"]
#[inline(always)]
pub fn set1x_ie(&self) -> SET1XIER {
let bits = ((self.bits >> 9) & 0x01) != 0;
SET1XIER { bits }
}
#[doc = "Bit 8 - CPT2IE"]
#[inline(always)]
pub fn cpt2ie(&self) -> CPT2IER {
let bits = ((self.bits >> 8) & 0x01) != 0;
CPT2IER { bits }
}
#[doc = "Bit 7 - CPT1IE"]
#[inline(always)]
pub fn cpt1ie(&self) -> CPT1IER {
let bits = ((self.bits >> 7) & 0x01) != 0;
CPT1IER { bits }
}
#[doc = "Bit 6 - UPDIE"]
#[inline(always)]
pub fn updie(&self) -> UPDIER {
let bits = ((self.bits >> 6) & 0x01) != 0;
UPDIER { bits }
}
#[doc = "Bit 4 - REPIE"]
#[inline(always)]
pub fn repie(&self) -> REPIER {
let bits = ((self.bits >> 4) & 0x01) != 0;
REPIER { bits }
}
#[doc = "Bit 3 - CMP4IE"]
#[inline(always)]
pub fn cmp4ie(&self) -> CMP4IER {
let bits = ((self.bits >> 3) & 0x01) != 0;
CMP4IER { bits }
}
#[doc = "Bit 2 - CMP3IE"]
#[inline(always)]
pub fn cmp3ie(&self) -> CMP3IER {
let bits = ((self.bits >> 2) & 0x01) != 0;
CMP3IER { bits }
}
#[doc = "Bit 1 - CMP2IE"]
#[inline(always)]
pub fn cmp2ie(&self) -> CMP2IER {
let bits = ((self.bits >> 1) & 0x01) != 0;
CMP2IER { bits }
}
#[doc = "Bit 0 - CMP1IE"]
#[inline(always)]
pub fn cmp1ie(&self) -> CMP1IER {
let bits = ((self.bits >> 0) & 0x01) != 0;
CMP1IER { 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 30 - DLYPRTDE"]
#[inline(always)]
pub fn dlyprtde(&mut self) -> _DLYPRTDEW {
_DLYPRTDEW { w: self }
}
#[doc = "Bit 29 - RSTDE"]
#[inline(always)]
pub fn rstde(&mut self) -> _RSTDEW {
_RSTDEW { w: self }
}
#[doc = "Bit 28 - RSTx2DE"]
#[inline(always)]
pub fn rstx2de(&mut self) -> _RSTX2DEW {
_RSTX2DEW { w: self }
}
#[doc = "Bit 27 - SETx2DE"]
#[inline(always)]
pub fn setx2de(&mut self) -> _SETX2DEW {
_SETX2DEW { w: self }
}
#[doc = "Bit 26 - RSTx1DE"]
#[inline(always)]
pub fn rstx1de(&mut self) -> _RSTX1DEW {
_RSTX1DEW { w: self }
}
#[doc = "Bit 25 - SET1xDE"]
#[inline(always)]
pub fn set1x_de(&mut self) -> _SET1XDEW {
_SET1XDEW { w: self }
}
#[doc = "Bit 24 - CPT2DE"]
#[inline(always)]
pub fn cpt2de(&mut self) -> _CPT2DEW {
_CPT2DEW { w: self }
}
#[doc = "Bit 23 - CPT1DE"]
#[inline(always)]
pub fn cpt1de(&mut self) -> _CPT1DEW {
_CPT1DEW { w: self }
}
#[doc = "Bit 22 - UPDDE"]
#[inline(always)]
pub fn updde(&mut self) -> _UPDDEW {
_UPDDEW { w: self }
}
#[doc = "Bit 20 - REPDE"]
#[inline(always)]
pub fn repde(&mut self) -> _REPDEW {
_REPDEW { w: self }
}
#[doc = "Bit 19 - CMP4DE"]
#[inline(always)]
pub fn cmp4de(&mut self) -> _CMP4DEW {
_CMP4DEW { w: self }
}
#[doc = "Bit 18 - CMP3DE"]
#[inline(always)]
pub fn cmp3de(&mut self) -> _CMP3DEW {
_CMP3DEW { w: self }
}
#[doc = "Bit 17 - CMP2DE"]
#[inline(always)]
pub fn cmp2de(&mut self) -> _CMP2DEW {
_CMP2DEW { w: self }
}
#[doc = "Bit 16 - CMP1DE"]
#[inline(always)]
pub fn cmp1de(&mut self) -> _CMP1DEW {
_CMP1DEW { w: self }
}
#[doc = "Bit 14 - DLYPRTIE"]
#[inline(always)]
pub fn dlyprtie(&mut self) -> _DLYPRTIEW {
_DLYPRTIEW { w: self }
}
#[doc = "Bit 13 - RSTIE"]
#[inline(always)]
pub fn rstie(&mut self) -> _RSTIEW {
_RSTIEW { w: self }
}
#[doc = "Bit 12 - RSTx2IE"]
#[inline(always)]
pub fn rstx2ie(&mut self) -> _RSTX2IEW {
_RSTX2IEW { w: self }
}
#[doc = "Bit 11 - SETx2IE"]
#[inline(always)]
pub fn setx2ie(&mut self) -> _SETX2IEW {
_SETX2IEW { w: self }
}
#[doc = "Bit 10 - RSTx1IE"]
#[inline(always)]
pub fn rstx1ie(&mut self) -> _RSTX1IEW {
_RSTX1IEW { w: self }
}
#[doc = "Bit 9 - SET1xIE"]
#[inline(always)]
pub fn set1x_ie(&mut self) -> _SET1XIEW {
_SET1XIEW { w: self }
}
#[doc = "Bit 8 - CPT2IE"]
#[inline(always)]
pub fn cpt2ie(&mut self) -> _CPT2IEW {
_CPT2IEW { w: self }
}
#[doc = "Bit 7 - CPT1IE"]
#[inline(always)]
pub fn cpt1ie(&mut self) -> _CPT1IEW {
_CPT1IEW { w: self }
}
#[doc = "Bit 6 - UPDIE"]
#[inline(always)]
pub fn updie(&mut self) -> _UPDIEW {
_UPDIEW { w: self }
}
#[doc = "Bit 4 - REPIE"]
#[inline(always)]
pub fn repie(&mut self) -> _REPIEW {
_REPIEW { w: self }
}
#[doc = "Bit 3 - CMP4IE"]
#[inline(always)]
pub fn cmp4ie(&mut self) -> _CMP4IEW {
_CMP4IEW { w: self }
}
#[doc = "Bit 2 - CMP3IE"]
#[inline(always)]
pub fn cmp3ie(&mut self) -> _CMP3IEW {
_CMP3IEW { w: self }
}
#[doc = "Bit 1 - CMP2IE"]
#[inline(always)]
pub fn cmp2ie(&mut self) -> _CMP2IEW {
_CMP2IEW { w: self }
}
#[doc = "Bit 0 - CMP1IE"]
#[inline(always)]
pub fn cmp1ie(&mut self) -> _CMP1IEW {
_CMP1IEW { w: self }
}
}