#[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::RXADDRESSES {
#[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 `ADDR0`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADDR0R {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR0R {
#[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 {
ADDR0R::DISABLED => false,
ADDR0R::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ADDR0R {
match value {
false => ADDR0R::DISABLED,
true => ADDR0R::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == ADDR0R::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == ADDR0R::ENABLED
}
}
#[doc = "Possible values of the field `ADDR1`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADDR1R {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR1R {
#[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 {
ADDR1R::DISABLED => false,
ADDR1R::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ADDR1R {
match value {
false => ADDR1R::DISABLED,
true => ADDR1R::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == ADDR1R::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == ADDR1R::ENABLED
}
}
#[doc = "Possible values of the field `ADDR2`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADDR2R {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR2R {
#[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 {
ADDR2R::DISABLED => false,
ADDR2R::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ADDR2R {
match value {
false => ADDR2R::DISABLED,
true => ADDR2R::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == ADDR2R::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == ADDR2R::ENABLED
}
}
#[doc = "Possible values of the field `ADDR3`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADDR3R {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR3R {
#[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 {
ADDR3R::DISABLED => false,
ADDR3R::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ADDR3R {
match value {
false => ADDR3R::DISABLED,
true => ADDR3R::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == ADDR3R::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == ADDR3R::ENABLED
}
}
#[doc = "Possible values of the field `ADDR4`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADDR4R {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR4R {
#[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 {
ADDR4R::DISABLED => false,
ADDR4R::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ADDR4R {
match value {
false => ADDR4R::DISABLED,
true => ADDR4R::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == ADDR4R::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == ADDR4R::ENABLED
}
}
#[doc = "Possible values of the field `ADDR5`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADDR5R {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR5R {
#[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 {
ADDR5R::DISABLED => false,
ADDR5R::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ADDR5R {
match value {
false => ADDR5R::DISABLED,
true => ADDR5R::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == ADDR5R::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == ADDR5R::ENABLED
}
}
#[doc = "Possible values of the field `ADDR6`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADDR6R {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR6R {
#[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 {
ADDR6R::DISABLED => false,
ADDR6R::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ADDR6R {
match value {
false => ADDR6R::DISABLED,
true => ADDR6R::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == ADDR6R::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == ADDR6R::ENABLED
}
}
#[doc = "Possible values of the field `ADDR7`"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADDR7R {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR7R {
#[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 {
ADDR7R::DISABLED => false,
ADDR7R::ENABLED => true,
}
}
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _from(value: bool) -> ADDR7R {
match value {
false => ADDR7R::DISABLED,
true => ADDR7R::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline]
pub fn is_disabled(&self) -> bool {
*self == ADDR7R::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline]
pub fn is_enabled(&self) -> bool {
*self == ADDR7R::ENABLED
}
}
#[doc = "Values that can be written to the field `ADDR0`"]
pub enum ADDR0W {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR0W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ADDR0W::DISABLED => false,
ADDR0W::ENABLED => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ADDR0W<'a> {
w: &'a mut W,
}
impl<'a> _ADDR0W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ADDR0W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Disable"]
#[inline]
pub fn disabled(self) -> &'a mut W {
self.variant(ADDR0W::DISABLED)
}
#[doc = "Enable"]
#[inline]
pub fn enabled(self) -> &'a mut W {
self.variant(ADDR0W::ENABLED)
}
#[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 `ADDR1`"]
pub enum ADDR1W {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR1W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ADDR1W::DISABLED => false,
ADDR1W::ENABLED => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ADDR1W<'a> {
w: &'a mut W,
}
impl<'a> _ADDR1W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ADDR1W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Disable"]
#[inline]
pub fn disabled(self) -> &'a mut W {
self.variant(ADDR1W::DISABLED)
}
#[doc = "Enable"]
#[inline]
pub fn enabled(self) -> &'a mut W {
self.variant(ADDR1W::ENABLED)
}
#[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 `ADDR2`"]
pub enum ADDR2W {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR2W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ADDR2W::DISABLED => false,
ADDR2W::ENABLED => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ADDR2W<'a> {
w: &'a mut W,
}
impl<'a> _ADDR2W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ADDR2W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Disable"]
#[inline]
pub fn disabled(self) -> &'a mut W {
self.variant(ADDR2W::DISABLED)
}
#[doc = "Enable"]
#[inline]
pub fn enabled(self) -> &'a mut W {
self.variant(ADDR2W::ENABLED)
}
#[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 `ADDR3`"]
pub enum ADDR3W {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR3W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ADDR3W::DISABLED => false,
ADDR3W::ENABLED => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ADDR3W<'a> {
w: &'a mut W,
}
impl<'a> _ADDR3W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ADDR3W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Disable"]
#[inline]
pub fn disabled(self) -> &'a mut W {
self.variant(ADDR3W::DISABLED)
}
#[doc = "Enable"]
#[inline]
pub fn enabled(self) -> &'a mut W {
self.variant(ADDR3W::ENABLED)
}
#[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 `ADDR4`"]
pub enum ADDR4W {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR4W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ADDR4W::DISABLED => false,
ADDR4W::ENABLED => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ADDR4W<'a> {
w: &'a mut W,
}
impl<'a> _ADDR4W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ADDR4W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Disable"]
#[inline]
pub fn disabled(self) -> &'a mut W {
self.variant(ADDR4W::DISABLED)
}
#[doc = "Enable"]
#[inline]
pub fn enabled(self) -> &'a mut W {
self.variant(ADDR4W::ENABLED)
}
#[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 `ADDR5`"]
pub enum ADDR5W {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR5W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ADDR5W::DISABLED => false,
ADDR5W::ENABLED => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ADDR5W<'a> {
w: &'a mut W,
}
impl<'a> _ADDR5W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ADDR5W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Disable"]
#[inline]
pub fn disabled(self) -> &'a mut W {
self.variant(ADDR5W::DISABLED)
}
#[doc = "Enable"]
#[inline]
pub fn enabled(self) -> &'a mut W {
self.variant(ADDR5W::ENABLED)
}
#[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 `ADDR6`"]
pub enum ADDR6W {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR6W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ADDR6W::DISABLED => false,
ADDR6W::ENABLED => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ADDR6W<'a> {
w: &'a mut W,
}
impl<'a> _ADDR6W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ADDR6W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Disable"]
#[inline]
pub fn disabled(self) -> &'a mut W {
self.variant(ADDR6W::DISABLED)
}
#[doc = "Enable"]
#[inline]
pub fn enabled(self) -> &'a mut W {
self.variant(ADDR6W::ENABLED)
}
#[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 `ADDR7`"]
pub enum ADDR7W {
#[doc = "Disable"]
DISABLED,
#[doc = "Enable"]
ENABLED,
}
impl ADDR7W {
#[allow(missing_docs)]
#[doc(hidden)]
#[inline]
pub fn _bits(&self) -> bool {
match *self {
ADDR7W::DISABLED => false,
ADDR7W::ENABLED => true,
}
}
}
#[doc = r" Proxy"]
pub struct _ADDR7W<'a> {
w: &'a mut W,
}
impl<'a> _ADDR7W<'a> {
#[doc = r" Writes `variant` to the field"]
#[inline]
pub fn variant(self, variant: ADDR7W) -> &'a mut W {
{
self.bit(variant._bits())
}
}
#[doc = "Disable"]
#[inline]
pub fn disabled(self) -> &'a mut W {
self.variant(ADDR7W::DISABLED)
}
#[doc = "Enable"]
#[inline]
pub fn enabled(self) -> &'a mut W {
self.variant(ADDR7W::ENABLED)
}
#[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
}
}
impl R {
#[doc = r" Value of the register as raw bits"]
#[inline]
pub fn bits(&self) -> u32 {
self.bits
}
#[doc = "Bit 0 - Enable or disable reception on logical address 0."]
#[inline]
pub fn addr0(&self) -> ADDR0R {
ADDR0R::_from({
const MASK: bool = true;
const OFFSET: u8 = 0;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 1 - Enable or disable reception on logical address 1."]
#[inline]
pub fn addr1(&self) -> ADDR1R {
ADDR1R::_from({
const MASK: bool = true;
const OFFSET: u8 = 1;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 2 - Enable or disable reception on logical address 2."]
#[inline]
pub fn addr2(&self) -> ADDR2R {
ADDR2R::_from({
const MASK: bool = true;
const OFFSET: u8 = 2;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 3 - Enable or disable reception on logical address 3."]
#[inline]
pub fn addr3(&self) -> ADDR3R {
ADDR3R::_from({
const MASK: bool = true;
const OFFSET: u8 = 3;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 4 - Enable or disable reception on logical address 4."]
#[inline]
pub fn addr4(&self) -> ADDR4R {
ADDR4R::_from({
const MASK: bool = true;
const OFFSET: u8 = 4;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 5 - Enable or disable reception on logical address 5."]
#[inline]
pub fn addr5(&self) -> ADDR5R {
ADDR5R::_from({
const MASK: bool = true;
const OFFSET: u8 = 5;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 6 - Enable or disable reception on logical address 6."]
#[inline]
pub fn addr6(&self) -> ADDR6R {
ADDR6R::_from({
const MASK: bool = true;
const OFFSET: u8 = 6;
((self.bits >> OFFSET) & MASK as u32) != 0
})
}
#[doc = "Bit 7 - Enable or disable reception on logical address 7."]
#[inline]
pub fn addr7(&self) -> ADDR7R {
ADDR7R::_from({
const MASK: bool = true;
const OFFSET: u8 = 7;
((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 - Enable or disable reception on logical address 0."]
#[inline]
pub fn addr0(&mut self) -> _ADDR0W {
_ADDR0W { w: self }
}
#[doc = "Bit 1 - Enable or disable reception on logical address 1."]
#[inline]
pub fn addr1(&mut self) -> _ADDR1W {
_ADDR1W { w: self }
}
#[doc = "Bit 2 - Enable or disable reception on logical address 2."]
#[inline]
pub fn addr2(&mut self) -> _ADDR2W {
_ADDR2W { w: self }
}
#[doc = "Bit 3 - Enable or disable reception on logical address 3."]
#[inline]
pub fn addr3(&mut self) -> _ADDR3W {
_ADDR3W { w: self }
}
#[doc = "Bit 4 - Enable or disable reception on logical address 4."]
#[inline]
pub fn addr4(&mut self) -> _ADDR4W {
_ADDR4W { w: self }
}
#[doc = "Bit 5 - Enable or disable reception on logical address 5."]
#[inline]
pub fn addr5(&mut self) -> _ADDR5W {
_ADDR5W { w: self }
}
#[doc = "Bit 6 - Enable or disable reception on logical address 6."]
#[inline]
pub fn addr6(&mut self) -> _ADDR6W {
_ADDR6W { w: self }
}
#[doc = "Bit 7 - Enable or disable reception on logical address 7."]
#[inline]
pub fn addr7(&mut self) -> _ADDR7W {
_ADDR7W { w: self }
}
}