feat: Replies to pings (ignoring crc)

This commit is contained in:
2026-04-07 16:44:45 +01:00
parent e32700cc98
commit 3de4ab3af1
17 changed files with 338 additions and 85 deletions

17
app/src/i3c/i3c.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef I3C_H
#define I3C_H
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#define I3C_ADDR_SIZE 1
#define I3C_PL_LEN_SIZE 1
#define I3C_CRC_SIZE 1
#define I3C_HEADER_SIZE (I3C_ADDR_SIZE + I3C_PL_LEN_SIZE + I3C_CRC_SIZE)
uint8_t i3c_crc(uint8_t dst, uint8_t *msg, size_t len);
bool i3c_validate(uint8_t *msg, size_t len);
#endif