Microchip® Advanced Software Framework

dfu_api.c File Reference

DFU API definitions.

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

#include "platform_files.h"
#include "stdlib.h"
#include "string.h"
#include "bm_mode.h"
#include "bm_program_mode.h"
#include "bm_application_mode.h"
#include "bm_utils.h"
#include "event_mem.h"
#include "ble_api.h"
#include "dfu_api.h"
#include "interface.h"

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)
 
static uint8_t * dfu_response_read_parser (BM_PROGRAM_HCI_EVENT_STATUS status_id)
 
static dfu_status_t dfu_response_report_parser (BM_PROGRAM_HCI_EVENT_STATUS status_id)
 
static uint16_t dfu_status_handle_parser (BM_PROGRAM_HCI_EVENT_STATUS status_id)
 
static dfu_status_t dfu_status_report_parser (BM_PROGRAM_HCI_EVENT_STATUS status_id)
 

Variables

BM_PROGRAM_CMDPKTprogram_cmdpkt = NULL
 
static uint16_t program_handle
 

bool dfu_response_check ( uint8_t  byte)
static uint16_t dfu_status_handle_parser ( BM_PROGRAM_HCI_EVENT_STATUS  status_id)
static

BM_PROGRAM_CMDPKT* program_cmdpkt = NULL