#[repr(u8)]pub enum LOCK {
Off = 0,
Level1 = 1,
Level2 = 2,
Level3 = 3,
}
Expand description
Lock configuration
Value on reset: 0
Variants§
Off = 0
0: No bit is write protected
Level1 = 1
1: Any bits except MOE, OSSR, OSSI and LOCK in TIMx_BDTR register, OISx and OISxN bits in TIMx_CR2 register can no longer be written
Level2 = 2
2: LOCK Level 1 + CC Polarity bits (CCxP/CCxNP bits in TIMx_CCER register, as long as the related channel is configured in output through the CCxS bits) as well as OSSR and OSSI bits can no longer be written
Level3 = 3
3: LOCK Level 2 + CC Control bits (OCxM and OCxPE bits in TIMx_CCMRx registers, as long as the related channel is configured in output through the CCxS bits) can no longer be written
Trait Implementations§
impl Copy for LOCK
impl Eq for LOCK
impl IsEnum for LOCK
impl StructuralPartialEq for LOCK
Auto Trait Implementations§
impl Freeze for LOCK
impl RefUnwindSafe for LOCK
impl Send for LOCK
impl Sync for LOCK
impl Unpin for LOCK
impl UnwindSafe for LOCK
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more