BALTECH SDK wrapper functions reference

§ brp_update_reader()

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.

Reads the file, parses hex content, and uploads to the reader. Memory is managed internally.

Parameters
devProtocol handle (must be open)
filepathPath to BEC2/BF3 hex file
progress_cbProgress callback (may be NULL)
Returns
BRP_OK on success, BRP_ERR_OPEN_IO if file cannot be opened