1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#[doc = "Reader of register ETMLSR"]
pub type R = crate::R<u32, super::ETMLSR>;
#[doc = "Reader of field `LOCKIMP`"]
pub type LOCKIMP_R = crate::R<bool, bool>;
#[doc = "Reader of field `LOCKED`"]
pub type LOCKED_R = crate::R<bool, bool>;
impl R {
    #[doc = "Bit 0 - ETM Locking Implemented"]
    #[inline(always)]
    pub fn lockimp(&self) -> LOCKIMP_R { LOCKIMP_R::new((self.bits & 0x01) != 0) }
    #[doc = "Bit 1 - ETM locked"]
    #[inline(always)]
    pub fn locked(&self) -> LOCKED_R { LOCKED_R::new(((self.bits >> 1) & 0x01) != 0) }
}