mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-28 00:53:45 +08:00
22a8575199
Keep official openpilot ancestry and dependency licenses. Store resources directly in Git, remove LFS setup requirements, and leave the downloadable big model outside the source tree.
15 lines
416 B
C
15 lines
416 B
C
#pragma once
|
|
|
|
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);
|