利用结构体指针实现结构体数据类型的eeprom或者flash存储和读取
typedef struct _para_t
{
int a;
int b;
struct c1;
struct c2;
float f1;
float f2;
struct c3;
int e;
int32_t crc32; //int16_t crc16
}PARA_T;
int32_t crc32 为参数校验值;
eeprom序列化与反序列化;
typedef struct _para_t
{
int a;
int b;
struct c1;
struct c2;
float f1;
float f2;
struct c3;
int e;
int32_t crc32; //int16_t crc16
}PARA_T;
int32_t crc32 为参数校验值;
eeprom序列化与反序列化;