s32k118.rs/src/dma/err/mod.rs

1969 lines
49 KiB
Rust

#[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::ERR {
#[doc = r" Modifies the contents of the register"]
#[inline]
pub fn modify<F>(&self, f: F)
where
for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W,
{
let bits = self.register.get();
let r = R { bits: bits };
let mut w = W { bits: bits };
f(&r, &mut w);
self.register.set(w.bits);
}
#[doc = r" Reads the contents of the register"]
#[inline]
pub fn read(&self) -> R {
R {
bits: self.register.get(),
}
}
#[doc = r" Writes to the register"]
#[inline]
pub fn write<F>(&self, f: F)
where
F: FnOnce(&mut W) -> &mut W,
{
let mut w = W::reset_value();
f(&mut w);
self.register.set(w.bits);
}
#[doc = r" Writes the reset value to the register"]
#[inline]
pub fn reset(&self) {
self.write(|w| w)
}
}
#[doc = "Possible values of the field `ERR0`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR0R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR0R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR0R::_0 => false,
ERR0R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR0R {
match value {
false => ERR0R::_0,
true => ERR0R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR0R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR0R::_1
}
}
#[doc = "Possible values of the field `ERR1`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR1R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR1R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR1R::_0 => false,
ERR1R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR1R {
match value {
false => ERR1R::_0,
true => ERR1R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR1R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR1R::_1
}
}
#[doc = "Possible values of the field `ERR2`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR2R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR2R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR2R::_0 => false,
ERR2R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR2R {
match value {
false => ERR2R::_0,
true => ERR2R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR2R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR2R::_1
}
}
#[doc = "Possible values of the field `ERR3`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR3R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR3R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR3R::_0 => false,
ERR3R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR3R {
match value {
false => ERR3R::_0,
true => ERR3R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR3R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR3R::_1
}
}
#[doc = "Possible values of the field `ERR4`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR4R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR4R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR4R::_0 => false,
ERR4R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR4R {
match value {
false => ERR4R::_0,
true => ERR4R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR4R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR4R::_1
}
}
#[doc = "Possible values of the field `ERR5`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR5R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR5R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR5R::_0 => false,
ERR5R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR5R {
match value {
false => ERR5R::_0,
true => ERR5R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR5R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR5R::_1
}
}
#[doc = "Possible values of the field `ERR6`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR6R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR6R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR6R::_0 => false,
ERR6R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR6R {
match value {
false => ERR6R::_0,
true => ERR6R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR6R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR6R::_1
}
}
#[doc = "Possible values of the field `ERR7`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR7R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR7R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR7R::_0 => false,
ERR7R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR7R {
match value {
false => ERR7R::_0,
true => ERR7R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR7R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR7R::_1
}
}
#[doc = "Possible values of the field `ERR8`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR8R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR8R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR8R::_0 => false,
ERR8R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR8R {
match value {
false => ERR8R::_0,
true => ERR8R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR8R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR8R::_1
}
}
#[doc = "Possible values of the field `ERR9`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR9R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR9R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR9R::_0 => false,
ERR9R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR9R {
match value {
false => ERR9R::_0,
true => ERR9R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR9R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR9R::_1
}
}
#[doc = "Possible values of the field `ERR10`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR10R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR10R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR10R::_0 => false,
ERR10R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR10R {
match value {
false => ERR10R::_0,
true => ERR10R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR10R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR10R::_1
}
}
#[doc = "Possible values of the field `ERR11`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR11R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR11R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR11R::_0 => false,
ERR11R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR11R {
match value {
false => ERR11R::_0,
true => ERR11R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR11R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR11R::_1
}
}
#[doc = "Possible values of the field `ERR12`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR12R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR12R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR12R::_0 => false,
ERR12R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR12R {
match value {
false => ERR12R::_0,
true => ERR12R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR12R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR12R::_1
}
}
#[doc = "Possible values of the field `ERR13`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR13R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR13R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR13R::_0 => false,
ERR13R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR13R {
match value {
false => ERR13R::_0,
true => ERR13R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR13R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR13R::_1
}
}
#[doc = "Possible values of the field `ERR14`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR14R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR14R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR14R::_0 => false,
ERR14R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR14R {
match value {
false => ERR14R::_0,
true => ERR14R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR14R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR14R::_1
}
}
#[doc = "Possible values of the field `ERR15`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR15R {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR15R {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
#[doc = r" Value of the field as raw bits"]
#[inline]
pub fn bit(&self) -> bool {
match *self {
ERR15R::_0 => false,
ERR15R::_1 => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ERR15R {
match value {
false => ERR15R::_0,
true => ERR15R::_1,
}
}
#[doc = "Checks if the value of the field is `_0`"]
#[inline]
pub fn is_0(&self) -> bool {
*self == ERR15R::_0
}
#[doc = "Checks if the value of the field is `_1`"]
#[inline]
pub fn is_1(&self) -> bool {
*self == ERR15R::_1
}
}
#[doc = "Values that can be written to the field `ERR0`"]
pub enum ERR0W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR0W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR0W::_0 => false,
ERR0W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR0W<'a> {
w: &'a mut W,
}
impl<'a> _ERR0W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR0W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR0W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR0W::_1)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 0;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR1`"]
pub enum ERR1W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR1W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR1W::_0 => false,
ERR1W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR1W<'a> {
w: &'a mut W,
}
impl<'a> _ERR1W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR1W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR1W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR1W::_1)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 1;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR2`"]
pub enum ERR2W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR2W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR2W::_0 => false,
ERR2W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR2W<'a> {
w: &'a mut W,
}
impl<'a> _ERR2W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR2W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR2W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR2W::_1)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 2;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR3`"]
pub enum ERR3W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR3W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR3W::_0 => false,
ERR3W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR3W<'a> {
w: &'a mut W,
}
impl<'a> _ERR3W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR3W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR3W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR3W::_1)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 3;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR4`"]
pub enum ERR4W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR4W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR4W::_0 => false,
ERR4W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR4W<'a> {
w: &'a mut W,
}
impl<'a> _ERR4W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR4W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR4W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR4W::_1)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 4;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR5`"]
pub enum ERR5W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR5W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR5W::_0 => false,
ERR5W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR5W<'a> {
w: &'a mut W,
}
impl<'a> _ERR5W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR5W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR5W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR5W::_1)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 5;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR6`"]
pub enum ERR6W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR6W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR6W::_0 => false,
ERR6W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR6W<'a> {
w: &'a mut W,
}
impl<'a> _ERR6W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR6W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR6W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR6W::_1)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 6;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR7`"]
pub enum ERR7W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR7W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR7W::_0 => false,
ERR7W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR7W<'a> {
w: &'a mut W,
}
impl<'a> _ERR7W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR7W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR7W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR7W::_1)
}
#[doc = r" Sets the field bit"]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r" Clears the field bit"]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r" Writes raw bits to the field"]
#[inline]
pub fn bit(self, value: bool) -> &'a mut W {
const MASK: bool = true;
const OFFSET: u8 = 7;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR8`"]
pub enum ERR8W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR8W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR8W::_0 => false,
ERR8W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR8W<'a> {
w: &'a mut W,
}
impl<'a> _ERR8W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR8W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR8W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR8W::_1)
}
#[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 = 8;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR9`"]
pub enum ERR9W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR9W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR9W::_0 => false,
ERR9W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR9W<'a> {
w: &'a mut W,
}
impl<'a> _ERR9W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR9W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR9W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR9W::_1)
}
#[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 = 9;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR10`"]
pub enum ERR10W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR10W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR10W::_0 => false,
ERR10W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR10W<'a> {
w: &'a mut W,
}
impl<'a> _ERR10W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR10W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR10W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR10W::_1)
}
#[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 = 10;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR11`"]
pub enum ERR11W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR11W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR11W::_0 => false,
ERR11W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR11W<'a> {
w: &'a mut W,
}
impl<'a> _ERR11W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR11W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR11W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR11W::_1)
}
#[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 = 11;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR12`"]
pub enum ERR12W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR12W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR12W::_0 => false,
ERR12W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR12W<'a> {
w: &'a mut W,
}
impl<'a> _ERR12W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR12W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR12W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR12W::_1)
}
#[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 = "Values that can be written to the field `ERR13`"]
pub enum ERR13W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR13W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR13W::_0 => false,
ERR13W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR13W<'a> {
w: &'a mut W,
}
impl<'a> _ERR13W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR13W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR13W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR13W::_1)
}
#[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 = 13;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR14`"]
pub enum ERR14W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR14W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR14W::_0 => false,
ERR14W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR14W<'a> {
w: &'a mut W,
}
impl<'a> _ERR14W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR14W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR14W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR14W::_1)
}
#[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 = 14;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
#[doc = "Values that can be written to the field `ERR15`"]
pub enum ERR15W {
#[doc = "An error in this channel has not occurred"]
_0,
#[doc = "An error in this channel has occurred"]
_1,
}
impl ERR15W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ERR15W::_0 => false,
ERR15W::_1 => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ERR15W<'a> {
w: &'a mut W,
}
impl<'a> _ERR15W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ERR15W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "An error in this channel has not occurred"]
#[inline]
pub fn _0(self) -> &'a mut W {
self.variant(ERR15W::_0)
}
#[doc = "An error in this channel has occurred"]
#[inline]
pub fn _1(self) -> &'a mut W {
self.variant(ERR15W::_1)
}
#[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 = 15;
self.w.bits &= !((MASK as u32) << OFFSET);
self.w.bits |= ((value & MASK) as u32) << OFFSET;
self.w
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bit 0 - Error In Channel 0"]
#[inline]
pub fn err0(&self) -> ERR0R {
ERR0R::_from({
const MASK: bool = true;
const OFFSET: u8 = 0;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 1 - Error In Channel 1"]
#[inline]
pub fn err1(&self) -> ERR1R {
ERR1R::_from({
const MASK: bool = true;
const OFFSET: u8 = 1;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 2 - Error In Channel 2"]
#[inline]
pub fn err2(&self) -> ERR2R {
ERR2R::_from({
const MASK: bool = true;
const OFFSET: u8 = 2;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 3 - Error In Channel 3"]
#[inline]
pub fn err3(&self) -> ERR3R {
ERR3R::_from({
const MASK: bool = true;
const OFFSET: u8 = 3;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 4 - Error In Channel 4"]
#[inline]
pub fn err4(&self) -> ERR4R {
ERR4R::_from({
const MASK: bool = true;
const OFFSET: u8 = 4;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 5 - Error In Channel 5"]
#[inline]
pub fn err5(&self) -> ERR5R {
ERR5R::_from({
const MASK: bool = true;
const OFFSET: u8 = 5;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 6 - Error In Channel 6"]
#[inline]
pub fn err6(&self) -> ERR6R {
ERR6R::_from({
const MASK: bool = true;
const OFFSET: u8 = 6;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 7 - Error In Channel 7"]
#[inline]
pub fn err7(&self) -> ERR7R {
ERR7R::_from({
const MASK: bool = true;
const OFFSET: u8 = 7;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 8 - Error In Channel 8"]
#[inline]
pub fn err8(&self) -> ERR8R {
ERR8R::_from({
const MASK: bool = true;
const OFFSET: u8 = 8;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 9 - Error In Channel 9"]
#[inline]
pub fn err9(&self) -> ERR9R {
ERR9R::_from({
const MASK: bool = true;
const OFFSET: u8 = 9;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 10 - Error In Channel 10"]
#[inline]
pub fn err10(&self) -> ERR10R {
ERR10R::_from({
const MASK: bool = true;
const OFFSET: u8 = 10;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 11 - Error In Channel 11"]
#[inline]
pub fn err11(&self) -> ERR11R {
ERR11R::_from({
const MASK: bool = true;
const OFFSET: u8 = 11;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 12 - Error In Channel 12"]
#[inline]
pub fn err12(&self) -> ERR12R {
ERR12R::_from({
const MASK: bool = true;
const OFFSET: u8 = 12;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 13 - Error In Channel 13"]
#[inline]
pub fn err13(&self) -> ERR13R {
ERR13R::_from({
const MASK: bool = true;
const OFFSET: u8 = 13;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 14 - Error In Channel 14"]
#[inline]
pub fn err14(&self) -> ERR14R {
ERR14R::_from({
const MASK: bool = true;
const OFFSET: u8 = 14;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 15 - Error In Channel 15"]
#[inline]
pub fn err15(&self) -> ERR15R {
ERR15R::_from({
const MASK: bool = true;
const OFFSET: u8 = 15;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
}
impl W {
#[doc = r" Reset value of the register"]
#[inline]
pub fn reset_value() -> W {
W { bits: 0 }
}
#[doc = r" Writes raw bits to the register"]
#[inline]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
#[doc = "Bit 0 - Error In Channel 0"]
#[inline]
pub fn err0(&mut self) -> _ERR0W {
_ERR0W { w: self }
}
#[doc = "Bit 1 - Error In Channel 1"]
#[inline]
pub fn err1(&mut self) -> _ERR1W {
_ERR1W { w: self }
}
#[doc = "Bit 2 - Error In Channel 2"]
#[inline]
pub fn err2(&mut self) -> _ERR2W {
_ERR2W { w: self }
}
#[doc = "Bit 3 - Error In Channel 3"]
#[inline]
pub fn err3(&mut self) -> _ERR3W {
_ERR3W { w: self }
}
#[doc = "Bit 4 - Error In Channel 4"]
#[inline]
pub fn err4(&mut self) -> _ERR4W {
_ERR4W { w: self }
}
#[doc = "Bit 5 - Error In Channel 5"]
#[inline]
pub fn err5(&mut self) -> _ERR5W {
_ERR5W { w: self }
}
#[doc = "Bit 6 - Error In Channel 6"]
#[inline]
pub fn err6(&mut self) -> _ERR6W {
_ERR6W { w: self }
}
#[doc = "Bit 7 - Error In Channel 7"]
#[inline]
pub fn err7(&mut self) -> _ERR7W {
_ERR7W { w: self }
}
#[doc = "Bit 8 - Error In Channel 8"]
#[inline]
pub fn err8(&mut self) -> _ERR8W {
_ERR8W { w: self }
}
#[doc = "Bit 9 - Error In Channel 9"]
#[inline]
pub fn err9(&mut self) -> _ERR9W {
_ERR9W { w: self }
}
#[doc = "Bit 10 - Error In Channel 10"]
#[inline]
pub fn err10(&mut self) -> _ERR10W {
_ERR10W { w: self }
}
#[doc = "Bit 11 - Error In Channel 11"]
#[inline]
pub fn err11(&mut self) -> _ERR11W {
_ERR11W { w: self }
}
#[doc = "Bit 12 - Error In Channel 12"]
#[inline]
pub fn err12(&mut self) -> _ERR12W {
_ERR12W { w: self }
}
#[doc = "Bit 13 - Error In Channel 13"]
#[inline]
pub fn err13(&mut self) -> _ERR13W {
_ERR13W { w: self }
}
#[doc = "Bit 14 - Error In Channel 14"]
#[inline]
pub fn err14(&mut self) -> _ERR14W {
_ERR14W { w: self }
}
#[doc = "Bit 15 - Error In Channel 15"]
#[inline]
pub fn err15(&mut self) -> _ERR15W {
_ERR15W { w: self }
}
}