#[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::IER {
#[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 = "Possible values of the field `DOWNIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DOWNIER {
#[doc = "DOWN interrupt disabled"]
DISABLED,
#[doc = "DOWN interrupt enabled"]
ENABLED,
}
impl DOWNIER {
#[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"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
match *self {
DOWNIER::DISABLED => false,
DOWNIER::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _from(value: bool) -> DOWNIER {
match value {
false => DOWNIER::DISABLED,
true => DOWNIER::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == DOWNIER::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == DOWNIER::ENABLED
}
}
#[doc = "Values that can be written to the field `DOWNIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum DOWNIEW {
#[doc = "DOWN interrupt disabled"]
DISABLED,
#[doc = "DOWN interrupt enabled"]
ENABLED,
}
impl DOWNIEW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _bits(&self) -> bool {
match *self {
DOWNIEW::DISABLED => false,
DOWNIEW::ENABLED => true,
}
}
}
#[doc = r"Proxy"]
pub struct _DOWNIEW<'a> {
w: &'a mut W,
}
impl<'a> _DOWNIEW<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: DOWNIEW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "DOWN interrupt disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(DOWNIEW::DISABLED)
}
#[doc = "DOWN interrupt enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(DOWNIEW::ENABLED)
}
#[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 = "Possible values of the field `UPIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UPIER {
#[doc = "UP interrupt disabled"]
DISABLED,
#[doc = "UP interrupt enabled"]
ENABLED,
}
impl UPIER {
#[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"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
match *self {
UPIER::DISABLED => false,
UPIER::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _from(value: bool) -> UPIER {
match value {
false => UPIER::DISABLED,
true => UPIER::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == UPIER::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == UPIER::ENABLED
}
}
#[doc = "Values that can be written to the field `UPIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UPIEW {
#[doc = "UP interrupt disabled"]
DISABLED,
#[doc = "UP interrupt enabled"]
ENABLED,
}
impl UPIEW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _bits(&self) -> bool {
match *self {
UPIEW::DISABLED => false,
UPIEW::ENABLED => true,
}
}
}
#[doc = r"Proxy"]
pub struct _UPIEW<'a> {
w: &'a mut W,
}
impl<'a> _UPIEW<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: UPIEW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "UP interrupt disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(UPIEW::DISABLED)
}
#[doc = "UP interrupt enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(UPIEW::ENABLED)
}
#[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 = "Possible values of the field `ARROKIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ARROKIER {
#[doc = "ARROK interrupt disabled"]
DISABLED,
#[doc = "ARROK interrupt enabled"]
ENABLED,
}
impl ARROKIER {
#[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"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
match *self {
ARROKIER::DISABLED => false,
ARROKIER::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _from(value: bool) -> ARROKIER {
match value {
false => ARROKIER::DISABLED,
true => ARROKIER::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == ARROKIER::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == ARROKIER::ENABLED
}
}
#[doc = "Values that can be written to the field `ARROKIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ARROKIEW {
#[doc = "ARROK interrupt disabled"]
DISABLED,
#[doc = "ARROK interrupt enabled"]
ENABLED,
}
impl ARROKIEW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _bits(&self) -> bool {
match *self {
ARROKIEW::DISABLED => false,
ARROKIEW::ENABLED => true,
}
}
}
#[doc = r"Proxy"]
pub struct _ARROKIEW<'a> {
w: &'a mut W,
}
impl<'a> _ARROKIEW<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: ARROKIEW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "ARROK interrupt disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(ARROKIEW::DISABLED)
}
#[doc = "ARROK interrupt enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(ARROKIEW::ENABLED)
}
#[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 = "Possible values of the field `CMPOKIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CMPOKIER {
#[doc = "CMPOK interrupt disabled"]
DISABLED,
#[doc = "CMPOK interrupt enabled"]
ENABLED,
}
impl CMPOKIER {
#[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"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
match *self {
CMPOKIER::DISABLED => false,
CMPOKIER::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _from(value: bool) -> CMPOKIER {
match value {
false => CMPOKIER::DISABLED,
true => CMPOKIER::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == CMPOKIER::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == CMPOKIER::ENABLED
}
}
#[doc = "Values that can be written to the field `CMPOKIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CMPOKIEW {
#[doc = "CMPOK interrupt disabled"]
DISABLED,
#[doc = "CMPOK interrupt enabled"]
ENABLED,
}
impl CMPOKIEW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _bits(&self) -> bool {
match *self {
CMPOKIEW::DISABLED => false,
CMPOKIEW::ENABLED => true,
}
}
}
#[doc = r"Proxy"]
pub struct _CMPOKIEW<'a> {
w: &'a mut W,
}
impl<'a> _CMPOKIEW<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CMPOKIEW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "CMPOK interrupt disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(CMPOKIEW::DISABLED)
}
#[doc = "CMPOK interrupt enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(CMPOKIEW::ENABLED)
}
#[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 = "Possible values of the field `EXTTRIGIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EXTTRIGIER {
#[doc = "EXTTRIG interrupt disabled"]
DISABLED,
#[doc = "EXTTRIG interrupt enabled"]
ENABLED,
}
impl EXTTRIGIER {
#[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"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
match *self {
EXTTRIGIER::DISABLED => false,
EXTTRIGIER::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _from(value: bool) -> EXTTRIGIER {
match value {
false => EXTTRIGIER::DISABLED,
true => EXTTRIGIER::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == EXTTRIGIER::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == EXTTRIGIER::ENABLED
}
}
#[doc = "Values that can be written to the field `EXTTRIGIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EXTTRIGIEW {
#[doc = "EXTTRIG interrupt disabled"]
DISABLED,
#[doc = "EXTTRIG interrupt enabled"]
ENABLED,
}
impl EXTTRIGIEW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _bits(&self) -> bool {
match *self {
EXTTRIGIEW::DISABLED => false,
EXTTRIGIEW::ENABLED => true,
}
}
}
#[doc = r"Proxy"]
pub struct _EXTTRIGIEW<'a> {
w: &'a mut W,
}
impl<'a> _EXTTRIGIEW<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EXTTRIGIEW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "EXTTRIG interrupt disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(EXTTRIGIEW::DISABLED)
}
#[doc = "EXTTRIG interrupt enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(EXTTRIGIEW::ENABLED)
}
#[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 = "Possible values of the field `ARRMIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ARRMIER {
#[doc = "ARRM interrupt disabled"]
DISABLED,
#[doc = "ARRM interrupt enabled"]
ENABLED,
}
impl ARRMIER {
#[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"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
match *self {
ARRMIER::DISABLED => false,
ARRMIER::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _from(value: bool) -> ARRMIER {
match value {
false => ARRMIER::DISABLED,
true => ARRMIER::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == ARRMIER::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == ARRMIER::ENABLED
}
}
#[doc = "Values that can be written to the field `ARRMIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ARRMIEW {
#[doc = "ARRM interrupt disabled"]
DISABLED,
#[doc = "ARRM interrupt enabled"]
ENABLED,
}
impl ARRMIEW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _bits(&self) -> bool {
match *self {
ARRMIEW::DISABLED => false,
ARRMIEW::ENABLED => true,
}
}
}
#[doc = r"Proxy"]
pub struct _ARRMIEW<'a> {
w: &'a mut W,
}
impl<'a> _ARRMIEW<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: ARRMIEW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "ARRM interrupt disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(ARRMIEW::DISABLED)
}
#[doc = "ARRM interrupt enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(ARRMIEW::ENABLED)
}
#[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 = "Possible values of the field `CMPMIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CMPMIER {
#[doc = "CMPM interrupt disabled"]
DISABLED,
#[doc = "CMPM interrupt enabled"]
ENABLED,
}
impl CMPMIER {
#[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"Value of the field as raw bits"]
#[inline(always)]
pub fn bit(&self) -> bool {
match *self {
CMPMIER::DISABLED => false,
CMPMIER::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _from(value: bool) -> CMPMIER {
match value {
false => CMPMIER::DISABLED,
true => CMPMIER::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == CMPMIER::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == CMPMIER::ENABLED
}
}
#[doc = "Values that can be written to the field `CMPMIE`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum CMPMIEW {
#[doc = "CMPM interrupt disabled"]
DISABLED,
#[doc = "CMPM interrupt enabled"]
ENABLED,
}
impl CMPMIEW {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline(always)]
pub fn _bits(&self) -> bool {
match *self {
CMPMIEW::DISABLED => false,
CMPMIEW::ENABLED => true,
}
}
}
#[doc = r"Proxy"]
pub struct _CMPMIEW<'a> {
w: &'a mut W,
}
impl<'a> _CMPMIEW<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: CMPMIEW) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "CMPM interrupt disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(CMPMIEW::DISABLED)
}
#[doc = "CMPM interrupt enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(CMPMIEW::ENABLED)
}
#[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 6 - Direction change to down Interrupt Enable"]
#[inline(always)]
pub fn downie(&self) -> DOWNIER {
DOWNIER::_from(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 5 - Direction change to UP Interrupt Enable"]
#[inline(always)]
pub fn upie(&self) -> UPIER {
UPIER::_from(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 4 - Autoreload register update OK Interrupt Enable"]
#[inline(always)]
pub fn arrokie(&self) -> ARROKIER {
ARROKIER::_from(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 3 - Compare register update OK Interrupt Enable"]
#[inline(always)]
pub fn cmpokie(&self) -> CMPOKIER {
CMPOKIER::_from(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 2 - External trigger valid edge Interrupt Enable"]
#[inline(always)]
pub fn exttrigie(&self) -> EXTTRIGIER {
EXTTRIGIER::_from(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 1 - Autoreload match Interrupt Enable"]
#[inline(always)]
pub fn arrmie(&self) -> ARRMIER {
ARRMIER::_from(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 0 - Compare match Interrupt Enable"]
#[inline(always)]
pub fn cmpmie(&self) -> CMPMIER {
CMPMIER::_from(((self.bits >> 0) & 0x01) != 0)
}
}
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 6 - Direction change to down Interrupt Enable"]
#[inline(always)]
pub fn downie(&mut self) -> _DOWNIEW {
_DOWNIEW { w: self }
}
#[doc = "Bit 5 - Direction change to UP Interrupt Enable"]
#[inline(always)]
pub fn upie(&mut self) -> _UPIEW {
_UPIEW { w: self }
}
#[doc = "Bit 4 - Autoreload register update OK Interrupt Enable"]
#[inline(always)]
pub fn arrokie(&mut self) -> _ARROKIEW {
_ARROKIEW { w: self }
}
#[doc = "Bit 3 - Compare register update OK Interrupt Enable"]
#[inline(always)]
pub fn cmpokie(&mut self) -> _CMPOKIEW {
_CMPOKIEW { w: self }
}
#[doc = "Bit 2 - External trigger valid edge Interrupt Enable"]
#[inline(always)]
pub fn exttrigie(&mut self) -> _EXTTRIGIEW {
_EXTTRIGIEW { w: self }
}
#[doc = "Bit 1 - Autoreload match Interrupt Enable"]
#[inline(always)]
pub fn arrmie(&mut self) -> _ARRMIEW {
_ARRMIEW { w: self }
}
#[doc = "Bit 0 - Compare match Interrupt Enable"]
#[inline(always)]
pub fn cmpmie(&mut self) -> _CMPMIEW {
_CMPMIEW { w: self }
}
}