diff --git a/src/wippersnapper/description/v1/description.pb.c b/src/wippersnapper/description/v1/description.pb.c index 19bb4d7d1..892b3cd94 100644 --- a/src/wippersnapper/description/v1/description.pb.c +++ b/src/wippersnapper/description/v1/description.pb.c @@ -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 diff --git a/src/wippersnapper/description/v1/description.pb.h b/src/wippersnapper/description/v1/description.pb.h index e4c6943e0..f9a22c7d7 100644 --- a/src/wippersnapper/description/v1/description.pb.h +++ b/src/wippersnapper/description/v1/description.pb.h @@ -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 diff --git a/src/wippersnapper/ds18x20/v1/ds18x20.pb.c b/src/wippersnapper/ds18x20/v1/ds18x20.pb.c index 2ecf023ca..4d3172b5d 100644 --- a/src/wippersnapper/ds18x20/v1/ds18x20.pb.c +++ b/src/wippersnapper/ds18x20/v1/ds18x20.pb.c @@ -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 diff --git a/src/wippersnapper/ds18x20/v1/ds18x20.pb.h b/src/wippersnapper/ds18x20/v1/ds18x20.pb.h index 82ef30408..101908aba 100644 --- a/src/wippersnapper/ds18x20/v1/ds18x20.pb.h +++ b/src/wippersnapper/ds18x20/v1/ds18x20.pb.h @@ -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 diff --git a/src/wippersnapper/i2c/v1/i2c.pb.c b/src/wippersnapper/i2c/v1/i2c.pb.c index 95122a951..b0f46a992 100644 --- a/src/wippersnapper/i2c/v1/i2c.pb.c +++ b/src/wippersnapper/i2c/v1/i2c.pb.c @@ -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 diff --git a/src/wippersnapper/i2c/v1/i2c.pb.h b/src/wippersnapper/i2c/v1/i2c.pb.h index 94e0dc047..f6865e1fd 100644 --- a/src/wippersnapper/i2c/v1/i2c.pb.h +++ b/src/wippersnapper/i2c/v1/i2c.pb.h @@ -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 diff --git a/src/wippersnapper/pin/v1/pin.pb.c b/src/wippersnapper/pin/v1/pin.pb.c index e75ef91e5..cadf00dee 100644 --- a/src/wippersnapper/pin/v1/pin.pb.c +++ b/src/wippersnapper/pin/v1/pin.pb.c @@ -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 diff --git a/src/wippersnapper/pin/v1/pin.pb.h b/src/wippersnapper/pin/v1/pin.pb.h index aa2c5a91a..9859c9ff2 100644 --- a/src/wippersnapper/pin/v1/pin.pb.h +++ b/src/wippersnapper/pin/v1/pin.pb.h @@ -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 diff --git a/src/wippersnapper/pixels/v1/pixels.pb.c b/src/wippersnapper/pixels/v1/pixels.pb.c index 3b2d84a3e..1e3532d81 100644 --- a/src/wippersnapper/pixels/v1/pixels.pb.c +++ b/src/wippersnapper/pixels/v1/pixels.pb.c @@ -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 diff --git a/src/wippersnapper/pixels/v1/pixels.pb.h b/src/wippersnapper/pixels/v1/pixels.pb.h index 3af9f930d..81a309c19 100644 --- a/src/wippersnapper/pixels/v1/pixels.pb.h +++ b/src/wippersnapper/pixels/v1/pixels.pb.h @@ -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 diff --git a/src/wippersnapper/pwm/v1/pwm.pb.c b/src/wippersnapper/pwm/v1/pwm.pb.c index 17414160f..743548385 100644 --- a/src/wippersnapper/pwm/v1/pwm.pb.c +++ b/src/wippersnapper/pwm/v1/pwm.pb.c @@ -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 diff --git a/src/wippersnapper/pwm/v1/pwm.pb.h b/src/wippersnapper/pwm/v1/pwm.pb.h index a7859595b..5146ed396 100644 --- a/src/wippersnapper/pwm/v1/pwm.pb.h +++ b/src/wippersnapper/pwm/v1/pwm.pb.h @@ -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 diff --git a/src/wippersnapper/servo/v1/servo.pb.c b/src/wippersnapper/servo/v1/servo.pb.c index 5ed80ee42..e96dc47b1 100644 --- a/src/wippersnapper/servo/v1/servo.pb.c +++ b/src/wippersnapper/servo/v1/servo.pb.c @@ -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 diff --git a/src/wippersnapper/servo/v1/servo.pb.h b/src/wippersnapper/servo/v1/servo.pb.h index 31ee36bf0..ee5fdeb43 100644 --- a/src/wippersnapper/servo/v1/servo.pb.h +++ b/src/wippersnapper/servo/v1/servo.pb.h @@ -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 diff --git a/src/wippersnapper/signal/v1/signal.pb.c b/src/wippersnapper/signal/v1/signal.pb.c index a75ff3638..e793af832 100644 --- a/src/wippersnapper/signal/v1/signal.pb.c +++ b/src/wippersnapper/signal/v1/signal.pb.c @@ -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) diff --git a/src/wippersnapper/signal/v1/signal.pb.h b/src/wippersnapper/signal/v1/signal.pb.h index fe29fb4ad..328fd3757 100644 --- a/src/wippersnapper/signal/v1/signal.pb.h +++ b/src/wippersnapper/signal/v1/signal.pb.h @@ -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 @@ -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. @@ -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}} @@ -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}} @@ -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) @@ -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; @@ -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 @@ -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) diff --git a/src/wippersnapper/uart/v1/uart.pb.c b/src/wippersnapper/uart/v1/uart.pb.c new file mode 100644 index 000000000..b58470741 --- /dev/null +++ b/src/wippersnapper/uart/v1/uart.pb.c @@ -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) + + + diff --git a/src/wippersnapper/uart/v1/uart.pb.h b/src/wippersnapper/uart/v1/uart.pb.h new file mode 100644 index 000000000..fc197c4c2 --- /dev/null +++ b/src/wippersnapper/uart/v1/uart.pb.h @@ -0,0 +1,134 @@ +/* Automatically generated nanopb header */ +/* Generated by nanopb-0.4.5-dev at Wed Sep 6 18:22:09 2023. */ + +#ifndef PB_WIPPERSNAPPER_UART_V1_WIPPERSNAPPER_UART_V1_UART_PB_H_INCLUDED +#define PB_WIPPERSNAPPER_UART_V1_WIPPERSNAPPER_UART_V1_UART_PB_H_INCLUDED +#include +#include "nanopb/nanopb.pb.h" +#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 + +/* Struct definitions */ +typedef struct _wippersnapper_uart_v1_UARTBusData { + int32_t baudrate; + char pin_rx[6]; + char pin_tx[6]; + bool is_invert; +} wippersnapper_uart_v1_UARTBusData; + +typedef struct _wippersnapper_uart_v1_UARTDeviceAttachResponse { + char device_id[15]; + bool is_success; +} wippersnapper_uart_v1_UARTDeviceAttachResponse; + +typedef struct _wippersnapper_uart_v1_UARTDeviceDetachRequest { + char device_id[15]; +} wippersnapper_uart_v1_UARTDeviceDetachRequest; + +typedef struct _wippersnapper_uart_v1_UARTDeviceEvent { + char device_id[15]; + pb_size_t sensor_event_count; + wippersnapper_i2c_v1_SensorEvent sensor_event[15]; +} wippersnapper_uart_v1_UARTDeviceEvent; + +typedef struct _wippersnapper_uart_v1_UARTDeviceAttachRequest { + bool has_bus_info; + wippersnapper_uart_v1_UARTBusData bus_info; + char device_id[15]; + int32_t polling_interval; +} wippersnapper_uart_v1_UARTDeviceAttachRequest; + + +#ifdef __cplusplus +extern "C" { +#endif + +/* Initializer values for message structs */ +#define wippersnapper_uart_v1_UARTBusData_init_default {0, "", "", 0} +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_init_default {false, wippersnapper_uart_v1_UARTBusData_init_default, "", 0} +#define wippersnapper_uart_v1_UARTDeviceAttachResponse_init_default {"", 0} +#define wippersnapper_uart_v1_UARTDeviceDetachRequest_init_default {""} +#define wippersnapper_uart_v1_UARTDeviceEvent_init_default {"", 0, {wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default, wippersnapper_i2c_v1_SensorEvent_init_default}} +#define wippersnapper_uart_v1_UARTBusData_init_zero {0, "", "", 0} +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_init_zero {false, wippersnapper_uart_v1_UARTBusData_init_zero, "", 0} +#define wippersnapper_uart_v1_UARTDeviceAttachResponse_init_zero {"", 0} +#define wippersnapper_uart_v1_UARTDeviceDetachRequest_init_zero {""} +#define wippersnapper_uart_v1_UARTDeviceEvent_init_zero {"", 0, {wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero, wippersnapper_i2c_v1_SensorEvent_init_zero}} + +/* Field tags (for use in manual encoding/decoding) */ +#define wippersnapper_uart_v1_UARTBusData_baudrate_tag 1 +#define wippersnapper_uart_v1_UARTBusData_pin_rx_tag 2 +#define wippersnapper_uart_v1_UARTBusData_pin_tx_tag 3 +#define wippersnapper_uart_v1_UARTBusData_is_invert_tag 4 +#define wippersnapper_uart_v1_UARTDeviceAttachResponse_device_id_tag 1 +#define wippersnapper_uart_v1_UARTDeviceAttachResponse_is_success_tag 2 +#define wippersnapper_uart_v1_UARTDeviceDetachRequest_device_id_tag 1 +#define wippersnapper_uart_v1_UARTDeviceEvent_device_id_tag 1 +#define wippersnapper_uart_v1_UARTDeviceEvent_sensor_event_tag 2 +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_bus_info_tag 1 +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_device_id_tag 2 +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_polling_interval_tag 3 + +/* Struct field encoding specification for nanopb */ +#define wippersnapper_uart_v1_UARTBusData_FIELDLIST(X, a) \ +X(a, STATIC, SINGULAR, INT32, baudrate, 1) \ +X(a, STATIC, SINGULAR, STRING, pin_rx, 2) \ +X(a, STATIC, SINGULAR, STRING, pin_tx, 3) \ +X(a, STATIC, SINGULAR, BOOL, is_invert, 4) +#define wippersnapper_uart_v1_UARTBusData_CALLBACK NULL +#define wippersnapper_uart_v1_UARTBusData_DEFAULT NULL + +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_FIELDLIST(X, a) \ +X(a, STATIC, OPTIONAL, MESSAGE, bus_info, 1) \ +X(a, STATIC, SINGULAR, STRING, device_id, 2) \ +X(a, STATIC, SINGULAR, INT32, polling_interval, 3) +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_CALLBACK NULL +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_DEFAULT NULL +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_bus_info_MSGTYPE wippersnapper_uart_v1_UARTBusData + +#define wippersnapper_uart_v1_UARTDeviceAttachResponse_FIELDLIST(X, a) \ +X(a, STATIC, SINGULAR, STRING, device_id, 1) \ +X(a, STATIC, SINGULAR, BOOL, is_success, 2) +#define wippersnapper_uart_v1_UARTDeviceAttachResponse_CALLBACK NULL +#define wippersnapper_uart_v1_UARTDeviceAttachResponse_DEFAULT NULL + +#define wippersnapper_uart_v1_UARTDeviceDetachRequest_FIELDLIST(X, a) \ +X(a, STATIC, SINGULAR, STRING, device_id, 1) +#define wippersnapper_uart_v1_UARTDeviceDetachRequest_CALLBACK NULL +#define wippersnapper_uart_v1_UARTDeviceDetachRequest_DEFAULT NULL + +#define wippersnapper_uart_v1_UARTDeviceEvent_FIELDLIST(X, a) \ +X(a, STATIC, SINGULAR, STRING, device_id, 1) \ +X(a, STATIC, REPEATED, MESSAGE, sensor_event, 2) +#define wippersnapper_uart_v1_UARTDeviceEvent_CALLBACK NULL +#define wippersnapper_uart_v1_UARTDeviceEvent_DEFAULT NULL +#define wippersnapper_uart_v1_UARTDeviceEvent_sensor_event_MSGTYPE wippersnapper_i2c_v1_SensorEvent + +extern const pb_msgdesc_t wippersnapper_uart_v1_UARTBusData_msg; +extern const pb_msgdesc_t wippersnapper_uart_v1_UARTDeviceAttachRequest_msg; +extern const pb_msgdesc_t wippersnapper_uart_v1_UARTDeviceAttachResponse_msg; +extern const pb_msgdesc_t wippersnapper_uart_v1_UARTDeviceDetachRequest_msg; +extern const pb_msgdesc_t wippersnapper_uart_v1_UARTDeviceEvent_msg; + +/* Defines for backwards compatibility with code written before nanopb-0.4.0 */ +#define wippersnapper_uart_v1_UARTBusData_fields &wippersnapper_uart_v1_UARTBusData_msg +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_fields &wippersnapper_uart_v1_UARTDeviceAttachRequest_msg +#define wippersnapper_uart_v1_UARTDeviceAttachResponse_fields &wippersnapper_uart_v1_UARTDeviceAttachResponse_msg +#define wippersnapper_uart_v1_UARTDeviceDetachRequest_fields &wippersnapper_uart_v1_UARTDeviceDetachRequest_msg +#define wippersnapper_uart_v1_UARTDeviceEvent_fields &wippersnapper_uart_v1_UARTDeviceEvent_msg + +/* Maximum encoded size of messages (where known) */ +#define wippersnapper_uart_v1_UARTBusData_size 27 +#define wippersnapper_uart_v1_UARTDeviceAttachRequest_size 56 +#define wippersnapper_uart_v1_UARTDeviceAttachResponse_size 18 +#define wippersnapper_uart_v1_UARTDeviceDetachRequest_size 16 +#define wippersnapper_uart_v1_UARTDeviceEvent_size 151 + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#endif