2.4.1.4 Functions

  • void BL_MemoryUnlockKeysInit (key_structure_t keys)

    Wrapper to the NVM Set Key function which assigns user-defined key values for write operations in NVM.

  • void BL_MemoryUnlockKeysClear (void)

    Clears all unlock keys once the bootloader core firmware completes the memory operations requiring them.

  • bl_mem_result_t BL_EEPROMRead (eeprom_address_t address, eeprom_data_t *buffer, size_t length)

    Wrapper to the NVM Read EEPROM function which reads multiple bytes from the desired address in EEPROM.

  • bl_mem_result_t BL_EEPROMWrite (eeprom_address_t address, eeprom_data_t *buffer, size_t length)

    Wrapper to the NVM Write EEPROM function which writes multiple bytes to the desired address in EEPROM.

  • bl_mem_result_t BL_FlashRead (flash_address_t address, flash_data_t *buffer, size_t length)

    Wrapper to the NVM Read Flash function which reads multiple bytes from the desired address in program Flash.

  • bl_mem_result_t BL_FlashWrite (flash_address_t address, flash_data_t *buffer, size_t length)

    Wrapper to the NVM Write Flash function which writes multiple bytes to the desired address in program Flash.

  • bl_mem_result_t BL_FlashCopy (flash_address_t srcAddress, flash_address_t destAddress, size_t length)

    Helper function to enable the direct copying of one Flash area to another.

  • bl_mem_result_t BL_FlashReadUint16 (flash_address_t address, uint16_t *data)

    Helper function to read a 16-bit unsigned integer from a specified Flash address for PIC16 devices.

  • bl_mem_result_t BL_FlashReadUint32 (flash_address_t address, uint32_t *data)

    Helper function to read a 32-bit unsigned integer from a specified Flash address for PIC16 devices.