pub type R = crate::R<TESTrs>;
pub type W = crate::W<TESTrs>;
pub type LBCK_R = crate::BitReader;
pub type LBCK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TX_R = crate::FieldReader;
pub type TX_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
pub type RX_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn lbck(&self) -> LBCK_R {
LBCK_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn tx(&self) -> TX_R {
TX_R::new(((self.bits >> 5) & 3) as u8)
}
#[inline(always)]
pub fn rx(&self) -> RX_R {
RX_R::new(((self.bits >> 7) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("TEST")
.field("lbck", &self.lbck())
.field("tx", &self.tx())
.field("rx", &self.rx())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lbck(&mut self) -> LBCK_W<TESTrs> {
LBCK_W::new(self, 4)
}
#[inline(always)]
pub fn tx(&mut self) -> TX_W<TESTrs> {
TX_W::new(self, 5)
}
}
pub struct TESTrs;
impl crate::RegisterSpec for TESTrs {
type Ux = u32;
}
impl crate::Readable for TESTrs {}
impl crate::Writable for TESTrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for TESTrs {}