Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.proto file wrappers updated #184

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wippersnapper/description/v1/description.pb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Fri Oct 15 20:43:36 2021. */
/* Generated by nanopb-0.4.5-dev at Wed Nov 10 19:33:29 2021. */

#include "wippersnapper/description/v1/description.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/description/v1/description.pb.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Fri Oct 15 20:43:36 2021. */
/* Generated by nanopb-0.4.5-dev at Wed Nov 10 19:33:29 2021. */

#ifndef PB_WIPPERSNAPPER_DESCRIPTION_V1_WIPPERSNAPPER_DESCRIPTION_V1_DESCRIPTION_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_DESCRIPTION_V1_WIPPERSNAPPER_DESCRIPTION_V1_DESCRIPTION_PB_H_INCLUDED
Expand Down
22 changes: 13 additions & 9 deletions src/wippersnapper/i2c/v1/i2c.pb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Fri Oct 15 20:43:36 2021. */
/* Generated by nanopb-0.4.5-dev at Wed Nov 10 19:33:29 2021. */

#include "wippersnapper/i2c/v1/i2c.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down Expand Up @@ -27,31 +27,35 @@ PB_BIND(wippersnapper_i2c_v1_I2CDeviceInitRequest, wippersnapper_i2c_v1_I2CDevic
PB_BIND(wippersnapper_i2c_v1_I2CDeviceInitResponse, wippersnapper_i2c_v1_I2CDeviceInitResponse, AUTO)


PB_BIND(wippersnapper_i2c_v1_I2CDeviceDeinitRequest, wippersnapper_i2c_v1_I2CDeviceDeinitRequest, AUTO)
PB_BIND(wippersnapper_i2c_v1_I2CDeviceUpdateRequest, wippersnapper_i2c_v1_I2CDeviceUpdateRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_I2CDeviceDeinitResponse, wippersnapper_i2c_v1_I2CDeviceDeinitResponse, AUTO)
PB_BIND(wippersnapper_i2c_v1_I2CDeviceUpdateResponse, wippersnapper_i2c_v1_I2CDeviceUpdateResponse, AUTO)


PB_BIND(wippersnapper_i2c_v1_AHTInitRequest, wippersnapper_i2c_v1_AHTInitRequest, AUTO)
PB_BIND(wippersnapper_i2c_v1_I2CDeviceDeinitRequest, wippersnapper_i2c_v1_I2CDeviceDeinitRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_AHTDeinitRequest, wippersnapper_i2c_v1_AHTDeinitRequest, AUTO)
PB_BIND(wippersnapper_i2c_v1_I2CDeviceDeinitResponse, wippersnapper_i2c_v1_I2CDeviceDeinitResponse, AUTO)


PB_BIND(wippersnapper_i2c_v1_DPS310InitRequest, wippersnapper_i2c_v1_DPS310InitRequest, AUTO)
PB_BIND(wippersnapper_i2c_v1_AHTUpdateRequest, wippersnapper_i2c_v1_AHTUpdateRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_DPS310DeinitRequest, wippersnapper_i2c_v1_DPS310DeinitRequest, AUTO)
PB_BIND(wippersnapper_i2c_v1_DPS310UpdateRequest, wippersnapper_i2c_v1_DPS310UpdateRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_SensorDetails, wippersnapper_i2c_v1_SensorDetails, AUTO)
PB_BIND(wippersnapper_i2c_v1_SCD30UpdateRequest, wippersnapper_i2c_v1_SCD30UpdateRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_SCD4XUpdateRequest, wippersnapper_i2c_v1_SCD4XUpdateRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_SensorEvent, wippersnapper_i2c_v1_SensorEvent, AUTO)


PB_BIND(wippersnapper_i2c_v1_I2CSensorEvent, wippersnapper_i2c_v1_I2CSensorEvent, AUTO)
PB_BIND(wippersnapper_i2c_v1_I2CDeviceEvent, wippersnapper_i2c_v1_I2CDeviceEvent, AUTO)




Expand Down
493 changes: 271 additions & 222 deletions src/wippersnapper/i2c/v1/i2c.pb.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/wippersnapper/pin/v1/pin.pb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Fri Oct 15 20:43:36 2021. */
/* Generated by nanopb-0.4.5-dev at Wed Nov 10 19:33:29 2021. */

#include "wippersnapper/pin/v1/pin.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/pin/v1/pin.pb.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Fri Oct 15 20:43:36 2021. */
/* Generated by nanopb-0.4.5-dev at Wed Nov 10 19:33:29 2021. */

#ifndef PB_WIPPERSNAPPER_PIN_V1_WIPPERSNAPPER_PIN_V1_PIN_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_PIN_V1_WIPPERSNAPPER_PIN_V1_PIN_PB_H_INCLUDED
Expand Down
5 changes: 1 addition & 4 deletions src/wippersnapper/signal/v1/signal.pb.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Fri Oct 15 20:43:36 2021. */
/* Generated by nanopb-0.4.5-dev at Wed Nov 10 19:33:29 2021. */

#include "wippersnapper/signal/v1/signal.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand All @@ -12,9 +12,6 @@ PB_BIND(wippersnapper_signal_v1_I2CRequest, wippersnapper_signal_v1_I2CRequest,
PB_BIND(wippersnapper_signal_v1_I2CResponse, wippersnapper_signal_v1_I2CResponse, 2)


PB_BIND(wippersnapper_signal_v1_SensorEvent, wippersnapper_signal_v1_SensorEvent, AUTO)


PB_BIND(wippersnapper_signal_v1_CreateSignalRequest, wippersnapper_signal_v1_CreateSignalRequest, AUTO)


Expand Down
41 changes: 17 additions & 24 deletions src/wippersnapper/signal/v1/signal.pb.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Fri Oct 15 20:43:36 2021. */
/* Generated by nanopb-0.4.5-dev at Wed Nov 10 19:33:29 2021. */

#ifndef PB_WIPPERSNAPPER_SIGNAL_V1_WIPPERSNAPPER_SIGNAL_V1_SIGNAL_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_SIGNAL_V1_WIPPERSNAPPER_SIGNAL_V1_SIGNAL_PB_H_INCLUDED
Expand Down Expand Up @@ -34,6 +34,7 @@ typedef struct _wippersnapper_signal_v1_I2CRequest {
wippersnapper_i2c_v1_I2CBusSetFrequency req_i2c_set_freq;
wippersnapper_i2c_v1_I2CDeviceInitRequest req_i2c_device_init;
wippersnapper_i2c_v1_I2CDeviceDeinitRequest req_i2c_device_deinit;
wippersnapper_i2c_v1_I2CDeviceUpdateRequest req_i2c_device_update;
} payload;
} wippersnapper_signal_v1_I2CRequest;

Expand All @@ -45,16 +46,11 @@ typedef struct _wippersnapper_signal_v1_I2CResponse {
wippersnapper_i2c_v1_I2CBusScanResponse resp_i2c_scan;
wippersnapper_i2c_v1_I2CDeviceInitResponse resp_i2c_device_init;
wippersnapper_i2c_v1_I2CDeviceDeinitResponse resp_i2c_device_deinit;
wippersnapper_i2c_v1_I2CDeviceUpdateResponse resp_i2c_device_update;
wippersnapper_i2c_v1_I2CDeviceEvent resp_i2c_device_event;
} payload;
} wippersnapper_signal_v1_I2CResponse;

typedef struct _wippersnapper_signal_v1_SensorEvent {
pb_size_t which_event;
union {
wippersnapper_i2c_v1_I2CSensorEvent i2c;
} event;
} wippersnapper_signal_v1_SensorEvent;

typedef struct _wippersnapper_signal_v1_SignalResponse {
pb_size_t which_payload;
union {
Expand All @@ -70,12 +66,10 @@ extern "C" {
/* Initializer values for message structs */
#define wippersnapper_signal_v1_I2CRequest_init_default {{{NULL}, NULL}, 0, {wippersnapper_i2c_v1_I2CBusInitRequest_init_default}}
#define wippersnapper_signal_v1_I2CResponse_init_default {{{NULL}, NULL}, 0, {wippersnapper_i2c_v1_I2CBusInitResponse_init_default}}
#define wippersnapper_signal_v1_SensorEvent_init_default {0, {wippersnapper_i2c_v1_I2CSensorEvent_init_default}}
#define wippersnapper_signal_v1_CreateSignalRequest_init_default {{{NULL}, NULL}, 0, {wippersnapper_pin_v1_ConfigurePinRequests_init_default}}
#define wippersnapper_signal_v1_SignalResponse_init_default {0, {0}}
#define wippersnapper_signal_v1_I2CRequest_init_zero {{{NULL}, NULL}, 0, {wippersnapper_i2c_v1_I2CBusInitRequest_init_zero}}
#define wippersnapper_signal_v1_I2CResponse_init_zero {{{NULL}, NULL}, 0, {wippersnapper_i2c_v1_I2CBusInitResponse_init_zero}}
#define wippersnapper_signal_v1_SensorEvent_init_zero {0, {wippersnapper_i2c_v1_I2CSensorEvent_init_zero}}
#define wippersnapper_signal_v1_CreateSignalRequest_init_zero {{{NULL}, NULL}, 0, {wippersnapper_pin_v1_ConfigurePinRequests_init_zero}}
#define wippersnapper_signal_v1_SignalResponse_init_zero {0, {0}}

Expand All @@ -90,11 +84,13 @@ extern "C" {
#define wippersnapper_signal_v1_I2CRequest_req_i2c_set_freq_tag 3
#define wippersnapper_signal_v1_I2CRequest_req_i2c_device_init_tag 4
#define wippersnapper_signal_v1_I2CRequest_req_i2c_device_deinit_tag 5
#define wippersnapper_signal_v1_I2CRequest_req_i2c_device_update_tag 6
#define wippersnapper_signal_v1_I2CResponse_resp_i2c_init_tag 1
#define wippersnapper_signal_v1_I2CResponse_resp_i2c_scan_tag 2
#define wippersnapper_signal_v1_I2CResponse_resp_i2c_device_init_tag 3
#define wippersnapper_signal_v1_I2CResponse_resp_i2c_device_deinit_tag 4
#define wippersnapper_signal_v1_SensorEvent_i2c_tag 1
#define wippersnapper_signal_v1_I2CResponse_resp_i2c_device_update_tag 5
#define wippersnapper_signal_v1_I2CResponse_resp_i2c_device_event_tag 6
#define wippersnapper_signal_v1_SignalResponse_configuration_complete_tag 1

/* Struct field encoding specification for nanopb */
Expand All @@ -103,32 +99,32 @@ X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_i2c_init,payload.req_i2c_init),
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_i2c_scan,payload.req_i2c_scan), 2) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_i2c_set_freq,payload.req_i2c_set_freq), 3) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_i2c_device_init,payload.req_i2c_device_init), 4) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_i2c_device_deinit,payload.req_i2c_device_deinit), 5)
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_i2c_device_deinit,payload.req_i2c_device_deinit), 5) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_i2c_device_update,payload.req_i2c_device_update), 6)
#define wippersnapper_signal_v1_I2CRequest_CALLBACK NULL
#define wippersnapper_signal_v1_I2CRequest_DEFAULT NULL
#define wippersnapper_signal_v1_I2CRequest_payload_req_i2c_init_MSGTYPE wippersnapper_i2c_v1_I2CBusInitRequest
#define wippersnapper_signal_v1_I2CRequest_payload_req_i2c_scan_MSGTYPE wippersnapper_i2c_v1_I2CBusScanRequest
#define wippersnapper_signal_v1_I2CRequest_payload_req_i2c_set_freq_MSGTYPE wippersnapper_i2c_v1_I2CBusSetFrequency
#define wippersnapper_signal_v1_I2CRequest_payload_req_i2c_device_init_MSGTYPE wippersnapper_i2c_v1_I2CDeviceInitRequest
#define wippersnapper_signal_v1_I2CRequest_payload_req_i2c_device_deinit_MSGTYPE wippersnapper_i2c_v1_I2CDeviceDeinitRequest
#define wippersnapper_signal_v1_I2CRequest_payload_req_i2c_device_update_MSGTYPE wippersnapper_i2c_v1_I2CDeviceUpdateRequest

#define wippersnapper_signal_v1_I2CResponse_FIELDLIST(X, a) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,resp_i2c_init,payload.resp_i2c_init), 1) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,resp_i2c_scan,payload.resp_i2c_scan), 2) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,resp_i2c_device_init,payload.resp_i2c_device_init), 3) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,resp_i2c_device_deinit,payload.resp_i2c_device_deinit), 4)
X(a, STATIC, ONEOF, MSG_W_CB, (payload,resp_i2c_device_deinit,payload.resp_i2c_device_deinit), 4) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,resp_i2c_device_update,payload.resp_i2c_device_update), 5) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,resp_i2c_device_event,payload.resp_i2c_device_event), 6)
#define wippersnapper_signal_v1_I2CResponse_CALLBACK NULL
#define wippersnapper_signal_v1_I2CResponse_DEFAULT NULL
#define wippersnapper_signal_v1_I2CResponse_payload_resp_i2c_init_MSGTYPE wippersnapper_i2c_v1_I2CBusInitResponse
#define wippersnapper_signal_v1_I2CResponse_payload_resp_i2c_scan_MSGTYPE wippersnapper_i2c_v1_I2CBusScanResponse
#define wippersnapper_signal_v1_I2CResponse_payload_resp_i2c_device_init_MSGTYPE wippersnapper_i2c_v1_I2CDeviceInitResponse
#define wippersnapper_signal_v1_I2CResponse_payload_resp_i2c_device_deinit_MSGTYPE wippersnapper_i2c_v1_I2CDeviceDeinitResponse

#define wippersnapper_signal_v1_SensorEvent_FIELDLIST(X, a) \
X(a, STATIC, ONEOF, MESSAGE, (event,i2c,event.i2c), 1)
#define wippersnapper_signal_v1_SensorEvent_CALLBACK NULL
#define wippersnapper_signal_v1_SensorEvent_DEFAULT NULL
#define wippersnapper_signal_v1_SensorEvent_event_i2c_MSGTYPE wippersnapper_i2c_v1_I2CSensorEvent
#define wippersnapper_signal_v1_I2CResponse_payload_resp_i2c_device_update_MSGTYPE wippersnapper_i2c_v1_I2CDeviceUpdateResponse
#define wippersnapper_signal_v1_I2CResponse_payload_resp_i2c_device_event_MSGTYPE wippersnapper_i2c_v1_I2CDeviceEvent

#define wippersnapper_signal_v1_CreateSignalRequest_FIELDLIST(X, a) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,pin_configs,payload.pin_configs), 6) \
Expand All @@ -151,21 +147,18 @@ X(a, STATIC, ONEOF, BOOL, (payload,configuration_complete,payload.confi

extern const pb_msgdesc_t wippersnapper_signal_v1_I2CRequest_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_I2CResponse_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_SensorEvent_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_CreateSignalRequest_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_SignalResponse_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define wippersnapper_signal_v1_I2CRequest_fields &wippersnapper_signal_v1_I2CRequest_msg
#define wippersnapper_signal_v1_I2CResponse_fields &wippersnapper_signal_v1_I2CResponse_msg
#define wippersnapper_signal_v1_SensorEvent_fields &wippersnapper_signal_v1_SensorEvent_msg
#define wippersnapper_signal_v1_CreateSignalRequest_fields &wippersnapper_signal_v1_CreateSignalRequest_msg
#define wippersnapper_signal_v1_SignalResponse_fields &wippersnapper_signal_v1_SignalResponse_msg

/* Maximum encoded size of messages (where known) */
#define wippersnapper_signal_v1_I2CRequest_size 51
#define wippersnapper_signal_v1_I2CResponse_size 723
#define wippersnapper_signal_v1_SensorEvent_size 51
#define wippersnapper_signal_v1_I2CRequest_size 139
#define wippersnapper_signal_v1_I2CResponse_size 725
#if defined(wippersnapper_pin_v1_ConfigurePinRequests_size) && defined(wippersnapper_pin_v1_PinEvents_size) && defined(wippersnapper_pin_v1_ConfigurePWMPinRequests_size) && defined(wippersnapper_pin_v1_PWMPinEvents_size)
union wippersnapper_signal_v1_CreateSignalRequest_payload_size_union {char f6[(6 + wippersnapper_pin_v1_ConfigurePinRequests_size)]; char f7[(6 + wippersnapper_pin_v1_PinEvents_size)]; char f10[(6 + wippersnapper_pin_v1_ConfigurePWMPinRequests_size)]; char f12[(6 + wippersnapper_pin_v1_PWMPinEvents_size)]; char f0[21];};
#define wippersnapper_signal_v1_CreateSignalRequest_size (0 + sizeof(union wippersnapper_signal_v1_CreateSignalRequest_payload_size_union))
Expand Down