/* Adds data to the segments that are currently present in the firmware data module. If the data overlaps with already existing data, the existing data gets overwritten. The size of a segment is automatically adjusted or a new segment gets created, if necessary.  */
LIBOPENBLT_EXPORT uint32_t BltFirmwareAddData(uint32_t address, uint32_t len, uint8_t const *data)
/* Adds data to the segments that are currently present in the firmware data module. If the data overlaps with already existing data, the existing data gets overwritten. The size of a segment is automatically adjusted or a new segment gets created, if necessary.  */
LIBOPENBLT_EXPORT uint32_t BltFirmwareAddData(uint32_t address, uint32_t len, uint8_t const *data)
{
  uint32_t result = BLT_RESULT_ERROR_GENERIC;
  assert(len > 0);
  assert(data != NULL);
  if ( (len > 0) && (data != NULL) )
  {
    if (FirmwareAddData(address, len, data))
    {
      result = BLT_RESULT_OK;
    }
  }
  return result;
}