1
1
/* Automatically generated nanopb header */
2
- /* Generated by nanopb-0.4.5-dev at Fri Oct 15 20:29:56 2021. */
2
+ /* Generated by nanopb-0.4.5-dev at Fri Oct 15 20:43:36 2021. */
3
3
4
4
#ifndef PB_WIPPERSNAPPER_I2C_V1_WIPPERSNAPPER_I2C_V1_I2C_PB_H_INCLUDED
5
5
#define PB_WIPPERSNAPPER_I2C_V1_WIPPERSNAPPER_I2C_V1_I2C_PB_H_INCLUDED
@@ -56,39 +56,39 @@ typedef struct _wippersnapper_i2c_v1_DPS310InitRequest {
56
56
float period_pressure ;
57
57
} wippersnapper_i2c_v1_DPS310InitRequest ;
58
58
59
- typedef struct _wippersnapper_i2c_v1_I2CDeviceDeinitResponse {
60
- bool is_success ;
61
- uint32_t i2c_address ;
62
- } wippersnapper_i2c_v1_I2CDeviceDeinitResponse ;
63
-
64
- typedef struct _wippersnapper_i2c_v1_I2CDeviceInitResponse {
65
- bool is_success ;
66
- } wippersnapper_i2c_v1_I2CDeviceInitResponse ;
67
-
68
- typedef struct _wippersnapper_i2c_v1_I2CInitRequest {
59
+ typedef struct _wippersnapper_i2c_v1_I2CBusInitRequest {
69
60
int32_t i2c_pin_scl ;
70
61
int32_t i2c_pin_sda ;
71
62
uint32_t i2c_frequency ;
72
63
int32_t i2c_port_number ;
73
- } wippersnapper_i2c_v1_I2CInitRequest ;
64
+ } wippersnapper_i2c_v1_I2CBusInitRequest ;
74
65
75
- typedef struct _wippersnapper_i2c_v1_I2CInitResponse {
66
+ typedef struct _wippersnapper_i2c_v1_I2CBusInitResponse {
76
67
bool is_initialized ;
77
- } wippersnapper_i2c_v1_I2CInitResponse ;
68
+ } wippersnapper_i2c_v1_I2CBusInitResponse ;
78
69
79
- typedef struct _wippersnapper_i2c_v1_I2CScanRequest {
70
+ typedef struct _wippersnapper_i2c_v1_I2CBusScanRequest {
80
71
int32_t i2c_port_number ;
81
- } wippersnapper_i2c_v1_I2CScanRequest ;
72
+ } wippersnapper_i2c_v1_I2CBusScanRequest ;
82
73
83
- typedef struct _wippersnapper_i2c_v1_I2CScanResponse {
74
+ typedef struct _wippersnapper_i2c_v1_I2CBusScanResponse {
84
75
pb_size_t addresses_found_count ;
85
76
uint32_t addresses_found [120 ];
86
- } wippersnapper_i2c_v1_I2CScanResponse ;
77
+ } wippersnapper_i2c_v1_I2CBusScanResponse ;
87
78
88
- typedef struct _wippersnapper_i2c_v1_I2CSetFrequency {
79
+ typedef struct _wippersnapper_i2c_v1_I2CBusSetFrequency {
89
80
uint32_t frequency ;
90
81
int32_t bus_id ;
91
- } wippersnapper_i2c_v1_I2CSetFrequency ;
82
+ } wippersnapper_i2c_v1_I2CBusSetFrequency ;
83
+
84
+ typedef struct _wippersnapper_i2c_v1_I2CDeviceDeinitResponse {
85
+ bool is_success ;
86
+ uint32_t i2c_address ;
87
+ } wippersnapper_i2c_v1_I2CDeviceDeinitResponse ;
88
+
89
+ typedef struct _wippersnapper_i2c_v1_I2CDeviceInitResponse {
90
+ bool is_success ;
91
+ } wippersnapper_i2c_v1_I2CDeviceInitResponse ;
92
92
93
93
typedef struct _wippersnapper_i2c_v1_SensorDetails {
94
94
pb_callback_t name ;
@@ -156,11 +156,11 @@ extern "C" {
156
156
#endif
157
157
158
158
/* Initializer values for message structs */
159
- #define wippersnapper_i2c_v1_I2CInitRequest_init_default {0, 0, 0, 0}
160
- #define wippersnapper_i2c_v1_I2CInitResponse_init_default {0}
161
- #define wippersnapper_i2c_v1_I2CSetFrequency_init_default {0, 0}
162
- #define wippersnapper_i2c_v1_I2CScanRequest_init_default {0}
163
- #define wippersnapper_i2c_v1_I2CScanResponse_init_default {0, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
159
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_init_default {0, 0, 0, 0}
160
+ #define wippersnapper_i2c_v1_I2CBusInitResponse_init_default {0}
161
+ #define wippersnapper_i2c_v1_I2CBusSetFrequency_init_default {0, 0}
162
+ #define wippersnapper_i2c_v1_I2CBusScanRequest_init_default {0}
163
+ #define wippersnapper_i2c_v1_I2CBusScanResponse_init_default {0, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
164
164
#define wippersnapper_i2c_v1_I2CDeviceInitRequest_init_default {0, 0, false, wippersnapper_i2c_v1_AHTInitRequest_init_default, false, wippersnapper_i2c_v1_DPS310InitRequest_init_default}
165
165
#define wippersnapper_i2c_v1_I2CDeviceInitResponse_init_default {0}
166
166
#define wippersnapper_i2c_v1_I2CDeviceDeinitRequest_init_default {0, 0, 0, false, wippersnapper_i2c_v1_AHTDeinitRequest_init_default, false, wippersnapper_i2c_v1_DPS310DeinitRequest_init_default}
@@ -172,11 +172,11 @@ extern "C" {
172
172
#define wippersnapper_i2c_v1_SensorDetails_init_default {{{NULL}, NULL}, 0, 0, _wippersnapper_i2c_v1_SensorType_MIN, 0, 0, 0, 0}
173
173
#define wippersnapper_i2c_v1_SensorEvent_init_default {0, 0, _wippersnapper_i2c_v1_SensorType_MIN, 0, 0, {0}}
174
174
#define wippersnapper_i2c_v1_I2CSensorEvent_init_default {0, false, wippersnapper_i2c_v1_SensorEvent_init_default}
175
- #define wippersnapper_i2c_v1_I2CInitRequest_init_zero {0, 0, 0, 0}
176
- #define wippersnapper_i2c_v1_I2CInitResponse_init_zero {0}
177
- #define wippersnapper_i2c_v1_I2CSetFrequency_init_zero {0, 0}
178
- #define wippersnapper_i2c_v1_I2CScanRequest_init_zero {0}
179
- #define wippersnapper_i2c_v1_I2CScanResponse_init_zero {0, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
175
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_init_zero {0, 0, 0, 0}
176
+ #define wippersnapper_i2c_v1_I2CBusInitResponse_init_zero {0}
177
+ #define wippersnapper_i2c_v1_I2CBusSetFrequency_init_zero {0, 0}
178
+ #define wippersnapper_i2c_v1_I2CBusScanRequest_init_zero {0}
179
+ #define wippersnapper_i2c_v1_I2CBusScanResponse_init_zero {0, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
180
180
#define wippersnapper_i2c_v1_I2CDeviceInitRequest_init_zero {0, 0, false, wippersnapper_i2c_v1_AHTInitRequest_init_zero, false, wippersnapper_i2c_v1_DPS310InitRequest_init_zero}
181
181
#define wippersnapper_i2c_v1_I2CDeviceInitResponse_init_zero {0}
182
182
#define wippersnapper_i2c_v1_I2CDeviceDeinitRequest_init_zero {0, 0, 0, false, wippersnapper_i2c_v1_AHTDeinitRequest_init_zero, false, wippersnapper_i2c_v1_DPS310DeinitRequest_init_zero}
@@ -202,18 +202,18 @@ extern "C" {
202
202
#define wippersnapper_i2c_v1_DPS310InitRequest_period_temperature_tag 2
203
203
#define wippersnapper_i2c_v1_DPS310InitRequest_enable_pressure_tag 3
204
204
#define wippersnapper_i2c_v1_DPS310InitRequest_period_pressure_tag 4
205
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_i2c_pin_scl_tag 1
206
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_i2c_pin_sda_tag 2
207
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_i2c_frequency_tag 3
208
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_i2c_port_number_tag 4
209
+ #define wippersnapper_i2c_v1_I2CBusInitResponse_is_initialized_tag 1
210
+ #define wippersnapper_i2c_v1_I2CBusScanRequest_i2c_port_number_tag 1
211
+ #define wippersnapper_i2c_v1_I2CBusScanResponse_addresses_found_tag 1
212
+ #define wippersnapper_i2c_v1_I2CBusSetFrequency_frequency_tag 1
213
+ #define wippersnapper_i2c_v1_I2CBusSetFrequency_bus_id_tag 2
205
214
#define wippersnapper_i2c_v1_I2CDeviceDeinitResponse_is_success_tag 1
206
215
#define wippersnapper_i2c_v1_I2CDeviceDeinitResponse_i2c_address_tag 2
207
216
#define wippersnapper_i2c_v1_I2CDeviceInitResponse_is_success_tag 1
208
- #define wippersnapper_i2c_v1_I2CInitRequest_i2c_pin_scl_tag 1
209
- #define wippersnapper_i2c_v1_I2CInitRequest_i2c_pin_sda_tag 2
210
- #define wippersnapper_i2c_v1_I2CInitRequest_i2c_frequency_tag 3
211
- #define wippersnapper_i2c_v1_I2CInitRequest_i2c_port_number_tag 4
212
- #define wippersnapper_i2c_v1_I2CInitResponse_is_initialized_tag 1
213
- #define wippersnapper_i2c_v1_I2CScanRequest_i2c_port_number_tag 1
214
- #define wippersnapper_i2c_v1_I2CScanResponse_addresses_found_tag 1
215
- #define wippersnapper_i2c_v1_I2CSetFrequency_frequency_tag 1
216
- #define wippersnapper_i2c_v1_I2CSetFrequency_bus_id_tag 2
217
217
#define wippersnapper_i2c_v1_SensorDetails_name_tag 1
218
218
#define wippersnapper_i2c_v1_SensorDetails_version_tag 2
219
219
#define wippersnapper_i2c_v1_SensorDetails_id_tag 3
@@ -247,34 +247,34 @@ extern "C" {
247
247
#define wippersnapper_i2c_v1_I2CSensorEvent_event_tag 2
248
248
249
249
/* Struct field encoding specification for nanopb */
250
- #define wippersnapper_i2c_v1_I2CInitRequest_FIELDLIST (X , a ) \
250
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_FIELDLIST (X , a ) \
251
251
X(a, STATIC, SINGULAR, INT32, i2c_pin_scl, 1) \
252
252
X(a, STATIC, SINGULAR, INT32, i2c_pin_sda, 2) \
253
253
X(a, STATIC, SINGULAR, UINT32, i2c_frequency, 3) \
254
254
X(a, STATIC, SINGULAR, INT32, i2c_port_number, 4)
255
- #define wippersnapper_i2c_v1_I2CInitRequest_CALLBACK NULL
256
- #define wippersnapper_i2c_v1_I2CInitRequest_DEFAULT NULL
255
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_CALLBACK NULL
256
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_DEFAULT NULL
257
257
258
- #define wippersnapper_i2c_v1_I2CInitResponse_FIELDLIST (X , a ) \
258
+ #define wippersnapper_i2c_v1_I2CBusInitResponse_FIELDLIST (X , a ) \
259
259
X(a, STATIC, SINGULAR, BOOL, is_initialized, 1)
260
- #define wippersnapper_i2c_v1_I2CInitResponse_CALLBACK NULL
261
- #define wippersnapper_i2c_v1_I2CInitResponse_DEFAULT NULL
260
+ #define wippersnapper_i2c_v1_I2CBusInitResponse_CALLBACK NULL
261
+ #define wippersnapper_i2c_v1_I2CBusInitResponse_DEFAULT NULL
262
262
263
- #define wippersnapper_i2c_v1_I2CSetFrequency_FIELDLIST (X , a ) \
263
+ #define wippersnapper_i2c_v1_I2CBusSetFrequency_FIELDLIST (X , a ) \
264
264
X(a, STATIC, SINGULAR, UINT32, frequency, 1) \
265
265
X(a, STATIC, SINGULAR, INT32, bus_id, 2)
266
- #define wippersnapper_i2c_v1_I2CSetFrequency_CALLBACK NULL
267
- #define wippersnapper_i2c_v1_I2CSetFrequency_DEFAULT NULL
266
+ #define wippersnapper_i2c_v1_I2CBusSetFrequency_CALLBACK NULL
267
+ #define wippersnapper_i2c_v1_I2CBusSetFrequency_DEFAULT NULL
268
268
269
- #define wippersnapper_i2c_v1_I2CScanRequest_FIELDLIST (X , a ) \
269
+ #define wippersnapper_i2c_v1_I2CBusScanRequest_FIELDLIST (X , a ) \
270
270
X(a, STATIC, SINGULAR, INT32, i2c_port_number, 1)
271
- #define wippersnapper_i2c_v1_I2CScanRequest_CALLBACK NULL
272
- #define wippersnapper_i2c_v1_I2CScanRequest_DEFAULT NULL
271
+ #define wippersnapper_i2c_v1_I2CBusScanRequest_CALLBACK NULL
272
+ #define wippersnapper_i2c_v1_I2CBusScanRequest_DEFAULT NULL
273
273
274
- #define wippersnapper_i2c_v1_I2CScanResponse_FIELDLIST (X , a ) \
274
+ #define wippersnapper_i2c_v1_I2CBusScanResponse_FIELDLIST (X , a ) \
275
275
X(a, STATIC, REPEATED, UINT32, addresses_found, 1)
276
- #define wippersnapper_i2c_v1_I2CScanResponse_CALLBACK NULL
277
- #define wippersnapper_i2c_v1_I2CScanResponse_DEFAULT NULL
276
+ #define wippersnapper_i2c_v1_I2CBusScanResponse_CALLBACK NULL
277
+ #define wippersnapper_i2c_v1_I2CBusScanResponse_DEFAULT NULL
278
278
279
279
#define wippersnapper_i2c_v1_I2CDeviceInitRequest_FIELDLIST (X , a ) \
280
280
X(a, STATIC, SINGULAR, INT32, i2c_port_number, 1) \
@@ -371,11 +371,11 @@ X(a, STATIC, OPTIONAL, MESSAGE, event, 2)
371
371
#define wippersnapper_i2c_v1_I2CSensorEvent_DEFAULT NULL
372
372
#define wippersnapper_i2c_v1_I2CSensorEvent_event_MSGTYPE wippersnapper_i2c_v1_SensorEvent
373
373
374
- extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CInitRequest_msg ;
375
- extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CInitResponse_msg ;
376
- extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CSetFrequency_msg ;
377
- extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CScanRequest_msg ;
378
- extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CScanResponse_msg ;
374
+ extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CBusInitRequest_msg ;
375
+ extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CBusInitResponse_msg ;
376
+ extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CBusSetFrequency_msg ;
377
+ extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CBusScanRequest_msg ;
378
+ extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CBusScanResponse_msg ;
379
379
extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CDeviceInitRequest_msg ;
380
380
extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CDeviceInitResponse_msg ;
381
381
extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CDeviceDeinitRequest_msg ;
@@ -389,11 +389,11 @@ extern const pb_msgdesc_t wippersnapper_i2c_v1_SensorEvent_msg;
389
389
extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CSensorEvent_msg ;
390
390
391
391
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
392
- #define wippersnapper_i2c_v1_I2CInitRequest_fields &wippersnapper_i2c_v1_I2CInitRequest_msg
393
- #define wippersnapper_i2c_v1_I2CInitResponse_fields &wippersnapper_i2c_v1_I2CInitResponse_msg
394
- #define wippersnapper_i2c_v1_I2CSetFrequency_fields &wippersnapper_i2c_v1_I2CSetFrequency_msg
395
- #define wippersnapper_i2c_v1_I2CScanRequest_fields &wippersnapper_i2c_v1_I2CScanRequest_msg
396
- #define wippersnapper_i2c_v1_I2CScanResponse_fields &wippersnapper_i2c_v1_I2CScanResponse_msg
392
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_fields &wippersnapper_i2c_v1_I2CBusInitRequest_msg
393
+ #define wippersnapper_i2c_v1_I2CBusInitResponse_fields &wippersnapper_i2c_v1_I2CBusInitResponse_msg
394
+ #define wippersnapper_i2c_v1_I2CBusSetFrequency_fields &wippersnapper_i2c_v1_I2CBusSetFrequency_msg
395
+ #define wippersnapper_i2c_v1_I2CBusScanRequest_fields &wippersnapper_i2c_v1_I2CBusScanRequest_msg
396
+ #define wippersnapper_i2c_v1_I2CBusScanResponse_fields &wippersnapper_i2c_v1_I2CBusScanResponse_msg
397
397
#define wippersnapper_i2c_v1_I2CDeviceInitRequest_fields &wippersnapper_i2c_v1_I2CDeviceInitRequest_msg
398
398
#define wippersnapper_i2c_v1_I2CDeviceInitResponse_fields &wippersnapper_i2c_v1_I2CDeviceInitResponse_msg
399
399
#define wippersnapper_i2c_v1_I2CDeviceDeinitRequest_fields &wippersnapper_i2c_v1_I2CDeviceDeinitRequest_msg
@@ -407,11 +407,11 @@ extern const pb_msgdesc_t wippersnapper_i2c_v1_I2CSensorEvent_msg;
407
407
#define wippersnapper_i2c_v1_I2CSensorEvent_fields &wippersnapper_i2c_v1_I2CSensorEvent_msg
408
408
409
409
/* Maximum encoded size of messages (where known) */
410
- #define wippersnapper_i2c_v1_I2CInitRequest_size 39
411
- #define wippersnapper_i2c_v1_I2CInitResponse_size 2
412
- #define wippersnapper_i2c_v1_I2CSetFrequency_size 17
413
- #define wippersnapper_i2c_v1_I2CScanRequest_size 11
414
- #define wippersnapper_i2c_v1_I2CScanResponse_size 720
410
+ #define wippersnapper_i2c_v1_I2CBusInitRequest_size 39
411
+ #define wippersnapper_i2c_v1_I2CBusInitResponse_size 2
412
+ #define wippersnapper_i2c_v1_I2CBusSetFrequency_size 17
413
+ #define wippersnapper_i2c_v1_I2CBusScanRequest_size 11
414
+ #define wippersnapper_i2c_v1_I2CBusScanResponse_size 720
415
415
#define wippersnapper_i2c_v1_I2CDeviceInitRequest_size 49
416
416
#define wippersnapper_i2c_v1_I2CDeviceInitResponse_size 2
417
417
#define wippersnapper_i2c_v1_I2CDeviceDeinitRequest_size 31
0 commit comments