generated from hulk/gd32e23x_template
完成收到包的分解与指令解析,并输出正确数据,待加入CRC验证机制。
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
#define RX_BUFFER_SIZE 64
|
||||
|
||||
void rs485_config(void);
|
||||
void process_command(char *cmd);
|
||||
uint8_t calculate_crc(uint8_t package_header[3], uint8_t package_data[], size_t data_length);
|
||||
void process_command(uint8_t *cmd, size_t length);
|
||||
uint8_t calculate_crc(uint8_t data[], size_t data_length);
|
||||
void eddy_current_value_report(void);
|
||||
void tempture_value_report(void);
|
||||
|
||||
|
Reference in New Issue
Block a user