Enum atsam4e8c_pac::pwm::wpcr::WPCMD_AW
source · #[repr(u8)]
pub enum WPCMD_AW {
DISABLE_SW_PROT,
ENABLE_SW_PROT,
ENABLE_HW_PROT,
}
Expand description
Write Protection Command
Variants§
DISABLE_SW_PROT
0: Disables the software write protection of the register groups of which the bit WPRGx is at ‘1’.
ENABLE_SW_PROT
1: Enables the software write protection of the register groups of which the bit WPRGx is at ‘1’.
ENABLE_HW_PROT
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.