SPRADL4 January 2025 F29H850TU , F29H859TU-Q1
Set_Protection_Masks() is a simple wrapper around Configure_Protection_Masks() that updates the global mask variables (WE_Protection_A_Mask and WE_Protection_B_Mask) with the correct values for the current active unit.
uint64_t WE_Protection_AB_Mask = Configure_Protection_Masks(FIRST_AND_LAST_SECTOR,
NUM_EEPROM_SECTORS);
WE_Protection_A_Mask = 0xFFFFFFFF ^ (uint32_t)WE_Protection_AB_Mask;
WE_Protection_B_Mask = 0x00000FFF ^ WE_Protection_AB_Mask >> 32;