| 12345678910111213141516171819202122232425262728 |
- #ifndef _NV_Storage_H__
- #define _NV_Storage_H__
- #include "os/os_type.h"
- #pragma pack (push,1)
- typedef struct {
- int op_i_k; /* 斜率 */
- int op_i_offset; /* 截距 */
- }op_cali_t;
- typedef struct {
- s16 hall_offset; /* hall 和A相之间的电角度偏移量 */
- u16 hall_table[8];
- op_cali_t phase_op[3]; /* 三相电流采集的校准系数 */
- u16 crc16;
- }mc_config_t;
- #pragma pack(pop)
- mc_config_t *mc_config_get(void);
- void config_set_hall_offset(s16 offset);
- void store_config(void);
- void restore_config(void);
- void store_hall_table(u16 *hall_table);
- void store_hall_offset(s16 offset);
- #endif /* _NV_Storage_H__ */
|