@@ -18,6 +18,8 @@ typedef struct _wippersnapper_gps_GPSConfig {
18
18
/* Baud rate is not included here as it is included in the UartAdd->UartSerialConfig message. */
19
19
pb_size_t commands_count ;
20
20
char commands [16 ][90 ]; /* * List of commands to configure the GPS * */
21
+ pb_size_t responses_count ;
22
+ char responses [16 ][90 ]; /* * List of corresponding responses to the commands * */
21
23
} wippersnapper_gps_GPSConfig ;
22
24
23
25
/* * GPSDateTime represents the date and time information from a GPRMC/GPGGA string * */
@@ -65,17 +67,18 @@ extern "C" {
65
67
#endif
66
68
67
69
/* Initializer values for message structs */
68
- #define wippersnapper_gps_GPSConfig_init_default {0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}}
70
+ #define wippersnapper_gps_GPSConfig_init_default {0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}, 0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""} }
69
71
#define wippersnapper_gps_GPSDateTime_init_default {0, 0, 0, 0, 0, 0, 0}
70
72
#define wippersnapper_gps_GPSRMCResponse_init_default {false, wippersnapper_gps_GPSDateTime_init_default, "", "", "", "", "", "", ""}
71
73
#define wippersnapper_gps_GPGGAResponse_init_default {false, wippersnapper_gps_GPSDateTime_init_default, "", "", "", "", 0, 0, "", "", ""}
72
- #define wippersnapper_gps_GPSConfig_init_zero {0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}}
74
+ #define wippersnapper_gps_GPSConfig_init_zero {0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}, 0, {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""} }
73
75
#define wippersnapper_gps_GPSDateTime_init_zero {0, 0, 0, 0, 0, 0, 0}
74
76
#define wippersnapper_gps_GPSRMCResponse_init_zero {false, wippersnapper_gps_GPSDateTime_init_zero, "", "", "", "", "", "", ""}
75
77
#define wippersnapper_gps_GPGGAResponse_init_zero {false, wippersnapper_gps_GPSDateTime_init_zero, "", "", "", "", 0, 0, "", "", ""}
76
78
77
79
/* Field tags (for use in manual encoding/decoding) */
78
80
#define wippersnapper_gps_GPSConfig_commands_tag 1
81
+ #define wippersnapper_gps_GPSConfig_responses_tag 2
79
82
#define wippersnapper_gps_GPSDateTime_hour_tag 1
80
83
#define wippersnapper_gps_GPSDateTime_minute_tag 2
81
84
#define wippersnapper_gps_GPSDateTime_seconds_tag 3
@@ -104,7 +107,8 @@ extern "C" {
104
107
105
108
/* Struct field encoding specification for nanopb */
106
109
#define wippersnapper_gps_GPSConfig_FIELDLIST (X , a ) \
107
- X(a, STATIC, REPEATED, STRING, commands, 1)
110
+ X(a, STATIC, REPEATED, STRING, commands, 1) \
111
+ X(a, STATIC, REPEATED, STRING, responses, 2)
108
112
#define wippersnapper_gps_GPSConfig_CALLBACK NULL
109
113
#define wippersnapper_gps_GPSConfig_DEFAULT NULL
110
114
@@ -161,7 +165,7 @@ extern const pb_msgdesc_t wippersnapper_gps_GPGGAResponse_msg;
161
165
/* Maximum encoded size of messages (where known) */
162
166
#define WIPPERSNAPPER_GPS_GPS_PB_H_MAX_SIZE wippersnapper_gps_GPSConfig_size
163
167
#define wippersnapper_gps_GPGGAResponse_size 168
164
- #define wippersnapper_gps_GPSConfig_size 1456
168
+ #define wippersnapper_gps_GPSConfig_size 2912
165
169
#define wippersnapper_gps_GPSDateTime_size 77
166
170
#define wippersnapper_gps_GPSRMCResponse_size 139
167
171
0 commit comments