pub type R = crate::R<DBG_AUTH_ACKrs>;
pub type W = crate::W<DBG_AUTH_ACKrs>;
pub type HOST_ACK_R = crate::BitReader;
pub type HOST_ACK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type DEV_ACK_R = crate::BitReader;
pub type DEV_ACK_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn host_ack(&self) -> HOST_ACK_R {
HOST_ACK_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn dev_ack(&self) -> DEV_ACK_R {
DEV_ACK_R::new(((self.bits >> 1) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DBG_AUTH_ACK")
.field("host_ack", &self.host_ack())
.field("dev_ack", &self.dev_ack())
.finish()
}
}
impl W {
#[inline(always)]
pub fn host_ack(&mut self) -> HOST_ACK_W<DBG_AUTH_ACKrs> {
HOST_ACK_W::new(self, 0)
}
#[inline(always)]
pub fn dev_ack(&mut self) -> DEV_ACK_W<DBG_AUTH_ACKrs> {
DEV_ACK_W::new(self, 1)
}
}
pub struct DBG_AUTH_ACKrs;
impl crate::RegisterSpec for DBG_AUTH_ACKrs {
type Ux = u32;
}
impl crate::Readable for DBG_AUTH_ACKrs {}
impl crate::Writable for DBG_AUTH_ACKrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DBG_AUTH_ACKrs {}