Microchip® Advanced Software Framework

dfu_api.h File Reference

DFU API declarations.

Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.

#include "bm_program_mode.h"
#include "ble_api.h"

Macros

#define DFU_MAX_DATA_LENGTH   192
 

Enumerations

enum  dfu_status_t {
  DFU_SUCCESS = 0x00,
  DFU_FAIL
}
 
enum  dfu_write_continue_mode_t {
  DFU_WRITE_CONTINUE_START,
  DFU_WRITE_CONTINUE_PROCEED,
  DFU_WRITE_CONTINUE_STOP
}
 

Functions

dfu_status_t dfu_deinit (platform_init_t *platform_init)
 
dfu_status_t dfu_init (platform_init_t *platform_init)
 
dfu_status_t dfu_program_memory_erase (uint32_t address, uint8_t length)
 
dfu_status_t dfu_program_memory_read (uint32_t address, uint8_t *data, uint8_t length)
 
dfu_status_t dfu_program_memory_write (uint32_t address, uint8_t *data, uint8_t length, bool write_continue)
 
dfu_status_t dfu_program_memory_write_continue (uint32_t address, uint8_t *data, uint8_t length, uint8_t continue_mode, uint32_t continue_length)
 
bool dfu_response_check (uint8_t byte)
 

#define DFU_MAX_DATA_LENGTH   192

Enumerator
DFU_SUCCESS 
DFU_FAIL 
Enumerator
DFU_WRITE_CONTINUE_START 
DFU_WRITE_CONTINUE_PROCEED 
DFU_WRITE_CONTINUE_STOP 

bool dfu_response_check ( uint8_t  byte)