pub type R = crate::R<TXDRrs>;
pub type W = crate::W<TXDRrs>;
pub type TXDATA_R = crate::FieldReader;
pub type TXDATA_W<'a, REG> = crate::FieldWriter<'a, REG, 8, u8, crate::Safe>;
impl R {
#[inline(always)]
pub fn txdata(&self) -> TXDATA_R {
TXDATA_R::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("TXDR")
.field("txdata", &self.txdata())
.finish()
}
}
impl W {
#[inline(always)]
pub fn txdata(&mut self) -> TXDATA_W<TXDRrs> {
TXDATA_W::new(self, 0)
}
}
pub struct TXDRrs;
impl crate::RegisterSpec for TXDRrs {
type Ux = u32;
}
impl crate::Readable for TXDRrs {}
impl crate::Writable for TXDRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TXDRrs {}