/* Requests the target to program the specified data to memory. Note that it is the responsibility of the application to make sure the memory range was erased beforehand.  */
LIBOPENBLT_EXPORT uint32_t BltSessionWriteData(uint32_t address, uint32_t len, uint8_t const *data)
/* Requests the target to program the specified data to memory. Note that it is the responsibility of the application to make sure the memory range was erased beforehand.  */
LIBOPENBLT_EXPORT uint32_t BltSessionWriteData(uint32_t address, uint32_t len, uint8_t const *data)
{
  uint32_t result = BLT_RESULT_ERROR_GENERIC;
  assert(data != NULL);
  assert(len > 0); 
  if ( (data != NULL) && (len > 0) )
  {
    if (SessionWriteData(address, len, data))
    {
      result = BLT_RESULT_OK;
    }
  }
  return result;
}