39 #ifndef _PX4IO_UPLOADER_H 40 #define _PX4IO_UPLOADER_H value 52 int upload(
const char *filenames[]);
93 void log(
const char *fmt, ...);
99 int send(uint8_t *p,
unsigned count);
100 int get_sync(
unsigned timeout = 40);
102 int get_info(
int param, uint32_t &val);
int get_info(int param, uint32_t &val)
int verify_rev2(size_t fw_size)
int verify_rev3(size_t fw_size)
int get_sync(unsigned timeout=40)
supported bootloader protocol
bootloader protocol revision
uint32_t bl_rev
bootloader revision
int program(size_t fw_size)
int recv_byte_with_timeout(uint8_t *c, unsigned timeout)
max firmware size in bytes
protocol max is 255, must be multiple of 4
int recv_bytes(uint8_t *p, unsigned count)
int upload(const char *filenames[])
virtual ~PX4IO_Uploader()=default
void log(const char *fmt,...)