Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ProtocBufTest Borsch
source/sample.pb.c
- Committer:
- sgnezdov
- Date:
- 2017-08-03
- Revision:
- 2:67db916a7e08
- Parent:
- 0:1139a294684a
File content as of revision 2:67db916a7e08:
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.3.8 at Wed Jul 12 11:04:33 2017. */
#include "sample.pb.h"
/* @@protoc_insertion_point(includes) */
#if PB_PROTO_HEADER_VERSION != 30
#error Regenerate this file with the current version of nanopb generator.
#endif
const pb_field_t protocol_Sample_fields[4] = {
PB_FIELD( 1, MESSAGE , SINGULAR, STATIC , FIRST, protocol_Sample, takenDT, takenDT, &google_protobuf_Timestamp_fields),
PB_FIELD( 2, UINT32 , SINGULAR, STATIC , OTHER, protocol_Sample, alarm, takenDT, 0),
PB_FIELD( 10, BYTES , SINGULAR, CALLBACK, OTHER, protocol_Sample, Payload, alarm, 0),
PB_LAST_FIELD
};
const pb_field_t protocol_SampleBatch_fields[5] = {
PB_FIELD( 1, STRING , SINGULAR, CALLBACK, FIRST, protocol_SampleBatch, sn, sn, 0),
PB_FIELD( 2, UINT32 , SINGULAR, STATIC , OTHER, protocol_SampleBatch, dataType, sn, 0),
PB_FIELD( 3, UINT32 , SINGULAR, STATIC , OTHER, protocol_SampleBatch, intervalLenghtInSeconds, dataType, 0),
PB_FIELD( 10, MESSAGE , REPEATED, CALLBACK, OTHER, protocol_SampleBatch, items, intervalLenghtInSeconds, &protocol_Sample_fields),
PB_LAST_FIELD
};
const pb_field_t protocol_SecureSampleBatch_fields[3] = {
PB_FIELD( 1, BYTES , SINGULAR, CALLBACK, FIRST, protocol_SecureSampleBatch, signature, signature, 0),
PB_FIELD( 2, BYTES , SINGULAR, CALLBACK, OTHER, protocol_SecureSampleBatch, content, signature, 0),
PB_LAST_FIELD
};
/* Check that field information fits in pb_field_t */
#if !defined(PB_FIELD_32BIT)
/* If you get an error here, it means that you need to define PB_FIELD_32BIT
* compile-time option. You can do that in pb.h or on compiler command line.
*
* The reason you need to do this is that some of your messages contain tag
* numbers or field sizes that are larger than what can fit in 8 or 16 bit
* field descriptors.
*/
PB_STATIC_ASSERT((pb_membersize(protocol_Sample, takenDT) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_protocol_Sample_protocol_SampleBatch_protocol_SecureSampleBatch)
#endif
#if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
/* If you get an error here, it means that you need to define PB_FIELD_16BIT
* compile-time option. You can do that in pb.h or on compiler command line.
*
* The reason you need to do this is that some of your messages contain tag
* numbers or field sizes that are larger than what can fit in the default
* 8 bit descriptors.
*/
PB_STATIC_ASSERT((pb_membersize(protocol_Sample, takenDT) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_protocol_Sample_protocol_SampleBatch_protocol_SecureSampleBatch)
#endif
/* @@protoc_insertion_point(eof) */