arm_joint_sensor_bootloader/Drivers/OpenBLT/flash_config.h

17 lines
403 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef _FLASH_CONFIG_H_
#define _FLASH_CONFIG_H_
#include <stdint.h>
typedef struct
{
uint16_t can_id;
uint8_t sensorDir; // 0: 正常1: 反转
uint8_t debugFlag; // 0: 无调试信息1: 输出调试信息
uint16_t crc; // 可选,简单校验
} FlashConfig_t;
FlashConfig_t *Flash_ReadConfig(void);
void Flash_WriteConfig(FlashConfig_t *cfg);
#endif /* _FLASH_CONFIG_H_ */