#[doc = "Register `BACKKEY1` reader"]
pub struct R(crate::R<BACKKEY1_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<BACKKEY1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::convert::From<crate::R<BACKKEY1_SPEC>> for R {
    fn from(reader: crate::R<BACKKEY1_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `KEY` reader - Backdoor Comparison Key."]
pub struct KEY_R(crate::FieldReader<u8, u8>);
impl KEY_R {
    pub(crate) fn new(bits: u8) -> Self {
        KEY_R(crate::FieldReader::new(bits))
    }
}
impl core::ops::Deref for KEY_R {
    type Target = crate::FieldReader<u8, u8>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl R {
    #[doc = "Bits 0:7 - Backdoor Comparison Key."]
    #[inline(always)]
    pub fn key(&self) -> KEY_R {
        KEY_R::new((self.bits & 0xff) as u8)
    }
}
#[doc = "Backdoor Comparison Key 1\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [backkey1](index.html) module"]
pub struct BACKKEY1_SPEC;
impl crate::RegisterSpec for BACKKEY1_SPEC {
    type Ux = u8;
}
#[doc = "`read()` method returns [backkey1::R](R) reader structure"]
impl crate::Readable for BACKKEY1_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets BACKKEY1 to value 0xff"]
impl crate::Resettable for BACKKEY1_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0xff
    }
}
