mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
add vision protocol
This commit is contained in:
14
modules/algorithm/crc16.h
Normal file
14
modules/algorithm/crc16.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef __CRC16_H
|
||||
#define __CRC16_H
|
||||
#include "main.h"
|
||||
|
||||
#define CRC_START_16 0xFFFF
|
||||
#define CRC_START_MODBUS 0xFFFF
|
||||
#define CRC_POLY_16 0xA001
|
||||
|
||||
uint16_t crc_16(const uint8_t *input_str, uint16_t num_bytes);
|
||||
uint16_t crc_modbus(const uint8_t *input_str, uint16_t num_bytes);
|
||||
uint16_t update_crc_16(uint16_t crc, uint8_t c);
|
||||
void init_crc16_tab(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user