#[doc = "Reader of register CTL0"]
pub type R = crate::R<u32, super::CTL0>;
#[doc = "Writer for register CTL0"]
pub type W = crate::W<u32, super::CTL0>;
#[doc = "Register CTL0 `reset()`'s with value 0"]
impl crate::ResetValue for super::CTL0 {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "End of Block interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum EBIE_A {
#[doc = "0: End of block interrupt is disabled"]
DISABLED = 0,
#[doc = "1: End of block interrupt is enabled"]
ENABLED = 1,
}
impl From<EBIE_A> for bool {
#[inline(always)]
fn from(variant: EBIE_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `EBIE`"]
pub type EBIE_R = crate::R<bool, EBIE_A>;
impl EBIE_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> EBIE_A {
match self.bits {
false => EBIE_A::DISABLED,
true => EBIE_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == EBIE_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == EBIE_A::ENABLED
}
}
#[doc = "Write proxy for field `EBIE`"]
pub struct EBIE_W<'a> {
w: &'a mut W,
}
impl<'a> EBIE_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: EBIE_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "End of block interrupt is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(EBIE_A::DISABLED)
}
#[doc = "End of block interrupt is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(EBIE_A::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 = (self.w.bits & !(0x01 << 27)) | (((value as u32) & 0x01) << 27);
self.w
}
}
#[doc = "Receiver timeout interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RTIE_A {
#[doc = "0: Receiver timeout interrupt is disabled"]
DISABLED = 0,
#[doc = "1: Receiver timeout interrupt is enabled"]
ENABLED = 1,
}
impl From<RTIE_A> for bool {
#[inline(always)]
fn from(variant: RTIE_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `RTIE`"]
pub type RTIE_R = crate::R<bool, RTIE_A>;
impl RTIE_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RTIE_A {
match self.bits {
false => RTIE_A::DISABLED,
true => RTIE_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RTIE_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RTIE_A::ENABLED
}
}
#[doc = "Write proxy for field `RTIE`"]
pub struct RTIE_W<'a> {
w: &'a mut W,
}
impl<'a> RTIE_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RTIE_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Receiver timeout interrupt is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RTIE_A::DISABLED)
}
#[doc = "Receiver timeout interrupt is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RTIE_A::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 = (self.w.bits & !(0x01 << 26)) | (((value as u32) & 0x01) << 26);
self.w
}
}
#[doc = "Reader of field `DEA`"]
pub type DEA_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `DEA`"]
pub struct DEA_W<'a> {
w: &'a mut W,
}
impl<'a> DEA_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x1f << 21)) | (((value as u32) & 0x1f) << 21);
self.w
}
}
#[doc = "Reader of field `DED`"]
pub type DED_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `DED`"]
pub struct DED_W<'a> {
w: &'a mut W,
}
impl<'a> DED_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x1f << 16)) | (((value as u32) & 0x1f) << 16);
self.w
}
}
#[doc = "Oversampling mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum OVSMOD_A {
#[doc = "0: Oversampling by 16"]
OVERSAMPLING16 = 0,
#[doc = "1: Oversampling by 8"]
OVERSAMPLING8 = 1,
}
impl From<OVSMOD_A> for bool {
#[inline(always)]
fn from(variant: OVSMOD_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `OVSMOD`"]
pub type OVSMOD_R = crate::R<bool, OVSMOD_A>;
impl OVSMOD_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> OVSMOD_A {
match self.bits {
false => OVSMOD_A::OVERSAMPLING16,
true => OVSMOD_A::OVERSAMPLING8,
}
}
#[doc = "Checks if the value of the field is `OVERSAMPLING16`"]
#[inline(always)]
pub fn is_oversampling16(&self) -> bool {
*self == OVSMOD_A::OVERSAMPLING16
}
#[doc = "Checks if the value of the field is `OVERSAMPLING8`"]
#[inline(always)]
pub fn is_oversampling8(&self) -> bool {
*self == OVSMOD_A::OVERSAMPLING8
}
}
#[doc = "Write proxy for field `OVSMOD`"]
pub struct OVSMOD_W<'a> {
w: &'a mut W,
}
impl<'a> OVSMOD_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: OVSMOD_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Oversampling by 16"]
#[inline(always)]
pub fn oversampling16(self) -> &'a mut W {
self.variant(OVSMOD_A::OVERSAMPLING16)
}
#[doc = "Oversampling by 8"]
#[inline(always)]
pub fn oversampling8(self) -> &'a mut W {
self.variant(OVSMOD_A::OVERSAMPLING8)
}
#[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 = (self.w.bits & !(0x01 << 15)) | (((value as u32) & 0x01) << 15);
self.w
}
}
#[doc = "ADDR match interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum AMIE_A {
#[doc = "0: Address match interrupt is disabled"]
DISABLED = 0,
#[doc = "1: Address match interrupt is enabled"]
ENABLED = 1,
}
impl From<AMIE_A> for bool {
#[inline(always)]
fn from(variant: AMIE_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `AMIE`"]
pub type AMIE_R = crate::R<bool, AMIE_A>;
impl AMIE_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> AMIE_A {
match self.bits {
false => AMIE_A::DISABLED,
true => AMIE_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == AMIE_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == AMIE_A::ENABLED
}
}
#[doc = "Write proxy for field `AMIE`"]
pub struct AMIE_W<'a> {
w: &'a mut W,
}
impl<'a> AMIE_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: AMIE_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Address match interrupt is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(AMIE_A::DISABLED)
}
#[doc = "Address match interrupt is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(AMIE_A::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 = (self.w.bits & !(0x01 << 14)) | (((value as u32) & 0x01) << 14);
self.w
}
}
#[doc = "Mute mode enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum MEN_A {
#[doc = "0: Receiver in active mode permanently"]
DISABLED = 0,
#[doc = "1: Receiver can switch between mute mode and active mode"]
ENABLED = 1,
}
impl From<MEN_A> for bool {
#[inline(always)]
fn from(variant: MEN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `MEN`"]
pub type MEN_R = crate::R<bool, MEN_A>;
impl MEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> MEN_A {
match self.bits {
false => MEN_A::DISABLED,
true => MEN_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == MEN_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == MEN_A::ENABLED
}
}
#[doc = "Write proxy for field `MEN`"]
pub struct MEN_W<'a> {
w: &'a mut W,
}
impl<'a> MEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: MEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Receiver in active mode permanently"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(MEN_A::DISABLED)
}
#[doc = "Receiver can switch between mute mode and active mode"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(MEN_A::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 = (self.w.bits & !(0x01 << 13)) | (((value as u32) & 0x01) << 13);
self.w
}
}
#[doc = "Word length\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum WL_A {
#[doc = "0: 8 data bits"]
BIT8 = 0,
#[doc = "1: 9 data bits"]
BIT9 = 1,
}
impl From<WL_A> for bool {
#[inline(always)]
fn from(variant: WL_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `WL`"]
pub type WL_R = crate::R<bool, WL_A>;
impl WL_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> WL_A {
match self.bits {
false => WL_A::BIT8,
true => WL_A::BIT9,
}
}
#[doc = "Checks if the value of the field is `BIT8`"]
#[inline(always)]
pub fn is_bit8(&self) -> bool {
*self == WL_A::BIT8
}
#[doc = "Checks if the value of the field is `BIT9`"]
#[inline(always)]
pub fn is_bit9(&self) -> bool {
*self == WL_A::BIT9
}
}
#[doc = "Write proxy for field `WL`"]
pub struct WL_W<'a> {
w: &'a mut W,
}
impl<'a> WL_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: WL_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "8 data bits"]
#[inline(always)]
pub fn bit8(self) -> &'a mut W {
self.variant(WL_A::BIT8)
}
#[doc = "9 data bits"]
#[inline(always)]
pub fn bit9(self) -> &'a mut W {
self.variant(WL_A::BIT9)
}
#[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 = (self.w.bits & !(0x01 << 12)) | (((value as u32) & 0x01) << 12);
self.w
}
}
#[doc = "Wakeup method in mute mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum WM_A {
#[doc = "0: Idle line"]
IDLE = 0,
#[doc = "1: Address mask"]
ADDRESS = 1,
}
impl From<WM_A> for bool {
#[inline(always)]
fn from(variant: WM_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `WM`"]
pub type WM_R = crate::R<bool, WM_A>;
impl WM_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> WM_A {
match self.bits {
false => WM_A::IDLE,
true => WM_A::ADDRESS,
}
}
#[doc = "Checks if the value of the field is `IDLE`"]
#[inline(always)]
pub fn is_idle(&self) -> bool {
*self == WM_A::IDLE
}
#[doc = "Checks if the value of the field is `ADDRESS`"]
#[inline(always)]
pub fn is_address(&self) -> bool {
*self == WM_A::ADDRESS
}
}
#[doc = "Write proxy for field `WM`"]
pub struct WM_W<'a> {
w: &'a mut W,
}
impl<'a> WM_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: WM_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Idle line"]
#[inline(always)]
pub fn idle(self) -> &'a mut W {
self.variant(WM_A::IDLE)
}
#[doc = "Address mask"]
#[inline(always)]
pub fn address(self) -> &'a mut W {
self.variant(WM_A::ADDRESS)
}
#[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 = (self.w.bits & !(0x01 << 11)) | (((value as u32) & 0x01) << 11);
self.w
}
}
#[doc = "Parity control enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PCEN_A {
#[doc = "0: Parity control disabled"]
DISABLED = 0,
#[doc = "1: Parity control enabled"]
ENABLED = 1,
}
impl From<PCEN_A> for bool {
#[inline(always)]
fn from(variant: PCEN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PCEN`"]
pub type PCEN_R = crate::R<bool, PCEN_A>;
impl PCEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PCEN_A {
match self.bits {
false => PCEN_A::DISABLED,
true => PCEN_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == PCEN_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == PCEN_A::ENABLED
}
}
#[doc = "Write proxy for field `PCEN`"]
pub struct PCEN_W<'a> {
w: &'a mut W,
}
impl<'a> PCEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PCEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Parity control disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(PCEN_A::DISABLED)
}
#[doc = "Parity control enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(PCEN_A::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 = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
self.w
}
}
#[doc = "Parity selection\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PM_A {
#[doc = "0: Even parity"]
EVEN = 0,
#[doc = "1: Odd parity"]
ODD = 1,
}
impl From<PM_A> for bool {
#[inline(always)]
fn from(variant: PM_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PM`"]
pub type PM_R = crate::R<bool, PM_A>;
impl PM_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PM_A {
match self.bits {
false => PM_A::EVEN,
true => PM_A::ODD,
}
}
#[doc = "Checks if the value of the field is `EVEN`"]
#[inline(always)]
pub fn is_even(&self) -> bool {
*self == PM_A::EVEN
}
#[doc = "Checks if the value of the field is `ODD`"]
#[inline(always)]
pub fn is_odd(&self) -> bool {
*self == PM_A::ODD
}
}
#[doc = "Write proxy for field `PM`"]
pub struct PM_W<'a> {
w: &'a mut W,
}
impl<'a> PM_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PM_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Even parity"]
#[inline(always)]
pub fn even(self) -> &'a mut W {
self.variant(PM_A::EVEN)
}
#[doc = "Odd parity"]
#[inline(always)]
pub fn odd(self) -> &'a mut W {
self.variant(PM_A::ODD)
}
#[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 = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
self.w
}
}
#[doc = "Parity error interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum PERRIE_A {
#[doc = "0: Parity error interrupt is disabled"]
DISABLED = 0,
#[doc = "1: Interrupt is generated whenever PERR=1 in the STAT register"]
ENABLED = 1,
}
impl From<PERRIE_A> for bool {
#[inline(always)]
fn from(variant: PERRIE_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `PERRIE`"]
pub type PERRIE_R = crate::R<bool, PERRIE_A>;
impl PERRIE_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> PERRIE_A {
match self.bits {
false => PERRIE_A::DISABLED,
true => PERRIE_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == PERRIE_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == PERRIE_A::ENABLED
}
}
#[doc = "Write proxy for field `PERRIE`"]
pub struct PERRIE_W<'a> {
w: &'a mut W,
}
impl<'a> PERRIE_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: PERRIE_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Parity error interrupt is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(PERRIE_A::DISABLED)
}
#[doc = "Interrupt is generated whenever PERR=1 in the STAT register"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(PERRIE_A::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 = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
self.w
}
}
#[doc = "Transmitter register empty interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TBEIE_A {
#[doc = "0: Transmission register empty interrupt is disabled"]
DISABLED = 0,
#[doc = "1: Interrupt is generated whenever TBE=1 in the STAT register"]
ENABLED = 1,
}
impl From<TBEIE_A> for bool {
#[inline(always)]
fn from(variant: TBEIE_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `TBEIE`"]
pub type TBEIE_R = crate::R<bool, TBEIE_A>;
impl TBEIE_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> TBEIE_A {
match self.bits {
false => TBEIE_A::DISABLED,
true => TBEIE_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TBEIE_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TBEIE_A::ENABLED
}
}
#[doc = "Write proxy for field `TBEIE`"]
pub struct TBEIE_W<'a> {
w: &'a mut W,
}
impl<'a> TBEIE_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: TBEIE_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Transmission register empty interrupt is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(TBEIE_A::DISABLED)
}
#[doc = "Interrupt is generated whenever TBE=1 in the STAT register"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(TBEIE_A::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 = (self.w.bits & !(0x01 << 7)) | (((value as u32) & 0x01) << 7);
self.w
}
}
#[doc = "Transmission complete interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TCIE_A {
#[doc = "0: Transmission complete interrupt is disabled"]
DISABLED = 0,
#[doc = "1: Interrupt is generated whenever TC=1 in the STAT register"]
ENABLED = 1,
}
impl From<TCIE_A> for bool {
#[inline(always)]
fn from(variant: TCIE_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `TCIE`"]
pub type TCIE_R = crate::R<bool, TCIE_A>;
impl TCIE_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> TCIE_A {
match self.bits {
false => TCIE_A::DISABLED,
true => TCIE_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TCIE_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TCIE_A::ENABLED
}
}
#[doc = "Write proxy for field `TCIE`"]
pub struct TCIE_W<'a> {
w: &'a mut W,
}
impl<'a> TCIE_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: TCIE_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Transmission complete interrupt is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(TCIE_A::DISABLED)
}
#[doc = "Interrupt is generated whenever TC=1 in the STAT register"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(TCIE_A::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 = (self.w.bits & !(0x01 << 6)) | (((value as u32) & 0x01) << 6);
self.w
}
}
#[doc = "Read data buffer not empty interrupt and overrun error interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum RBNEIE_A {
#[doc = "0: Read data buffer not empty and overrrun error interrupts are disabled"]
DISABLED = 0,
#[doc = "1: Interrupt is generated whenever ORERR=1 or RBNE=1 in the STAT register"]
ENABLED = 1,
}
impl From<RBNEIE_A> for bool {
#[inline(always)]
fn from(variant: RBNEIE_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `RBNEIE`"]
pub type RBNEIE_R = crate::R<bool, RBNEIE_A>;
impl RBNEIE_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> RBNEIE_A {
match self.bits {
false => RBNEIE_A::DISABLED,
true => RBNEIE_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == RBNEIE_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == RBNEIE_A::ENABLED
}
}
#[doc = "Write proxy for field `RBNEIE`"]
pub struct RBNEIE_W<'a> {
w: &'a mut W,
}
impl<'a> RBNEIE_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: RBNEIE_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Read data buffer not empty and overrrun error interrupts are disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(RBNEIE_A::DISABLED)
}
#[doc = "Interrupt is generated whenever ORERR=1 or RBNE=1 in the STAT register"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(RBNEIE_A::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 = (self.w.bits & !(0x01 << 5)) | (((value as u32) & 0x01) << 5);
self.w
}
}
#[doc = "IDLE line detected interrupt enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum IDLEIE_A {
#[doc = "0: Idle line detected interrupt is disabled"]
DISABLED = 0,
#[doc = "1: Interrupt is generated whenever IDLEF=1 in the STAT register"]
ENABLED = 1,
}
impl From<IDLEIE_A> for bool {
#[inline(always)]
fn from(variant: IDLEIE_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `IDLEIE`"]
pub type IDLEIE_R = crate::R<bool, IDLEIE_A>;
impl IDLEIE_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> IDLEIE_A {
match self.bits {
false => IDLEIE_A::DISABLED,
true => IDLEIE_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == IDLEIE_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == IDLEIE_A::ENABLED
}
}
#[doc = "Write proxy for field `IDLEIE`"]
pub struct IDLEIE_W<'a> {
w: &'a mut W,
}
impl<'a> IDLEIE_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: IDLEIE_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Idle line detected interrupt is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(IDLEIE_A::DISABLED)
}
#[doc = "Interrupt is generated whenever IDLEF=1 in the STAT register"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(IDLEIE_A::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 = (self.w.bits & !(0x01 << 4)) | (((value as u32) & 0x01) << 4);
self.w
}
}
#[doc = "Transmitter enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum TEN_A {
#[doc = "0: Transmitter is disabled"]
DISABLED = 0,
#[doc = "1: Transmitter is enabled"]
ENABLED = 1,
}
impl From<TEN_A> for bool {
#[inline(always)]
fn from(variant: TEN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `TEN`"]
pub type TEN_R = crate::R<bool, TEN_A>;
impl TEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> TEN_A {
match self.bits {
false => TEN_A::DISABLED,
true => TEN_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == TEN_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == TEN_A::ENABLED
}
}
#[doc = "Write proxy for field `TEN`"]
pub struct TEN_W<'a> {
w: &'a mut W,
}
impl<'a> TEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: TEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Transmitter is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(TEN_A::DISABLED)
}
#[doc = "Transmitter is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(TEN_A::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 = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
self.w
}
}
#[doc = "Receiver enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum REN_A {
#[doc = "0: Receiver is disabled"]
DISABLED = 0,
#[doc = "1: Receiver is enabled"]
ENABLED = 1,
}
impl From<REN_A> for bool {
#[inline(always)]
fn from(variant: REN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `REN`"]
pub type REN_R = crate::R<bool, REN_A>;
impl REN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> REN_A {
match self.bits {
false => REN_A::DISABLED,
true => REN_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == REN_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == REN_A::ENABLED
}
}
#[doc = "Write proxy for field `REN`"]
pub struct REN_W<'a> {
w: &'a mut W,
}
impl<'a> REN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: REN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "Receiver is disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(REN_A::DISABLED)
}
#[doc = "Receiver is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(REN_A::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 = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
self.w
}
}
#[doc = "USART enable in Deep-sleep mode\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UESM_A {
#[doc = "0: USART not able to wake the MCU from deep-sleep mode"]
DISABLED = 0,
#[doc = "1: USART is able to wake the MCU from deep-sleep mode, as long as the clock source for the USART is IRC8M or LXTAL"]
ENABLED = 1,
}
impl From<UESM_A> for bool {
#[inline(always)]
fn from(variant: UESM_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `UESM`"]
pub type UESM_R = crate::R<bool, UESM_A>;
impl UESM_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> UESM_A {
match self.bits {
false => UESM_A::DISABLED,
true => UESM_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == UESM_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == UESM_A::ENABLED
}
}
#[doc = "Write proxy for field `UESM`"]
pub struct UESM_W<'a> {
w: &'a mut W,
}
impl<'a> UESM_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: UESM_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "USART not able to wake the MCU from deep-sleep mode"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(UESM_A::DISABLED)
}
#[doc = "USART is able to wake the MCU from deep-sleep mode, as long as the clock source for the USART is IRC8M or LXTAL"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(UESM_A::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 = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
self.w
}
}
#[doc = "USART enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum UEN_A {
#[doc = "0: USART prescaler and outputs disabled"]
DISABLED = 0,
#[doc = "1: USART prescaler and outputs is enabled"]
ENABLED = 1,
}
impl From<UEN_A> for bool {
#[inline(always)]
fn from(variant: UEN_A) -> Self {
variant as u8 != 0
}
}
#[doc = "Reader of field `UEN`"]
pub type UEN_R = crate::R<bool, UEN_A>;
impl UEN_R {
#[doc = r"Get enumerated values variant"]
#[inline(always)]
pub fn variant(&self) -> UEN_A {
match self.bits {
false => UEN_A::DISABLED,
true => UEN_A::ENABLED,
}
}
#[doc = "Checks if the value of the field is `DISABLED`"]
#[inline(always)]
pub fn is_disabled(&self) -> bool {
*self == UEN_A::DISABLED
}
#[doc = "Checks if the value of the field is `ENABLED`"]
#[inline(always)]
pub fn is_enabled(&self) -> bool {
*self == UEN_A::ENABLED
}
}
#[doc = "Write proxy for field `UEN`"]
pub struct UEN_W<'a> {
w: &'a mut W,
}
impl<'a> UEN_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, variant: UEN_A) -> &'a mut W {
{
self.bit(variant.into())
}
}
#[doc = "USART prescaler and outputs disabled"]
#[inline(always)]
pub fn disabled(self) -> &'a mut W {
self.variant(UEN_A::DISABLED)
}
#[doc = "USART prescaler and outputs is enabled"]
#[inline(always)]
pub fn enabled(self) -> &'a mut W {
self.variant(UEN_A::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 = (self.w.bits & !0x01) | ((value as u32) & 0x01);
self.w
}
}
impl R {
#[doc = "Bit 27 - End of Block interrupt enable"]
#[inline(always)]
pub fn ebie(&self) -> EBIE_R {
EBIE_R::new(((self.bits >> 27) & 0x01) != 0)
}
#[doc = "Bit 26 - Receiver timeout interrupt enable"]
#[inline(always)]
pub fn rtie(&self) -> RTIE_R {
RTIE_R::new(((self.bits >> 26) & 0x01) != 0)
}
#[doc = "Bits 21:25 - Driver Enable assertion time"]
#[inline(always)]
pub fn dea(&self) -> DEA_R {
DEA_R::new(((self.bits >> 21) & 0x1f) as u8)
}
#[doc = "Bits 16:20 - Driver Enable deassertion time"]
#[inline(always)]
pub fn ded(&self) -> DED_R {
DED_R::new(((self.bits >> 16) & 0x1f) as u8)
}
#[doc = "Bit 15 - Oversampling mode"]
#[inline(always)]
pub fn ovsmod(&self) -> OVSMOD_R {
OVSMOD_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 14 - ADDR match interrupt enable"]
#[inline(always)]
pub fn amie(&self) -> AMIE_R {
AMIE_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 13 - Mute mode enable"]
#[inline(always)]
pub fn men(&self) -> MEN_R {
MEN_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 12 - Word length"]
#[inline(always)]
pub fn wl(&self) -> WL_R {
WL_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 11 - Wakeup method in mute mode"]
#[inline(always)]
pub fn wm(&self) -> WM_R {
WM_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 10 - Parity control enable"]
#[inline(always)]
pub fn pcen(&self) -> PCEN_R {
PCEN_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 9 - Parity selection"]
#[inline(always)]
pub fn pm(&self) -> PM_R {
PM_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 8 - Parity error interrupt enable"]
#[inline(always)]
pub fn perrie(&self) -> PERRIE_R {
PERRIE_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 7 - Transmitter register empty interrupt enable"]
#[inline(always)]
pub fn tbeie(&self) -> TBEIE_R {
TBEIE_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 6 - Transmission complete interrupt enable"]
#[inline(always)]
pub fn tcie(&self) -> TCIE_R {
TCIE_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 5 - Read data buffer not empty interrupt and overrun error interrupt enable"]
#[inline(always)]
pub fn rbneie(&self) -> RBNEIE_R {
RBNEIE_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 4 - IDLE line detected interrupt enable"]
#[inline(always)]
pub fn idleie(&self) -> IDLEIE_R {
IDLEIE_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 3 - Transmitter enable"]
#[inline(always)]
pub fn ten(&self) -> TEN_R {
TEN_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 2 - Receiver enable"]
#[inline(always)]
pub fn ren(&self) -> REN_R {
REN_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 1 - USART enable in Deep-sleep mode"]
#[inline(always)]
pub fn uesm(&self) -> UESM_R {
UESM_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 0 - USART enable"]
#[inline(always)]
pub fn uen(&self) -> UEN_R {
UEN_R::new((self.bits & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 27 - End of Block interrupt enable"]
#[inline(always)]
pub fn ebie(&mut self) -> EBIE_W {
EBIE_W { w: self }
}
#[doc = "Bit 26 - Receiver timeout interrupt enable"]
#[inline(always)]
pub fn rtie(&mut self) -> RTIE_W {
RTIE_W { w: self }
}
#[doc = "Bits 21:25 - Driver Enable assertion time"]
#[inline(always)]
pub fn dea(&mut self) -> DEA_W {
DEA_W { w: self }
}
#[doc = "Bits 16:20 - Driver Enable deassertion time"]
#[inline(always)]
pub fn ded(&mut self) -> DED_W {
DED_W { w: self }
}
#[doc = "Bit 15 - Oversampling mode"]
#[inline(always)]
pub fn ovsmod(&mut self) -> OVSMOD_W {
OVSMOD_W { w: self }
}
#[doc = "Bit 14 - ADDR match interrupt enable"]
#[inline(always)]
pub fn amie(&mut self) -> AMIE_W {
AMIE_W { w: self }
}
#[doc = "Bit 13 - Mute mode enable"]
#[inline(always)]
pub fn men(&mut self) -> MEN_W {
MEN_W { w: self }
}
#[doc = "Bit 12 - Word length"]
#[inline(always)]
pub fn wl(&mut self) -> WL_W {
WL_W { w: self }
}
#[doc = "Bit 11 - Wakeup method in mute mode"]
#[inline(always)]
pub fn wm(&mut self) -> WM_W {
WM_W { w: self }
}
#[doc = "Bit 10 - Parity control enable"]
#[inline(always)]
pub fn pcen(&mut self) -> PCEN_W {
PCEN_W { w: self }
}
#[doc = "Bit 9 - Parity selection"]
#[inline(always)]
pub fn pm(&mut self) -> PM_W {
PM_W { w: self }
}
#[doc = "Bit 8 - Parity error interrupt enable"]
#[inline(always)]
pub fn perrie(&mut self) -> PERRIE_W {
PERRIE_W { w: self }
}
#[doc = "Bit 7 - Transmitter register empty interrupt enable"]
#[inline(always)]
pub fn tbeie(&mut self) -> TBEIE_W {
TBEIE_W { w: self }
}
#[doc = "Bit 6 - Transmission complete interrupt enable"]
#[inline(always)]
pub fn tcie(&mut self) -> TCIE_W {
TCIE_W { w: self }
}
#[doc = "Bit 5 - Read data buffer not empty interrupt and overrun error interrupt enable"]
#[inline(always)]
pub fn rbneie(&mut self) -> RBNEIE_W {
RBNEIE_W { w: self }
}
#[doc = "Bit 4 - IDLE line detected interrupt enable"]
#[inline(always)]
pub fn idleie(&mut self) -> IDLEIE_W {
IDLEIE_W { w: self }
}
#[doc = "Bit 3 - Transmitter enable"]
#[inline(always)]
pub fn ten(&mut self) -> TEN_W {
TEN_W { w: self }
}
#[doc = "Bit 2 - Receiver enable"]
#[inline(always)]
pub fn ren(&mut self) -> REN_W {
REN_W { w: self }
}
#[doc = "Bit 1 - USART enable in Deep-sleep mode"]
#[inline(always)]
pub fn uesm(&mut self) -> UESM_W {
UESM_W { w: self }
}
#[doc = "Bit 0 - USART enable"]
#[inline(always)]
pub fn uen(&mut self) -> UEN_W {
UEN_W { w: self }
}
}