Fix device4 payloads, adjust naming, complete its packet structure and request firmware versions

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2023-05-01 22:19:00 +02:00
parent 754b5c131a
commit 4f061d1687
No known key found for this signature in database
GPG key ID: D850A5F772E880F9
6 changed files with 153 additions and 52 deletions

View file

@ -96,15 +96,6 @@ static bool recv_payload(device3_type* device, uint8_t size, uint8_t* payload) {
return (transferred == size);
}
#define DEVICE3_MSG_GET_CAL_DATA_LENGTH 0x14
#define DEVICE3_MSG_CAL_DATA_GET_NEXT_SEGMENT 0x15
#define DEVICE3_MSG_ALLOCATE_CAL_DATA_BUFFER 0x16
#define DEVICE3_MSG_WRITE_CAL_DATA_SEGMENT 0x17
#define DEVICE3_MSG_FREE_CAL_BUFFER 0x18
#define DEVICE3_MSG_START_IMU_DATA 0x19
#define DEVICE3_MSG_GET_STATIC_ID 0x1A
#define DEVICE3_MSG_UNKNOWN 0x1D
struct __attribute__((__packed__)) device3_payload_packet_t {
uint8_t head;
uint32_t checksum;