pub type WPCMD_W<'a, const O: u8> = FieldWriter<'a, u32, WPCR_SPEC, u8, WPCMDSELECT_AW, 2, O>;
Expand description
Field WPCMD
writer - Write Protection Command
Implementations
sourceimpl<'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
Disables the software write protection 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
Enables the software write protection 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
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.