pub type R = crate::R<TXDOUBLErs>;
pub type W = crate::W<TXDOUBLErs>;
pub type Txdata0R = crate::FieldReader;
pub type Txdata0W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type Txdata1R = crate::FieldReader;
pub type Txdata1W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn txdata0(&self) -> Txdata0R {
Txdata0R::new((self.bits & 0xff) as u8)
}
#[inline(always)]
pub fn txdata1(&self) -> Txdata1R {
Txdata1R::new(((self.bits >> 8) & 0xff) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TXDOUBLE")
.field("txdata0", &self.txdata0())
.field("txdata1", &self.txdata1())
.finish()
}
}
impl W {
#[inline(always)]
pub fn txdata0(&mut self) -> Txdata0W<'_, TXDOUBLErs> {
Txdata0W::new(self, 0)
}
#[inline(always)]
pub fn txdata1(&mut self) -> Txdata1W<'_, TXDOUBLErs> {
Txdata1W::new(self, 8)
}
}
pub struct TXDOUBLErs;
impl crate::RegisterSpec for TXDOUBLErs {
type Ux = u32;
}
impl crate::Readable for TXDOUBLErs {}
impl crate::Writable for TXDOUBLErs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TXDOUBLErs {}