- nRF52840 + SoftDevice S140 BLE firmware - Piezo ultrasound TX driver (2MHz, 8ch MUX) - ICM42670P IMU 6-axis driver - Echo AFE chain (ADA2200 + ADC121S051) - BLE NUS command parser (mpa/mpc/mdc/mec/maa/msp) - FDS flash config storage - pc_firm parser and ADC driver included Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
515 B
C
25 lines
515 B
C
/* parser.h */
|
|
#ifndef PARSER_H
|
|
#define PARSER_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
/* Platform-dependent function pointer set */
|
|
typedef struct {
|
|
void (*log)(const char *fmt, ...);
|
|
void (*tx_bin)(const uint8_t *buf, uint16_t len);
|
|
bool crc_check;
|
|
} dr_platform_if_t;
|
|
|
|
|
|
/* Global interface & log flag */
|
|
extern dr_platform_if_t g_plat;
|
|
extern bool g_log_enable;
|
|
|
|
/* Main parser entry point */
|
|
int dr_cmd_parser(const uint8_t *buf, uint8_t len);
|
|
|
|
#endif /* PARSER_H */
|
|
|