Trying to encode a configuration file and a set of instructions to be passed to a microcontroller
Dependencies: MODSERIAL Nanopb
LEX_Initialisation.pb.h
- Committer:
- omatthews
- Date:
- 2019-08-18
- Revision:
- 5:72408582aadf
- Parent:
- 2:89156c267f7a
File content as of revision 5:72408582aadf:
/* Automatically generated nanopb header */ /* 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 #include <pb.h> /* @@protoc_insertion_point(includes) */ #if PB_PROTO_HEADER_VERSION != 30 #error Regenerate this file with the current version of nanopb generator. #endif #ifdef __cplusplus extern "C" { #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; int32_t trig_time; /* @@protoc_insertion_point(struct:SetPoint) */ } SetPoint; /* Default values for struct fields */ /* 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 #define LEX_INITIALISATION_MESSAGES \ #endif #ifdef __cplusplus } /* extern "C" */ #endif /* @@protoc_insertion_point(eof) */ #endif