pub type R = crate::R<COUNT2_TXrs>;
pub type W = crate::W<COUNT2_TXrs>;
pub type COUNT2_TX_R = crate::FieldReader<u16>;
pub type COUNT2_TX_W<'a, REG> = crate::FieldWriter<'a, REG, 10, u16>;
impl R {
#[inline(always)]
pub fn count2_tx(&self) -> COUNT2_TX_R {
COUNT2_TX_R::new(self.bits & 0x03ff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("COUNT2_TX")
.field("count2_tx", &self.count2_tx())
.finish()
}
}
impl W {
#[inline(always)]
pub fn count2_tx(&mut self) -> COUNT2_TX_W<COUNT2_TXrs> {
COUNT2_TX_W::new(self, 0)
}
}
pub struct COUNT2_TXrs;
impl crate::RegisterSpec for COUNT2_TXrs {
type Ux = u16;
}
impl crate::Readable for COUNT2_TXrs {}
impl crate::Writable for COUNT2_TXrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for COUNT2_TXrs {}