Skip to content

Commit

Permalink
Merge pull request #486 from adafruit/protobuf-update-c98b38374e33d2a…
Browse files Browse the repository at this point in the history
…b093f8d636da8b4e5556e97da

.proto file wrappers updated
  • Loading branch information
brentru authored Sep 6, 2023
2 parents 80d8019 + 6442776 commit b4cc4ef
Show file tree
Hide file tree
Showing 18 changed files with 229 additions and 16 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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#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
2 changes: 1 addition & 1 deletion src/wippersnapper/ds18x20/v1/ds18x20.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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#include "wippersnapper/ds18x20/v1/ds18x20.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/ds18x20/v1/ds18x20.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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#ifndef PB_WIPPERSNAPPER_DS18X20_V1_WIPPERSNAPPER_DS18X20_V1_DS18X20_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_DS18X20_V1_WIPPERSNAPPER_DS18X20_V1_DS18X20_PB_H_INCLUDED
Expand Down
2 changes: 1 addition & 1 deletion 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 Tue Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#include "wippersnapper/i2c/v1/i2c.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/i2c/v1/i2c.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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#ifndef PB_WIPPERSNAPPER_I2C_V1_WIPPERSNAPPER_I2C_V1_I2C_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_I2C_V1_WIPPERSNAPPER_I2C_V1_I2C_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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#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/pixels/v1/pixels.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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#include "wippersnapper/pixels/v1/pixels.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/pixels/v1/pixels.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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#ifndef PB_WIPPERSNAPPER_PIXELS_V1_WIPPERSNAPPER_PIXELS_V1_PIXELS_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_PIXELS_V1_WIPPERSNAPPER_PIXELS_V1_PIXELS_PB_H_INCLUDED
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/pwm/v1/pwm.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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#include "wippersnapper/pwm/v1/pwm.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/pwm/v1/pwm.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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#ifndef PB_WIPPERSNAPPER_PWM_V1_WIPPERSNAPPER_PWM_V1_PWM_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_PWM_V1_WIPPERSNAPPER_PWM_V1_PWM_PB_H_INCLUDED
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/servo/v1/servo.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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#include "wippersnapper/servo/v1/servo.pb.h"
#if PB_PROTO_HEADER_VERSION != 40
Expand Down
2 changes: 1 addition & 1 deletion src/wippersnapper/servo/v1/servo.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 Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#ifndef PB_WIPPERSNAPPER_SERVO_V1_WIPPERSNAPPER_SERVO_V1_SERVO_PB_H_INCLUDED
#define PB_WIPPERSNAPPER_SERVO_V1_WIPPERSNAPPER_SERVO_V1_SERVO_PB_H_INCLUDED
Expand Down
8 changes: 7 additions & 1 deletion src/wippersnapper/signal/v1/signal.pb.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Tue Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

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

PB_BIND(wippersnapper_signal_v1_UARTRequest, wippersnapper_signal_v1_UARTRequest, AUTO)


PB_BIND(wippersnapper_signal_v1_UARTResponse, wippersnapper_signal_v1_UARTResponse, AUTO)


PB_BIND(wippersnapper_signal_v1_Ds18x20Request, wippersnapper_signal_v1_Ds18x20Request, AUTO)


Expand Down
51 changes: 50 additions & 1 deletion 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 Tue Aug 15 19:15:15 2023. */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

#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 All @@ -11,6 +11,7 @@
#include "wippersnapper/pwm/v1/pwm.pb.h"
#include "wippersnapper/ds18x20/v1/ds18x20.pb.h"
#include "wippersnapper/pixels/v1/pixels.pb.h"
#include "wippersnapper/uart/v1/uart.pb.h"

#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
Expand Down Expand Up @@ -133,12 +134,32 @@ typedef struct _wippersnapper_signal_v1_SignalResponse {
} payload;
} wippersnapper_signal_v1_SignalResponse;

typedef struct _wippersnapper_signal_v1_UARTRequest {
pb_callback_t cb_payload;
pb_size_t which_payload;
union {
wippersnapper_uart_v1_UARTDeviceAttachRequest req_uart_device_attach;
wippersnapper_uart_v1_UARTDeviceDetachRequest req_uart_device_detach;
} payload;
} wippersnapper_signal_v1_UARTRequest;

typedef struct _wippersnapper_signal_v1_UARTResponse {
pb_callback_t cb_payload;
pb_size_t which_payload;
union {
wippersnapper_uart_v1_UARTDeviceAttachResponse resp_uart_device_attach;
wippersnapper_uart_v1_UARTDeviceEvent resp_uart_device_event;
} payload;
} wippersnapper_signal_v1_UARTResponse;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define wippersnapper_signal_v1_UARTRequest_init_default {{{NULL}, NULL}, 0, {wippersnapper_uart_v1_UARTDeviceAttachRequest_init_default}}
#define wippersnapper_signal_v1_UARTResponse_init_default {{{NULL}, NULL}, 0, {wippersnapper_uart_v1_UARTDeviceAttachResponse_init_default}}
#define wippersnapper_signal_v1_Ds18x20Request_init_default {{{NULL}, NULL}, 0, {wippersnapper_ds18x20_v1_Ds18x20InitRequest_init_default}}
#define wippersnapper_signal_v1_Ds18x20Response_init_default {{{NULL}, NULL}, 0, {wippersnapper_ds18x20_v1_Ds18x20InitResponse_init_default}}
#define wippersnapper_signal_v1_I2CRequest_init_default {{{NULL}, NULL}, 0, {wippersnapper_i2c_v1_I2CBusScanRequest_init_default}}
Expand All @@ -151,6 +172,8 @@ extern "C" {
#define wippersnapper_signal_v1_SignalResponse_init_default {0, {0}}
#define wippersnapper_signal_v1_PWMRequest_init_default {{{NULL}, NULL}, 0, {wippersnapper_pwm_v1_PWMAttachRequest_init_default}}
#define wippersnapper_signal_v1_PWMResponse_init_default {{{NULL}, NULL}, 0, {wippersnapper_pwm_v1_PWMAttachResponse_init_default}}
#define wippersnapper_signal_v1_UARTRequest_init_zero {{{NULL}, NULL}, 0, {wippersnapper_uart_v1_UARTDeviceAttachRequest_init_zero}}
#define wippersnapper_signal_v1_UARTResponse_init_zero {{{NULL}, NULL}, 0, {wippersnapper_uart_v1_UARTDeviceAttachResponse_init_zero}}
#define wippersnapper_signal_v1_Ds18x20Request_init_zero {{{NULL}, NULL}, 0, {wippersnapper_ds18x20_v1_Ds18x20InitRequest_init_zero}}
#define wippersnapper_signal_v1_Ds18x20Response_init_zero {{{NULL}, NULL}, 0, {wippersnapper_ds18x20_v1_Ds18x20InitResponse_init_zero}}
#define wippersnapper_signal_v1_I2CRequest_init_zero {{{NULL}, NULL}, 0, {wippersnapper_i2c_v1_I2CBusScanRequest_init_zero}}
Expand Down Expand Up @@ -198,8 +221,28 @@ extern "C" {
#define wippersnapper_signal_v1_ServoRequest_servo_write_tag 3
#define wippersnapper_signal_v1_ServoResponse_servo_attach_resp_tag 1
#define wippersnapper_signal_v1_SignalResponse_configuration_complete_tag 1
#define wippersnapper_signal_v1_UARTRequest_req_uart_device_attach_tag 1
#define wippersnapper_signal_v1_UARTRequest_req_uart_device_detach_tag 2
#define wippersnapper_signal_v1_UARTResponse_resp_uart_device_attach_tag 1
#define wippersnapper_signal_v1_UARTResponse_resp_uart_device_event_tag 2

/* Struct field encoding specification for nanopb */
#define wippersnapper_signal_v1_UARTRequest_FIELDLIST(X, a) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_uart_device_attach,payload.req_uart_device_attach), 1) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_uart_device_detach,payload.req_uart_device_detach), 2)
#define wippersnapper_signal_v1_UARTRequest_CALLBACK NULL
#define wippersnapper_signal_v1_UARTRequest_DEFAULT NULL
#define wippersnapper_signal_v1_UARTRequest_payload_req_uart_device_attach_MSGTYPE wippersnapper_uart_v1_UARTDeviceAttachRequest
#define wippersnapper_signal_v1_UARTRequest_payload_req_uart_device_detach_MSGTYPE wippersnapper_uart_v1_UARTDeviceDetachRequest

#define wippersnapper_signal_v1_UARTResponse_FIELDLIST(X, a) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,resp_uart_device_attach,payload.resp_uart_device_attach), 1) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,resp_uart_device_event,payload.resp_uart_device_event), 2)
#define wippersnapper_signal_v1_UARTResponse_CALLBACK NULL
#define wippersnapper_signal_v1_UARTResponse_DEFAULT NULL
#define wippersnapper_signal_v1_UARTResponse_payload_resp_uart_device_attach_MSGTYPE wippersnapper_uart_v1_UARTDeviceAttachResponse
#define wippersnapper_signal_v1_UARTResponse_payload_resp_uart_device_event_MSGTYPE wippersnapper_uart_v1_UARTDeviceEvent

#define wippersnapper_signal_v1_Ds18x20Request_FIELDLIST(X, a) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_ds18x20_init,payload.req_ds18x20_init), 1) \
X(a, STATIC, ONEOF, MSG_W_CB, (payload,req_ds18x20_deinit,payload.req_ds18x20_deinit), 2)
Expand Down Expand Up @@ -313,6 +356,8 @@ X(a, STATIC, ONEOF, MSG_W_CB, (payload,attach_response,payload.attach_respo
#define wippersnapper_signal_v1_PWMResponse_DEFAULT NULL
#define wippersnapper_signal_v1_PWMResponse_payload_attach_response_MSGTYPE wippersnapper_pwm_v1_PWMAttachResponse

extern const pb_msgdesc_t wippersnapper_signal_v1_UARTRequest_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_UARTResponse_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_Ds18x20Request_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_Ds18x20Response_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_I2CRequest_msg;
Expand All @@ -327,6 +372,8 @@ extern const pb_msgdesc_t wippersnapper_signal_v1_PWMRequest_msg;
extern const pb_msgdesc_t wippersnapper_signal_v1_PWMResponse_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define wippersnapper_signal_v1_UARTRequest_fields &wippersnapper_signal_v1_UARTRequest_msg
#define wippersnapper_signal_v1_UARTResponse_fields &wippersnapper_signal_v1_UARTResponse_msg
#define wippersnapper_signal_v1_Ds18x20Request_fields &wippersnapper_signal_v1_Ds18x20Request_msg
#define wippersnapper_signal_v1_Ds18x20Response_fields &wippersnapper_signal_v1_Ds18x20Response_msg
#define wippersnapper_signal_v1_I2CRequest_fields &wippersnapper_signal_v1_I2CRequest_msg
Expand All @@ -341,6 +388,8 @@ extern const pb_msgdesc_t wippersnapper_signal_v1_PWMResponse_msg;
#define wippersnapper_signal_v1_PWMResponse_fields &wippersnapper_signal_v1_PWMResponse_msg

/* Maximum encoded size of messages (where known) */
#define wippersnapper_signal_v1_UARTRequest_size 58
#define wippersnapper_signal_v1_UARTResponse_size 154
#define wippersnapper_signal_v1_Ds18x20Request_size 39
#define wippersnapper_signal_v1_Ds18x20Response_size 26
#if defined(wippersnapper_i2c_v1_I2CDeviceInitRequests_size)
Expand Down
24 changes: 24 additions & 0 deletions src/wippersnapper/uart/v1/uart.pb.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */

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

PB_BIND(wippersnapper_uart_v1_UARTBusData, wippersnapper_uart_v1_UARTBusData, AUTO)


PB_BIND(wippersnapper_uart_v1_UARTDeviceAttachRequest, wippersnapper_uart_v1_UARTDeviceAttachRequest, AUTO)


PB_BIND(wippersnapper_uart_v1_UARTDeviceAttachResponse, wippersnapper_uart_v1_UARTDeviceAttachResponse, AUTO)


PB_BIND(wippersnapper_uart_v1_UARTDeviceDetachRequest, wippersnapper_uart_v1_UARTDeviceDetachRequest, AUTO)


PB_BIND(wippersnapper_uart_v1_UARTDeviceEvent, wippersnapper_uart_v1_UARTDeviceEvent, AUTO)



Loading

0 comments on commit b4cc4ef

Please sign in to comment.