Trying to encode a configuration file and a set of instructions to be passed to a microcontroller

Dependencies:   MODSERIAL Nanopb

Revision:
2:89156c267f7a
Parent:
0:abf096b1334e
--- a/LEX_Initialisation.pb.h	Sun Aug 18 19:03:28 2019 +0000
+++ b/LEX_Initialisation.pb.h	Sun Aug 18 19:14:59 2019 +0000
@@ -1,5 +1,5 @@
 /* Automatically generated nanopb header */
-/* Generated by nanopb-0.3.9.3 at Sat Aug 17 11:06:56 2019. */
+/* Generated by nanopb-0.3.9.3 at Sun Aug 18 20:07:09 2019. */
 
 #ifndef PB_LEX_INITIALISATION_PB_H_INCLUDED
 #define PB_LEX_INITIALISATION_PB_H_INCLUDED
@@ -15,6 +15,11 @@
 #endif
 
 /* Struct definitions */
+typedef struct _Configuration {
+    int32_t n_set_points;
+/* @@protoc_insertion_point(struct:Configuration) */
+} Configuration;
+
 typedef struct _SetPoint {
     float r_set_point;
     int32_t time_point;
@@ -26,18 +31,23 @@
 
 /* Initializer values for message structs */
 #define SetPoint_init_default                    {0, 0, 0}
+#define Configuration_init_default               {0}
 #define SetPoint_init_zero                       {0, 0, 0}
+#define Configuration_init_zero                  {0}
 
 /* Field tags (for use in manual encoding/decoding) */
+#define Configuration_n_set_points_tag           1
 #define SetPoint_r_set_point_tag                 1
 #define SetPoint_time_point_tag                  2
 #define SetPoint_trig_time_tag                   3
 
 /* Struct field encoding specification for nanopb */
 extern const pb_field_t SetPoint_fields[4];
+extern const pb_field_t Configuration_fields[2];
 
 /* Maximum encoded size of messages (where known) */
 #define SetPoint_size                            27
+#define Configuration_size                       11
 
 /* Message IDs (where set with "msgid" option) */
 #ifdef PB_MSGID