diff options
Diffstat (limited to 'xpp/mpp_funcs.h')
-rw-r--r-- | xpp/mpp_funcs.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xpp/mpp_funcs.h b/xpp/mpp_funcs.h index 8ab4b3a..59bbc7d 100644 --- a/xpp/mpp_funcs.h +++ b/xpp/mpp_funcs.h @@ -45,7 +45,7 @@ int mpp_caps_set(struct astribank_device *astribank, int mpp_extrainfo_get(struct astribank_device *astribank, struct extrainfo *info); int mpp_extrainfo_set(struct astribank_device *astribank, const struct extrainfo *info); int mpp_eeprom_blk_rd(struct astribank_device *astribank, uint8_t *buf, uint16_t offset, uint16_t len); -int mpp_send_start(struct astribank_device *astribank, enum dev_dest dest); +int mpp_send_start(struct astribank_device *astribank, enum dev_dest dest, const char *ihex_version); int mpp_send_end(struct astribank_device *astribank); int mpp_send_seg(struct astribank_device *astribank, const uint8_t *data, uint16_t offset, uint16_t len); int mpp_reset(struct astribank_device *astribank, int full_reset); @@ -72,7 +72,9 @@ int mpp_tws_setportnum(struct astribank_device *astribank, uint8_t portnum); /* low-level */ int process_command(struct astribank_device *astribank, struct mpp_command *cmd, struct mpp_command **reply_ref); -struct mpp_command *new_command(uint8_t op, uint16_t extra_data); +struct mpp_command *new_command(uint8_t protocol_version, uint8_t op, uint16_t extra_data); void free_command(struct mpp_command *cmd); +const char *dev_dest2str(enum dev_dest dest); + #endif /* MPP_FUNCS_H */ |