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

Dependencies:   MODSERIAL Nanopb

Committer:
omatthews
Date:
Sun Aug 18 18:53:32 2019 +0000
Revision:
0:abf096b1334e
Child:
2:89156c267f7a
With EoT working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
omatthews 0:abf096b1334e 1 /* Automatically generated nanopb header */
omatthews 0:abf096b1334e 2 /* Generated by nanopb-0.3.9.3 at Sat Aug 17 11:06:56 2019. */
omatthews 0:abf096b1334e 3
omatthews 0:abf096b1334e 4 #ifndef PB_LEX_INITIALISATION_PB_H_INCLUDED
omatthews 0:abf096b1334e 5 #define PB_LEX_INITIALISATION_PB_H_INCLUDED
omatthews 0:abf096b1334e 6 #include <pb.h>
omatthews 0:abf096b1334e 7
omatthews 0:abf096b1334e 8 /* @@protoc_insertion_point(includes) */
omatthews 0:abf096b1334e 9 #if PB_PROTO_HEADER_VERSION != 30
omatthews 0:abf096b1334e 10 #error Regenerate this file with the current version of nanopb generator.
omatthews 0:abf096b1334e 11 #endif
omatthews 0:abf096b1334e 12
omatthews 0:abf096b1334e 13 #ifdef __cplusplus
omatthews 0:abf096b1334e 14 extern "C" {
omatthews 0:abf096b1334e 15 #endif
omatthews 0:abf096b1334e 16
omatthews 0:abf096b1334e 17 /* Struct definitions */
omatthews 0:abf096b1334e 18 typedef struct _SetPoint {
omatthews 0:abf096b1334e 19 float r_set_point;
omatthews 0:abf096b1334e 20 int32_t time_point;
omatthews 0:abf096b1334e 21 int32_t trig_time;
omatthews 0:abf096b1334e 22 /* @@protoc_insertion_point(struct:SetPoint) */
omatthews 0:abf096b1334e 23 } SetPoint;
omatthews 0:abf096b1334e 24
omatthews 0:abf096b1334e 25 /* Default values for struct fields */
omatthews 0:abf096b1334e 26
omatthews 0:abf096b1334e 27 /* Initializer values for message structs */
omatthews 0:abf096b1334e 28 #define SetPoint_init_default {0, 0, 0}
omatthews 0:abf096b1334e 29 #define SetPoint_init_zero {0, 0, 0}
omatthews 0:abf096b1334e 30
omatthews 0:abf096b1334e 31 /* Field tags (for use in manual encoding/decoding) */
omatthews 0:abf096b1334e 32 #define SetPoint_r_set_point_tag 1
omatthews 0:abf096b1334e 33 #define SetPoint_time_point_tag 2
omatthews 0:abf096b1334e 34 #define SetPoint_trig_time_tag 3
omatthews 0:abf096b1334e 35
omatthews 0:abf096b1334e 36 /* Struct field encoding specification for nanopb */
omatthews 0:abf096b1334e 37 extern const pb_field_t SetPoint_fields[4];
omatthews 0:abf096b1334e 38
omatthews 0:abf096b1334e 39 /* Maximum encoded size of messages (where known) */
omatthews 0:abf096b1334e 40 #define SetPoint_size 27
omatthews 0:abf096b1334e 41
omatthews 0:abf096b1334e 42 /* Message IDs (where set with "msgid" option) */
omatthews 0:abf096b1334e 43 #ifdef PB_MSGID
omatthews 0:abf096b1334e 44
omatthews 0:abf096b1334e 45 #define LEX_INITIALISATION_MESSAGES \
omatthews 0:abf096b1334e 46
omatthews 0:abf096b1334e 47
omatthews 0:abf096b1334e 48 #endif
omatthews 0:abf096b1334e 49
omatthews 0:abf096b1334e 50 #ifdef __cplusplus
omatthews 0:abf096b1334e 51 } /* extern "C" */
omatthews 0:abf096b1334e 52 #endif
omatthews 0:abf096b1334e 53 /* @@protoc_insertion_point(eof) */
omatthews 0:abf096b1334e 54
omatthews 0:abf096b1334e 55 #endif