monoZ docs
MZ_Addon_board_CO2.h
Go to the documentation of this file.
6#ifndef MZ_ADDON_BOARD_CO2_H_
7#define MZ_ADDON_BOARD_CO2_H_
8
9#include "MZ_error_handler.h"
10
17typedef struct __attribute__((packed))
18{
19 char sop;
20 char ver;
21 char cmd;
22 char len;
23 char data;
24 short int crc;
25 char eop;
27
33typedef struct __attribute__((packed))
34{
35 char sop;
36 char ver;
37 char cmd;
38 char len;
39 char sensor_index;
40 char dp;
41 char unit_code;
42 char res_exp_1;
43 char res_exp_0;
44 unsigned short crc;
45 char eop;
46
48
54typedef struct __attribute__((packed))
55{
56 char sop;
57 char ver;
58 char cmd;
59 char len;
60 char sensor_index;
61 char status;
62 char error;
63 long int co2_raw;
64 unsigned short crc;
65 char eop;
67
76
82void lwm2m_event_process(void * event);
83
84#endif /* MZ_ADDON_BOARD_CO2_H_ */
static volatile long int co2_raw
st_co2_cmd_resp23
st_co2_cmd
void lwm2m_event_process(void *event)
LWM2M user defined callback function.
mz_error_t co2_app_init(void)
CO2 Application initialization API.
struct __attribute__((packed))
st_co2_cmd_resp21
monoZ Error Handler
mz_error_t
Enumeration of monoZ Error Flags.