Jump to main content

# 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

Parameters | 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

Rev: E