pub type R = crate::R<TXDOUBLEXrs>;
pub type W = crate::W<TXDOUBLEXrs>;
pub type Txdata0R = crate::FieldReader<u16>;
pub type Txdata0W<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
pub type Ubrxat0R = crate::BitReader;
pub type Ubrxat0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Txtriat0R = crate::BitReader;
pub type Txtriat0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Txbreak0R = crate::BitReader;
pub type Txbreak0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Txdisat0R = crate::BitReader;
pub type Txdisat0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Rxenat0R = crate::BitReader;
pub type Rxenat0W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Txdata1R = crate::FieldReader<u16>;
pub type Txdata1W<'a, REG> = crate::FieldWriter<'a, REG, 9, u16>;
pub type Ubrxat1R = crate::BitReader;
pub type Ubrxat1W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Txtriat1R = crate::BitReader;
pub type Txtriat1W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Txbreak1R = crate::BitReader;
pub type Txbreak1W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Txdisat1R = crate::BitReader;
pub type Txdisat1W<'a, REG> = crate::BitWriter<'a, REG>;
pub type Rxenat1R = crate::BitReader;
pub type Rxenat1W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn txdata0(&self) -> Txdata0R {
Txdata0R::new((self.bits & 0x01ff) as u16)
}
#[inline(always)]
pub fn ubrxat0(&self) -> Ubrxat0R {
Ubrxat0R::new(((self.bits >> 11) & 1) != 0)
}
#[inline(always)]
pub fn txtriat0(&self) -> Txtriat0R {
Txtriat0R::new(((self.bits >> 12) & 1) != 0)
}
#[inline(always)]
pub fn txbreak0(&self) -> Txbreak0R {
Txbreak0R::new(((self.bits >> 13) & 1) != 0)
}
#[inline(always)]
pub fn txdisat0(&self) -> Txdisat0R {
Txdisat0R::new(((self.bits >> 14) & 1) != 0)
}
#[inline(always)]
pub fn rxenat0(&self) -> Rxenat0R {
Rxenat0R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn txdata1(&self) -> Txdata1R {
Txdata1R::new(((self.bits >> 16) & 0x01ff) as u16)
}
#[inline(always)]
pub fn ubrxat1(&self) -> Ubrxat1R {
Ubrxat1R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn txtriat1(&self) -> Txtriat1R {
Txtriat1R::new(((self.bits >> 28) & 1) != 0)
}
#[inline(always)]
pub fn txbreak1(&self) -> Txbreak1R {
Txbreak1R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn txdisat1(&self) -> Txdisat1R {
Txdisat1R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn rxenat1(&self) -> Rxenat1R {
Rxenat1R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TXDOUBLEX")
.field("txdata0", &self.txdata0())
.field("ubrxat0", &self.ubrxat0())
.field("txtriat0", &self.txtriat0())
.field("txbreak0", &self.txbreak0())
.field("txdisat0", &self.txdisat0())
.field("rxenat0", &self.rxenat0())
.field("txdata1", &self.txdata1())
.field("ubrxat1", &self.ubrxat1())
.field("txtriat1", &self.txtriat1())
.field("txbreak1", &self.txbreak1())
.field("txdisat1", &self.txdisat1())
.field("rxenat1", &self.rxenat1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn txdata0(&mut self) -> Txdata0W<'_, TXDOUBLEXrs> {
Txdata0W::new(self, 0)
}
#[inline(always)]
pub fn ubrxat0(&mut self) -> Ubrxat0W<'_, TXDOUBLEXrs> {
Ubrxat0W::new(self, 11)
}
#[inline(always)]
pub fn txtriat0(&mut self) -> Txtriat0W<'_, TXDOUBLEXrs> {
Txtriat0W::new(self, 12)
}
#[inline(always)]
pub fn txbreak0(&mut self) -> Txbreak0W<'_, TXDOUBLEXrs> {
Txbreak0W::new(self, 13)
}
#[inline(always)]
pub fn txdisat0(&mut self) -> Txdisat0W<'_, TXDOUBLEXrs> {
Txdisat0W::new(self, 14)
}
#[inline(always)]
pub fn rxenat0(&mut self) -> Rxenat0W<'_, TXDOUBLEXrs> {
Rxenat0W::new(self, 15)
}
#[inline(always)]
pub fn txdata1(&mut self) -> Txdata1W<'_, TXDOUBLEXrs> {
Txdata1W::new(self, 16)
}
#[inline(always)]
pub fn ubrxat1(&mut self) -> Ubrxat1W<'_, TXDOUBLEXrs> {
Ubrxat1W::new(self, 27)
}
#[inline(always)]
pub fn txtriat1(&mut self) -> Txtriat1W<'_, TXDOUBLEXrs> {
Txtriat1W::new(self, 28)
}
#[inline(always)]
pub fn txbreak1(&mut self) -> Txbreak1W<'_, TXDOUBLEXrs> {
Txbreak1W::new(self, 29)
}
#[inline(always)]
pub fn txdisat1(&mut self) -> Txdisat1W<'_, TXDOUBLEXrs> {
Txdisat1W::new(self, 30)
}
#[inline(always)]
pub fn rxenat1(&mut self) -> Rxenat1W<'_, TXDOUBLEXrs> {
Rxenat1W::new(self, 31)
}
}
pub struct TXDOUBLEXrs;
impl crate::RegisterSpec for TXDOUBLEXrs {
type Ux = u32;
}
impl crate::Readable for TXDOUBLEXrs {}
impl crate::Writable for TXDOUBLEXrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TXDOUBLEXrs {}