Skip to content

Commit

Permalink
Merge pull request #91 from adafruit/protobuf-update-7f4f7305934066a1…
Browse files Browse the repository at this point in the history
…4ce53788e38d50cead5a1749

.proto file wrappers updated
  • Loading branch information
brentru authored Jul 15, 2021
2 parents eebd2f4 + d2da39a commit affad77
Show file tree
Hide file tree
Showing 14 changed files with 582 additions and 13 deletions.
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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 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
63 changes: 63 additions & 0 deletions src/wippersnapper/i2c/v1/i2c.pb.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 2021. */

#include "wippersnapper/i2c/v1/i2c.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif

PB_BIND(wippersnapper_i2c_v1_I2CScanRequest, wippersnapper_i2c_v1_I2CScanRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_I2CScanResponse, wippersnapper_i2c_v1_I2CScanResponse, AUTO)


PB_BIND(wippersnapper_i2c_v1_AHTInitRequest, wippersnapper_i2c_v1_AHTInitRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_AHTInitResponse, wippersnapper_i2c_v1_AHTInitResponse, AUTO)


PB_BIND(wippersnapper_i2c_v1_AHTDeinitRequest, wippersnapper_i2c_v1_AHTDeinitRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_DPS310InitRequest, wippersnapper_i2c_v1_DPS310InitRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_DPS310InitResponse, wippersnapper_i2c_v1_DPS310InitResponse, AUTO)


PB_BIND(wippersnapper_i2c_v1_SHT4XInitRequest, wippersnapper_i2c_v1_SHT4XInitRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_SHT4XInitResponse, wippersnapper_i2c_v1_SHT4XInitResponse, AUTO)


PB_BIND(wippersnapper_i2c_v1_SCD30InitRequest, wippersnapper_i2c_v1_SCD30InitRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_SCD30InitResponse, wippersnapper_i2c_v1_SCD30InitResponse, AUTO)


PB_BIND(wippersnapper_i2c_v1_SCD30ReadEvent, wippersnapper_i2c_v1_SCD30ReadEvent, AUTO)


PB_BIND(wippersnapper_i2c_v1_BH1750InitRequest, wippersnapper_i2c_v1_BH1750InitRequest, AUTO)


PB_BIND(wippersnapper_i2c_v1_BH1750InitResponse, wippersnapper_i2c_v1_BH1750InitResponse, AUTO)


PB_BIND(wippersnapper_i2c_v1_BH1750ReadEvent, wippersnapper_i2c_v1_BH1750ReadEvent, AUTO)


PB_BIND(wippersnapper_i2c_v1_SensorDetails, wippersnapper_i2c_v1_SensorDetails, AUTO)


PB_BIND(wippersnapper_i2c_v1_SensorEvent, wippersnapper_i2c_v1_SensorEvent, AUTO)






456 changes: 456 additions & 0 deletions src/wippersnapper/i2c/v1/i2c.pb.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/wippersnapper/location/v1/location.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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 2021. */

#include "wippersnapper/location/v1/location.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/location/v1/location.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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 2021. */

#ifndef PB_WIPPERSNAPPER_LOCATION_V1_WIPPERSNAPPER_LOCATION_V1_LOCATION_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_LOCATION_V1_WIPPERSNAPPER_LOCATION_V1_LOCATION_PB_H_INCLUDED
Expand Down
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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 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
2 changes: 1 addition & 1 deletion src/wippersnapper/pixel/v1/pixel.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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 2021. */

#include "wippersnapper/pixel/v1/pixel.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/pixel/v1/pixel.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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 2021. */

#ifndef PB_WIPPERSNAPPER_PIXEL_V1_WIPPERSNAPPER_PIXEL_V1_PIXEL_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_PIXEL_V1_WIPPERSNAPPER_PIXEL_V1_PIXEL_PB_H_INCLUDED
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/sensor/v1/sensor.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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 2021. */

#include "wippersnapper/sensor/v1/sensor.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/sensor/v1/sensor.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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 2021. */

#ifndef PB_WIPPERSNAPPER_SENSOR_V1_WIPPERSNAPPER_SENSOR_V1_SENSOR_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_SENSOR_V1_WIPPERSNAPPER_SENSOR_V1_SENSOR_PB_H_INCLUDED
Expand Down
5 changes: 4 additions & 1 deletion 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 Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 2021. */

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


PB_BIND(wippersnapper_signal_v1_SignalResponse, wippersnapper_signal_v1_SignalResponse, AUTO)


PB_BIND(wippersnapper_signal_v1_CreateSignalResponse, wippersnapper_signal_v1_CreateSignalResponse, AUTO)


Expand Down
51 changes: 49 additions & 2 deletions src/wippersnapper/signal/v1/signal.pb.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.5-dev at Tue Jul 13 16:13:23 2021. */
/* Generated by nanopb-0.4.5-dev at Thu Jul 15 15:07:04 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
#include <pb.h>
#include "wippersnapper/pin/v1/pin.pb.h"
#include "wippersnapper/i2c/v1/i2c.pb.h"
#include "wippersnapper/sensor/v1/sensor.pb.h"
#include "wippersnapper/pixel/v1/pixel.pb.h"
#include "nanopb/nanopb.pb.h"
Expand All @@ -31,18 +32,33 @@ typedef struct _wippersnapper_signal_v1_CreateSignalRequest {
wippersnapper_pixel_v1_ConfigurePixels pixel_config;
wippersnapper_pixel_v1_PixelEvent pixel_event;
wippersnapper_pin_v1_PinEvent pin_event;
wippersnapper_i2c_v1_I2CScanRequest request_i2c_scan;
wippersnapper_i2c_v1_AHTInitRequest request_aht_init;
wippersnapper_i2c_v1_AHTDeinitRequest request_aht_deinit;
} payload;
} wippersnapper_signal_v1_CreateSignalRequest;

typedef struct _wippersnapper_signal_v1_SignalResponse {
pb_size_t which_response_payload;
union {
wippersnapper_i2c_v1_I2CScanResponse response_i2c_scan;
wippersnapper_i2c_v1_SensorDetails response_sensor_details;
wippersnapper_i2c_v1_SensorEvent response_sensor_event;
wippersnapper_i2c_v1_AHTInitResponse response_aht_init;
} response_payload;
} wippersnapper_signal_v1_SignalResponse;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define wippersnapper_signal_v1_CreateSignalRequest_init_default {{{NULL}, NULL}, 0, {wippersnapper_pin_v1_ConfigurePinRequests_init_default}}
#define wippersnapper_signal_v1_SignalResponse_init_default {0, {wippersnapper_i2c_v1_I2CScanResponse_init_default}}
#define wippersnapper_signal_v1_CreateSignalResponse_init_default {{{NULL}, NULL}}
#define wippersnapper_signal_v1_CreateSignalRequest_init_zero {{{NULL}, NULL}, 0, {wippersnapper_pin_v1_ConfigurePinRequests_init_zero}}
#define wippersnapper_signal_v1_SignalResponse_init_zero {0, {wippersnapper_i2c_v1_I2CScanResponse_init_zero}}
#define wippersnapper_signal_v1_CreateSignalResponse_init_zero {{{NULL}, NULL}}

/* Field tags (for use in manual encoding/decoding) */
Expand All @@ -56,6 +72,13 @@ extern "C" {
#define wippersnapper_signal_v1_CreateSignalRequest_pixel_config_tag 13
#define wippersnapper_signal_v1_CreateSignalRequest_pixel_event_tag 14
#define wippersnapper_signal_v1_CreateSignalRequest_pin_event_tag 15
#define wippersnapper_signal_v1_CreateSignalRequest_request_i2c_scan_tag 16
#define wippersnapper_signal_v1_CreateSignalRequest_request_aht_init_tag 17
#define wippersnapper_signal_v1_CreateSignalRequest_request_aht_deinit_tag 18
#define wippersnapper_signal_v1_SignalResponse_response_i2c_scan_tag 1
#define wippersnapper_signal_v1_SignalResponse_response_sensor_details_tag 2
#define wippersnapper_signal_v1_SignalResponse_response_sensor_event_tag 3
#define wippersnapper_signal_v1_SignalResponse_response_aht_init_tag 4

/* Struct field encoding specification for nanopb */
#define wippersnapper_signal_v1_CreateSignalRequest_FIELDLIST(X, a) \
Expand All @@ -67,7 +90,10 @@ X(a, STATIC, ONEOF, MSG_W_CB, (payload,pwm_pin_config,payload.pwm_pin_confi
X(a, STATIC, ONEOF, MSG_W_CB, (payload,pwm_pin_event,payload.pwm_pin_event), 12) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,pixel_config,payload.pixel_config), 13) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,pixel_event,payload.pixel_event), 14) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,pin_event,payload.pin_event), 15)
X(a, STATIC, ONEOF, MSG_W_CB, (payload,pin_event,payload.pin_event), 15) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,request_i2c_scan,payload.request_i2c_scan), 16) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,request_aht_init,payload.request_aht_init), 17) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,request_aht_deinit,payload.request_aht_deinit), 18)
#define wippersnapper_signal_v1_CreateSignalRequest_CALLBACK NULL
#define wippersnapper_signal_v1_CreateSignalRequest_DEFAULT NULL
#define wippersnapper_signal_v1_CreateSignalRequest_payload_pin_configs_MSGTYPE wippersnapper_pin_v1_ConfigurePinRequests
Expand All @@ -79,6 +105,21 @@ X(a, STATIC, ONEOF, MSG_W_CB, (payload,pin_event,payload.pin_event), 15)
#define wippersnapper_signal_v1_CreateSignalRequest_payload_pixel_config_MSGTYPE wippersnapper_pixel_v1_ConfigurePixels
#define wippersnapper_signal_v1_CreateSignalRequest_payload_pixel_event_MSGTYPE wippersnapper_pixel_v1_PixelEvent
#define wippersnapper_signal_v1_CreateSignalRequest_payload_pin_event_MSGTYPE wippersnapper_pin_v1_PinEvent
#define wippersnapper_signal_v1_CreateSignalRequest_payload_request_i2c_scan_MSGTYPE wippersnapper_i2c_v1_I2CScanRequest
#define wippersnapper_signal_v1_CreateSignalRequest_payload_request_aht_init_MSGTYPE wippersnapper_i2c_v1_AHTInitRequest
#define wippersnapper_signal_v1_CreateSignalRequest_payload_request_aht_deinit_MSGTYPE wippersnapper_i2c_v1_AHTDeinitRequest

#define wippersnapper_signal_v1_SignalResponse_FIELDLIST(X, a) \
X(a, STATIC, ONEOF, MESSAGE, (response_payload,response_i2c_scan,response_payload.response_i2c_scan), 1) \
X(a, STATIC, ONEOF, MESSAGE, (response_payload,response_sensor_details,response_payload.response_sensor_details), 2) \
X(a, STATIC, ONEOF, MESSAGE, (response_payload,response_sensor_event,response_payload.response_sensor_event), 3) \
X(a, STATIC, ONEOF, MESSAGE, (response_payload,response_aht_init,response_payload.response_aht_init), 4)
#define wippersnapper_signal_v1_SignalResponse_CALLBACK NULL
#define wippersnapper_signal_v1_SignalResponse_DEFAULT NULL
#define wippersnapper_signal_v1_SignalResponse_response_payload_response_i2c_scan_MSGTYPE wippersnapper_i2c_v1_I2CScanResponse
#define wippersnapper_signal_v1_SignalResponse_response_payload_response_sensor_details_MSGTYPE wippersnapper_i2c_v1_SensorDetails
#define wippersnapper_signal_v1_SignalResponse_response_payload_response_sensor_event_MSGTYPE wippersnapper_i2c_v1_SensorEvent
#define wippersnapper_signal_v1_SignalResponse_response_payload_response_aht_init_MSGTYPE wippersnapper_i2c_v1_AHTInitResponse

#define wippersnapper_signal_v1_CreateSignalResponse_FIELDLIST(X, a) \
X(a, CALLBACK, REPEATED, MESSAGE, sensor_attach_resps, 8)
Expand All @@ -87,17 +128,23 @@ X(a, CALLBACK, REPEATED, MESSAGE, sensor_attach_resps, 8)
#define wippersnapper_signal_v1_CreateSignalResponse_sensor_attach_resps_MSGTYPE wippersnapper_sensor_v1_AttachOrUpdateSensorResponse

extern const pb_msgdesc_t wippersnapper_signal_v1_CreateSignalRequest_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_SignalResponse_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_CreateSignalResponse_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define wippersnapper_signal_v1_CreateSignalRequest_fields &wippersnapper_signal_v1_CreateSignalRequest_msg
#define wippersnapper_signal_v1_SignalResponse_fields &wippersnapper_signal_v1_SignalResponse_msg
#define wippersnapper_signal_v1_CreateSignalResponse_fields &wippersnapper_signal_v1_CreateSignalResponse_msg

/* Maximum encoded size of messages (where known) */
#if defined(wippersnapper_pin_v1_ConfigurePinRequests_size) && defined(wippersnapper_pin_v1_PinEvents_size) && defined(wippersnapper_sensor_v1_AttachOrUpdateSensorRequests_size) && defined(wippersnapper_sensor_v1_SensorEventRequests_size) && defined(wippersnapper_pin_v1_ConfigurePWMPinRequests_size) && defined(wippersnapper_pin_v1_PWMPinEvents_size) && defined(wippersnapper_pixel_v1_ConfigurePixels_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 f8[(6 + wippersnapper_sensor_v1_AttachOrUpdateSensorRequests_size)]; char f9[(6 + wippersnapper_sensor_v1_SensorEventRequests_size)]; char f10[(6 + wippersnapper_pin_v1_ConfigurePWMPinRequests_size)]; char f12[(6 + wippersnapper_pin_v1_PWMPinEvents_size)]; char f13[(6 + wippersnapper_pixel_v1_ConfigurePixels_size)]; char f0[28];};
#define wippersnapper_signal_v1_CreateSignalRequest_size (0 + sizeof(union wippersnapper_signal_v1_CreateSignalRequest_payload_size_union))
#endif
#if defined(wippersnapper_i2c_v1_SensorDetails_size) && defined(wippersnapper_i2c_v1_AHTInitResponse_size)
union wippersnapper_signal_v1_SignalResponse_response_payload_size_union {char f2[(6 + wippersnapper_i2c_v1_SensorDetails_size)]; char f4[(6 + wippersnapper_i2c_v1_AHTInitResponse_size)]; char f0[42];};
#define wippersnapper_signal_v1_SignalResponse_size (0 + sizeof(union wippersnapper_signal_v1_SignalResponse_response_payload_size_union))
#endif
/* wippersnapper_signal_v1_CreateSignalResponse_size depends on runtime parameters */

#ifdef __cplusplus
Expand Down

0 comments on commit affad77

Please sign in to comment.