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