Type Definition atsam4s2a_pac::pwm::wpcr::WPCMD_W
source · pub type WPCMD_W<'a, const O: u8> = FieldWriter<'a, u32, WPCR_SPEC, u8, WPCMD_AW, 2, O>;
Expand description
Field WPCMD
writer - Write Protect Command
Implementations§
source§impl<'a, const O: u8> WPCMD_W<'a, O>
impl<'a, const O: u8> WPCMD_W<'a, O>
sourcepub fn disable_sw_prot(self) -> &'a mut W
pub fn disable_sw_prot(self) -> &'a mut W
Disable the Software Write Protect of the register groups of which the bit WPRGx is at ‘1’.
sourcepub fn enable_sw_prot(self) -> &'a mut W
pub fn enable_sw_prot(self) -> &'a mut W
Enable the Software Write Protect of the register groups of which the bit WPRGx is at ‘1’.
sourcepub fn enable_hw_prot(self) -> &'a mut W
pub fn enable_hw_prot(self) -> &'a mut W
Enable the Hardware Write Protect 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 protect. Moreover, to meet security requirements, the PIO lines associated with PWM can not be configured through the PIO interface.