Digital Scale  1.0
Digital Scale
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
config.h
Go to the documentation of this file.
1 ï»¿
20 #ifndef CONFIG_H_
21 #define CONFIG_H_
22 
23 #include <stdbool.h>
24 #include <stdio.h>
25 #include "scale.h"
26 
27 #define CONF_MAGIC 0x0101
28 
29 
32 typedef struct
33 { uint16_t magic;
34  int32_t cal_num;
35  int32_t cal_denom;
36  bool isCalibrated;
37 } confStruct_t;
38 
39 extern confStruct_t config;
40 extern void ReadConfig(void);
41 extern void WriteConfig(void);
42 
43 #endif /* CONFIG_H_ */