feat: Initial esp32-hacking project with firmware sources and docs
This commit is contained in:
21
esp-crab/master_recv/main/app/app_uart.h
Normal file
21
esp-crab/master_recv/main/app/app_uart.h
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
#pragma once
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
uint8_t start[2];
|
||||
uint32_t id;
|
||||
int64_t time_delta;
|
||||
float cir[4];
|
||||
uint8_t end[2];
|
||||
} __attribute__((packed)) csi_data_t;
|
||||
|
||||
#define DATA_TABLE_SIZE 100
|
||||
void init_uart(void);
|
||||
int uart_send_data(const char *data, uint8_t len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user