mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-19 09:43:51 +08:00
* cleanup is_enumerated, rename comms and init spi * big comms refactor, building now * misra fixes * more fixes * misra try 3 * cleanup * this belongs in a separate PR * remove unneccesary file * revert llspi changes * this needs packing * fix pedal usb Co-authored-by: Comma Device <device@comma.ai>
12 lines
362 B
C
12 lines
362 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(uint8_t *data, uint32_t len);
|
|
void comms_can_write(uint8_t *data, uint32_t len);
|
|
int comms_can_read(uint8_t *data, uint32_t max_len);
|