How to unlock write protected registers in mbed?

Hello,

i want to unlock write protected registers to configure a pin as GPIO in nuvoton m2351 which is assigned to TAMPER0EN.is there any API like which unlocks protected registers?