///Register `DBG_AUTH_ACK` reader
pub type R = crate::R<DBG_AUTH_ACKrs>;
///Field `HOST_ACK` reader - Host to device acknowledge.
pub type HOST_ACK_R = crate::BitReader;
///Field `DEV_ACK` reader - Device to host acknowledge.
pub type DEV_ACK_R = crate::BitReader;
impl R {
    ///Bit 0 - Host to device acknowledge.
    #[inline(always)]
    pub fn host_ack(&self) -> HOST_ACK_R {
        HOST_ACK_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Device to host acknowledge.
    #[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()
    }
}
/**DBGMCU debug authentication mailbox acknowledge register

You can [`read`](crate::Reg::read) this register and get [`dbg_auth_ack::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct DBG_AUTH_ACKrs;
impl crate::RegisterSpec for DBG_AUTH_ACKrs {
    type Ux = u32;
}
///`read()` method returns [`dbg_auth_ack::R`](R) reader structure
impl crate::Readable for DBG_AUTH_ACKrs {}
///`reset()` method sets DBG_AUTH_ACK to value 0
impl crate::Resettable for DBG_AUTH_ACKrs {
    const RESET_VALUE: u32 = 0;
}
