mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-25 07:52:03 +08:00
fa724893fb
date: 2024-02-21T23:02:42
master commit: 0b4d08fab8
13 lines
402 B
C
13 lines
402 B
C
typedef struct {
|
|
uint8_t request;
|
|
uint16_t param1;
|
|
uint16_t param2;
|
|
uint16_t length;
|
|
} __attribute__((packed)) ControlPacket_t;
|
|
|
|
int comms_control_handler(ControlPacket_t *req, uint8_t *resp);
|
|
void comms_endpoint2_write(const uint8_t *data, uint32_t len);
|
|
void comms_can_write(const uint8_t *data, uint32_t len);
|
|
int comms_can_read(uint8_t *data, uint32_t max_len);
|
|
void comms_can_reset(void);
|