1 #ifndef __BRP_READER_UPDATER_H__ 2 #define __BRP_READER_UPDATER_H__ 6 #if defined(__cplusplus) 21 unsigned transferred_bytes,
22 unsigned estimated_total,
23 unsigned progress_percent,
24 unsigned estimated_time_overhead,
89 const char * filepath,
94 #if defined(__cplusplus) brp_errcode brp_update_reader_from_blob(brp_protocol dev, brp_buf blob, size_t blob_size, brp_update_progress_cb progress_cb)
Upload binary blob to reader with optional progress notification.
void(* brp_update_progress_cb)(unsigned transferred_bytes, unsigned estimated_total, unsigned progress_percent, unsigned estimated_time_overhead, bool reconnecting)
Progress notification callback for reader update operations.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_update_reader(brp_protocol dev, const char *filepath, brp_update_progress_cb progress_cb)
Convenience: load hex file and upload to reader.
brp_errcode brp_get_update_blob_from_string(const char *hex_str, size_t hex_len, brp_buf *blob, size_t *blob_size, brp_mempool *mempool)
Parse BEC2/BF3 hex string to binary blob.
A single include header file, that includes all header files necessary for the BRP library...
unsigned char * brp_buf
represents a pointer to a protocol data buffer.