@@ -60,7 +60,7 @@ typedef struct _wippersnapper_i2c_output_I2cOutputAdd {
60
60
typedef struct _wippersnapper_i2c_output_LedBackpackWrite {
61
61
pb_size_t which_message ;
62
62
union {
63
- pb_callback_t text ; /* * Text to write to the LED backpack. * */
63
+ char text [ 20 ] ; /* * Text to write to the LED backpack. * */
64
64
int32_t number_int ; /* * Number to write to the LED backpack. * */
65
65
float number_float ; /* * Float to write to the LED backpack. * */
66
66
} message ;
@@ -76,7 +76,7 @@ typedef struct _wippersnapper_i2c_output_LedBackpackWrite {
76
76
typedef struct _wippersnapper_i2c_output_CharLCDWrite {
77
77
pb_size_t which_message ;
78
78
union {
79
- pb_callback_t text ; /* * Text to write to the character LCD. * */
79
+ char text [ 20 ] ; /* * Text to write to the character LCD. * */
80
80
int32_t number_int ; /* * Number to write to the character LCD. * */
81
81
float number_float ; /* * Float to write to the character LCD. * */
82
82
} message ;
@@ -111,13 +111,13 @@ extern "C" {
111
111
#define wippersnapper_i2c_output_LedBackpackConfig_init_default {0, _wippersnapper_i2c_output_LedBackpackAlignment_MIN}
112
112
#define wippersnapper_i2c_output_CharLCDConfig_init_default {0, 0, 0, ""}
113
113
#define wippersnapper_i2c_output_I2cOutputAdd_init_default {0, {wippersnapper_i2c_output_LedBackpackConfig_init_default}}
114
- #define wippersnapper_i2c_output_LedBackpackWrite_init_default {0, {{{NULL}, NULL} }, 0, _wippersnapper_i2c_output_LedBackpackBlinkRate_MIN, 0, 0, 0}
115
- #define wippersnapper_i2c_output_CharLCDWrite_init_default {0, {{{NULL}, NULL} }, 0, "", 0}
114
+ #define wippersnapper_i2c_output_LedBackpackWrite_init_default {0, {"" }, 0, _wippersnapper_i2c_output_LedBackpackBlinkRate_MIN, 0, 0, 0}
115
+ #define wippersnapper_i2c_output_CharLCDWrite_init_default {0, {"" }, 0, "", 0}
116
116
#define wippersnapper_i2c_output_LedBackpackConfig_init_zero {0, _wippersnapper_i2c_output_LedBackpackAlignment_MIN}
117
117
#define wippersnapper_i2c_output_CharLCDConfig_init_zero {0, 0, 0, ""}
118
118
#define wippersnapper_i2c_output_I2cOutputAdd_init_zero {0, {wippersnapper_i2c_output_LedBackpackConfig_init_zero}}
119
- #define wippersnapper_i2c_output_LedBackpackWrite_init_zero {0, {{{NULL}, NULL} }, 0, _wippersnapper_i2c_output_LedBackpackBlinkRate_MIN, 0, 0, 0}
120
- #define wippersnapper_i2c_output_CharLCDWrite_init_zero {0, {{{NULL}, NULL} }, 0, "", 0}
119
+ #define wippersnapper_i2c_output_LedBackpackWrite_init_zero {0, {"" }, 0, _wippersnapper_i2c_output_LedBackpackBlinkRate_MIN, 0, 0, 0}
120
+ #define wippersnapper_i2c_output_CharLCDWrite_init_zero {0, {"" }, 0, "", 0}
121
121
122
122
/* Field tags (for use in manual encoding/decoding) */
123
123
#define wippersnapper_i2c_output_LedBackpackConfig_brightness_tag 1
@@ -167,25 +167,25 @@ X(a, STATIC, ONEOF, MESSAGE, (config,char_lcd_config,config.char_lcd_confi
167
167
#define wippersnapper_i2c_output_I2cOutputAdd_config_char_lcd_config_MSGTYPE wippersnapper_i2c_output_CharLCDConfig
168
168
169
169
#define wippersnapper_i2c_output_LedBackpackWrite_FIELDLIST (X , a ) \
170
- X(a, CALLBACK, ONEOF, STRING, (message,text,message.text), 1) \
170
+ X(a, STATIC, ONEOF, STRING, (message,text,message.text), 1) \
171
171
X(a, STATIC, ONEOF, INT32, (message,number_int,message.number_int), 2) \
172
172
X(a, STATIC, ONEOF, FLOAT, (message,number_float,message.number_float), 3) \
173
173
X(a, STATIC, SINGULAR, INT32, brightness, 4) \
174
174
X(a, STATIC, SINGULAR, UENUM, blink_rate, 5) \
175
175
X(a, STATIC, SINGULAR, BOOL, enable_scroll_marquee, 6) \
176
176
X(a, STATIC, SINGULAR, FLOAT, scroll_marquee_speed, 7) \
177
177
X(a, STATIC, SINGULAR, BOOL, enable_ampm_dot, 8)
178
- #define wippersnapper_i2c_output_LedBackpackWrite_CALLBACK pb_default_field_callback
178
+ #define wippersnapper_i2c_output_LedBackpackWrite_CALLBACK NULL
179
179
#define wippersnapper_i2c_output_LedBackpackWrite_DEFAULT NULL
180
180
181
181
#define wippersnapper_i2c_output_CharLCDWrite_FIELDLIST (X , a ) \
182
- X(a, CALLBACK, ONEOF, STRING, (message,text,message.text), 1) \
182
+ X(a, STATIC, ONEOF, STRING, (message,text,message.text), 1) \
183
183
X(a, STATIC, ONEOF, INT32, (message,number_int,message.number_int), 2) \
184
184
X(a, STATIC, ONEOF, FLOAT, (message,number_float,message.number_float), 3) \
185
185
X(a, STATIC, SINGULAR, BOOL, enable_backlight, 4) \
186
186
X(a, STATIC, SINGULAR, STRING, backlight_color, 5) \
187
187
X(a, STATIC, SINGULAR, BOOL, enable_scroll, 6)
188
- #define wippersnapper_i2c_output_CharLCDWrite_CALLBACK pb_default_field_callback
188
+ #define wippersnapper_i2c_output_CharLCDWrite_CALLBACK NULL
189
189
#define wippersnapper_i2c_output_CharLCDWrite_DEFAULT NULL
190
190
191
191
extern const pb_msgdesc_t wippersnapper_i2c_output_LedBackpackConfig_msg ;
@@ -202,12 +202,12 @@ extern const pb_msgdesc_t wippersnapper_i2c_output_CharLCDWrite_msg;
202
202
#define wippersnapper_i2c_output_CharLCDWrite_fields &wippersnapper_i2c_output_CharLCDWrite_msg
203
203
204
204
/* Maximum encoded size of messages (where known) */
205
- /* wippersnapper_i2c_output_LedBackpackWrite_size depends on runtime parameters */
206
- /* wippersnapper_i2c_output_CharLCDWrite_size depends on runtime parameters */
207
- #define WIPPERSNAPPER_I2C_OUTPUT_I2C_OUTPUT_PB_H_MAX_SIZE wippersnapper_i2c_output_I2cOutputAdd_size
205
+ #define WIPPERSNAPPER_I2C_OUTPUT_I2C_OUTPUT_PB_H_MAX_SIZE wippersnapper_i2c_output_CharLCDWrite_size
208
206
#define wippersnapper_i2c_output_CharLCDConfig_size 30
207
+ #define wippersnapper_i2c_output_CharLCDWrite_size 46
209
208
#define wippersnapper_i2c_output_I2cOutputAdd_size 32
210
209
#define wippersnapper_i2c_output_LedBackpackConfig_size 13
210
+ #define wippersnapper_i2c_output_LedBackpackWrite_size 43
211
211
212
212
#ifdef __cplusplus
213
213
} /* extern "C" */
0 commit comments