3.3.4.25 EMAFE_WriteProtectionSet Function
C
void EMAFE_WriteProtectionSet(uint32_t mode);Summary
Set write protection mode.
Description
Set write protection mode.
Precondition
None.
Parameters
| Param | Description |
|---|---|
| mode | Bit mask to set protection options. |
Returns
None.
Example
EMAFE_WriteProtectionSet(EMAFE_WPMR_WPCTRL_Msk);
Remarks
| Mode | Description |
|---|---|
| EMAFE_WPMR_WPCFEN_Msk | Enables the write protection of the configuration registers |
| EMAFE_WPMR_WPITEN_Msk | Enables the write protection of EMAFE_IER and EMAFE_IDR |
| EMAFE_WPMR_WPCTRL_Msk | Enables the write protection of EMAFE_CTRL |
