Appiko
dev_id_fw_ver.h
1 
30 #ifndef CODEBASE_UTIL_DEV_ID_FW_VER_H_
31 #define CODEBASE_UTIL_DEV_ID_FW_VER_H_
32 
33 #include "stdint.h"
34 
38 typedef struct
39 {
43  uint8_t prod_code[2];
45  uint8_t prod_rev[2];
49  uint8_t factory_code[2];
51  uint8_t year[2];
53  uint8_t month[2];
55  uint8_t day[2];
58  uint8_t serial_no[4];
59 }__attribute__ ((packed)) dev_id_t ;
60 
64 typedef struct
65 {
66  uint8_t major;
67  uint8_t minor;
68  uint8_t build;
69 }__attribute__ ((packed)) fw_ver_t ;
70 
77 dev_id_t * dev_id_get(void);
78 
85 fw_ver_t * fw_ver_get(void);
86 
87 #endif /* CODEBASE_UTIL_DEV_ID_FW_VER_H_ */
88 
fw_ver_t * fw_ver_get(void)
Gets a pointer to the location where the Device ID is stored.
Definition: dev_id_fw_ver.c:35
Strcture for Operation time.
Definition: sensepi_ble.h:38
dev_id_t * dev_id_get(void)
Gets a pointer to the location where the Device ID is stored.
Definition: dev_id_fw_ver.c:30