39 #ifndef _PX4IO_UPLOADER_H 40 #define _PX4IO_UPLOADER_H value 52 int upload(
const char *filenames[]);
62 PROTO_BAD_SILICON_REV = 0x14,
64 PROTO_GET_SYNC = 0x21,
65 PROTO_GET_DEVICE = 0x22,
66 PROTO_CHIP_ERASE = 0x23,
67 PROTO_CHIP_VERIFY = 0x24,
68 PROTO_PROG_MULTI = 0x27,
69 PROTO_READ_MULTI = 0x28,
73 PROTO_GET_CHIP = 0x2c,
74 PROTO_SET_DELAY = 0x2d,
75 PROTO_GET_CHIP_DES = 0x2e,
93 void log(
const char *fmt, ...);
95 int recv_byte_with_timeout(uint8_t *c,
unsigned timeout);
96 int recv_bytes(uint8_t *p,
unsigned count);
99 int send(uint8_t *p,
unsigned count);
100 int get_sync(
unsigned timeout = 40);
102 int get_info(
int param, uint32_t &val);
104 int program(
size_t fw_size);
105 int verify_rev2(
size_t fw_size);
106 int verify_rev3(
size_t fw_size);
Definition: uploader.h:46