/* Returns the current protection level for an EEPROM block. */
unsigned long EEPROMBlockProtectGet(unsigned long ulBlock)
/* Returns the current protection level for an EEPROM block. */
unsigned long EEPROMBlockProtectGet(unsigned long ulBlock)
{
    ASSERT(ulBlock < BLOCKS_FROM_EESIZE(HWREG(EEPROM_EESIZE)));
    HWREG(EEPROM_EEBLOCK) = ulBlock;
    return(HWREG(EEPROM_EEPROT));
}