pub type R = crate::R<RLRrs>;
pub type PROCID_R = crate::FieldReader;
pub type COREID_R = crate::FieldReader;
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum LOCKR {
        Free = 0,
        Locked = 1,
}
impl From<LOCKR> for bool {
    #[inline(always)]
    fn from(variant: LOCKR) -> Self {
        variant as u8 != 0
    }
}
pub type LOCK_R = crate::BitReader<LOCKR>;
impl LOCK_R {
        #[inline(always)]
    pub const fn variant(&self) -> LOCKR {
        match self.bits {
            false => LOCKR::Free,
            true => LOCKR::Locked,
        }
    }
        #[inline(always)]
    pub fn is_free(&self) -> bool {
        *self == LOCKR::Free
    }
        #[inline(always)]
    pub fn is_locked(&self) -> bool {
        *self == LOCKR::Locked
    }
}
impl R {
        #[inline(always)]
    pub fn procid(&self) -> PROCID_R {
        PROCID_R::new((self.bits & 0xff) as u8)
    }
        #[inline(always)]
    pub fn coreid(&self) -> COREID_R {
        COREID_R::new(((self.bits >> 8) & 0x0f) as u8)
    }
        #[inline(always)]
    pub fn lock(&self) -> LOCK_R {
        LOCK_R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("RLR")
            .field("lock", &self.lock())
            .field("coreid", &self.coreid())
            .field("procid", &self.procid())
            .finish()
    }
}
pub struct RLRrs;
impl crate::RegisterSpec for RLRrs {
    type Ux = u32;
}
impl crate::Readable for RLRrs {}
impl crate::Resettable for RLRrs {}