Enum atsame70n21b::pwm0::wpcr::WPCMDSELECT_AW
source · #[repr(u8)]pub enum WPCMDSELECT_AW {
DISABLE_SW_PROT = 0,
ENABLE_SW_PROT = 1,
ENABLE_HW_PROT = 2,
}
Expand description
Write Protection Command
Value on reset: 0
Variants§
DISABLE_SW_PROT = 0
0: Disables the software write protection of the register groups of which the bit WPRGx is at ‘1’.
ENABLE_SW_PROT = 1
1: Enables the software write protection of the register groups of which the bit WPRGx is at ‘1’.
ENABLE_HW_PROT = 2
2: Enables the hardware write protection of the register groups of which the bit WPRGx is at ‘1’. Only a hardware reset of the PWM controller can disable the hardware write protection. Moreover, to meet security requirements, the PIO lines associated with the PWM can not be configured through the PIO interface.
Trait Implementations§
source§impl Clone for WPCMDSELECT_AW
impl Clone for WPCMDSELECT_AW
source§fn clone(&self) -> WPCMDSELECT_AW
fn clone(&self) -> WPCMDSELECT_AW
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WPCMDSELECT_AW
impl Debug for WPCMDSELECT_AW
source§impl From<WPCMDSELECT_AW> for u8
impl From<WPCMDSELECT_AW> for u8
source§fn from(variant: WPCMDSELECT_AW) -> Self
fn from(variant: WPCMDSELECT_AW) -> Self
Converts to this type from the input type.
source§impl PartialEq for WPCMDSELECT_AW
impl PartialEq for WPCMDSELECT_AW
source§fn eq(&self, other: &WPCMDSELECT_AW) -> bool
fn eq(&self, other: &WPCMDSELECT_AW) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WPCMDSELECT_AW
impl Eq for WPCMDSELECT_AW
impl StructuralEq for WPCMDSELECT_AW
impl StructuralPartialEq for WPCMDSELECT_AW
Auto Trait Implementations§
impl RefUnwindSafe for WPCMDSELECT_AW
impl Send for WPCMDSELECT_AW
impl Sync for WPCMDSELECT_AW
impl Unpin for WPCMDSELECT_AW
impl UnwindSafe for WPCMDSELECT_AW
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