#[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::EEFDR1 {
#[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 = r" Value of the field"]
pub struct EE5FLTRR {
bits: u8,
}
impl EE5FLTRR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct EE5LTCHR {
bits: bool,
}
impl EE5LTCHR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[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"]
pub struct EE4FLTRR {
bits: u8,
}
impl EE4FLTRR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct EE4LTCHR {
bits: bool,
}
impl EE4LTCHR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[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"]
pub struct EE3FLTRR {
bits: u8,
}
impl EE3FLTRR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct EE3LTCHR {
bits: bool,
}
impl EE3LTCHR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[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"]
pub struct EE2FLTRR {
bits: u8,
}
impl EE2FLTRR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct EE2LTCHR {
bits: bool,
}
impl EE2LTCHR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[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"]
pub struct EE1FLTRR {
bits: u8,
}
impl EE1FLTRR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bits(&self) -> u8 {
self.bits
}
}
#[doc = r" Value of the field"]
pub struct EE1LTCHR {
bits: bool,
}
impl EE1LTCHR {
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
self.bits
}
#[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" Proxy"]
pub struct _EE5FLTRW<'a> {
w: &'a mut W,
}
impl<'a> _EE5FLTRW<'a> {
#[doc = r" Writes raw bits to the field"]
#[inline]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
const MASK: u8 = 15;
const OFFSET: u8 = 25;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _EE5LTCHW<'a> {
w: &'a mut W,
}
impl<'a> _EE5LTCHW<'a> {
#[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 = r" Proxy"]
pub struct _EE4FLTRW<'a> {
w: &'a mut W,
}
impl<'a> _EE4FLTRW<'a> {
#[doc = r" Writes raw bits to the field"]
#[inline]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
const MASK: u8 = 15;
const OFFSET: u8 = 19;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _EE4LTCHW<'a> {
w: &'a mut W,
}
impl<'a> _EE4LTCHW<'a> {
#[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 = 18;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _EE3FLTRW<'a> {
w: &'a mut W,
}
impl<'a> _EE3FLTRW<'a> {
#[doc = r" Writes raw bits to the field"]
#[inline]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
const MASK: u8 = 15;
const OFFSET: u8 = 13;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _EE3LTCHW<'a> {
w: &'a mut W,
}
impl<'a> _EE3LTCHW<'a> {
#[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 = 12;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _EE2FLTRW<'a> {
w: &'a mut W,
}
impl<'a> _EE2FLTRW<'a> {
#[doc = r" Writes raw bits to the field"]
#[inline]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
const MASK: u8 = 15;
const OFFSET: u8 = 7;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _EE2LTCHW<'a> {
w: &'a mut W,
}
impl<'a> _EE2LTCHW<'a> {
#[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 = r" Proxy"]
pub struct _EE1FLTRW<'a> {
w: &'a mut W,
}
impl<'a> _EE1FLTRW<'a> {
#[doc = r" Writes raw bits to the field"]
#[inline]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
const MASK: u8 = 15;
const OFFSET: u8 = 1;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = r" Proxy"]
pub struct _EE1LTCHW<'a> {
w: &'a mut W,
}
impl<'a> _EE1LTCHW<'a> {
#[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
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bits 25:28 - External Event 5 filter"]
#[inline]
pub fn ee5fltr(&self) -> EE5FLTRR {
let bits = {
const MASK: u8 = 15;
const OFFSET: u8 = 25;
((self.bits >> OFFSET) & MASK as u32) as u8
};
EE5FLTRR { bits }
}
#[doc = "Bit 24 - External Event 5 latch"]
#[inline]
pub fn ee5ltch(&self) -> EE5LTCHR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 24;
((self.bits >> OFFSET) & MASK as u32) != 0
};
EE5LTCHR { bits }
}
#[doc = "Bits 19:22 - External Event 4 filter"]
#[inline]
pub fn ee4fltr(&self) -> EE4FLTRR {
let bits = {
const MASK: u8 = 15;
const OFFSET: u8 = 19;
((self.bits >> OFFSET) & MASK as u32) as u8
};
EE4FLTRR { bits }
}
#[doc = "Bit 18 - External Event 4 latch"]
#[inline]
pub fn ee4ltch(&self) -> EE4LTCHR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 18;
((self.bits >> OFFSET) & MASK as u32) != 0
};
EE4LTCHR { bits }
}
#[doc = "Bits 13:16 - External Event 3 filter"]
#[inline]
pub fn ee3fltr(&self) -> EE3FLTRR {
let bits = {
const MASK: u8 = 15;
const OFFSET: u8 = 13;
((self.bits >> OFFSET) & MASK as u32) as u8
};
EE3FLTRR { bits }
}
#[doc = "Bit 12 - External Event 3 latch"]
#[inline]
pub fn ee3ltch(&self) -> EE3LTCHR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 12;
((self.bits >> OFFSET) & MASK as u32) != 0
};
EE3LTCHR { bits }
}
#[doc = "Bits 7:10 - External Event 2 filter"]
#[inline]
pub fn ee2fltr(&self) -> EE2FLTRR {
let bits = {
const MASK: u8 = 15;
const OFFSET: u8 = 7;
((self.bits >> OFFSET) & MASK as u32) as u8
};
EE2FLTRR { bits }
}
#[doc = "Bit 6 - External Event 2 latch"]
#[inline]
pub fn ee2ltch(&self) -> EE2LTCHR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 6;
((self.bits >> OFFSET) & MASK as u32) != 0
};
EE2LTCHR { bits }
}
#[doc = "Bits 1:4 - External Event 1 filter"]
#[inline]
pub fn ee1fltr(&self) -> EE1FLTRR {
let bits = {
const MASK: u8 = 15;
const OFFSET: u8 = 1;
((self.bits >> OFFSET) & MASK as u32) as u8
};
EE1FLTRR { bits }
}
#[doc = "Bit 0 - External Event 1 latch"]
#[inline]
pub fn ee1ltch(&self) -> EE1LTCHR {
let bits = {
const MASK: bool = true;
const OFFSET: u8 = 0;
((self.bits >> OFFSET) & MASK as u32) != 0
};
EE1LTCHR { bits }
}
}
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 = "Bits 25:28 - External Event 5 filter"]
#[inline]
pub fn ee5fltr(&mut self) -> _EE5FLTRW {
_EE5FLTRW { w: self }
}
#[doc = "Bit 24 - External Event 5 latch"]
#[inline]
pub fn ee5ltch(&mut self) -> _EE5LTCHW {
_EE5LTCHW { w: self }
}
#[doc = "Bits 19:22 - External Event 4 filter"]
#[inline]
pub fn ee4fltr(&mut self) -> _EE4FLTRW {
_EE4FLTRW { w: self }
}
#[doc = "Bit 18 - External Event 4 latch"]
#[inline]
pub fn ee4ltch(&mut self) -> _EE4LTCHW {
_EE4LTCHW { w: self }
}
#[doc = "Bits 13:16 - External Event 3 filter"]
#[inline]
pub fn ee3fltr(&mut self) -> _EE3FLTRW {
_EE3FLTRW { w: self }
}
#[doc = "Bit 12 - External Event 3 latch"]
#[inline]
pub fn ee3ltch(&mut self) -> _EE3LTCHW {
_EE3LTCHW { w: self }
}
#[doc = "Bits 7:10 - External Event 2 filter"]
#[inline]
pub fn ee2fltr(&mut self) -> _EE2FLTRW {
_EE2FLTRW { w: self }
}
#[doc = "Bit 6 - External Event 2 latch"]
#[inline]
pub fn ee2ltch(&mut self) -> _EE2LTCHW {
_EE2LTCHW { w: self }
}
#[doc = "Bits 1:4 - External Event 1 filter"]
#[inline]
pub fn ee1fltr(&mut self) -> _EE1FLTRW {
_EE1FLTRW { w: self }
}
#[doc = "Bit 0 - External Event 1 latch"]
#[inline]
pub fn ee1ltch(&mut self) -> _EE1LTCHW {
_EE1LTCHW { w: self }
}
}