Type Alias R

Source
pub type R = R<LOCK_CTRL_SPEC>;
Expand description

Register LOCK_CTRL reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn lock_ena(&self) -> LOCK_ENA_R

Bit 0 - The bit is used to enable lock operation. It will be cleared by hardware after lock operation done. Note that (1) this bit and unlock_ena bit are mutually exclusive, that is, those bits can not be set to 1 at the same time. (2) lock operation can be applied on LL1-ICache, L1-DCache and L2-Cache.

Source

pub fn unlock_ena(&self) -> UNLOCK_ENA_R

Bit 1 - The bit is used to enable unlock operation. It will be cleared by hardware after unlock operation done. Note that (1) this bit and lock_ena bit are mutually exclusive, that is, those bits can not be set to 1 at the same time. (2) unlock operation can be applied on L1-ICache, L1-DCache and L2-Cache.

Source

pub fn lock_done(&self) -> LOCK_DONE_R

Bit 2 - The bit is used to indicate whether unlock/lock operation is finished or not. 0: not finished. 1: finished.

Source

pub fn lock_rgid(&self) -> LOCK_RGID_R

Bits 3:6 - The bit is used to set the gid of cache lock/unlock.