Nanopb (lightweight version of googles protobuf) test. It is not working as it should yet.

Dependencies:   MODSERIAL mbed

threeaxis.pb.c

Committer:
Tomas
Date:
2014-04-08
Revision:
0:bada2c7bd577

File content as of revision 0:bada2c7bd577:

/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.2.5 at Wed Feb 05 22:39:14 2014. */

#include "threeaxis.pb.h"



const pb_field_t status_message_fields[4] = {
    PB_FIELD2(  1, FLOAT   , REQUIRED, STATIC  , FIRST, status_message, BatteryLevel, BatteryLevel, 0),
    PB_FIELD2(  2, INT32   , REQUIRED, STATIC  , OTHER, status_message, Frequency, BatteryLevel, 0),
    PB_FIELD2(  3, INT32   , REQUIRED, STATIC  , OTHER, status_message, Mode, Frequency, 0),
    PB_LAST_FIELD
};

const pb_field_t imu_message_fields[4] = {
    PB_FIELD2(  1, FLOAT   , REQUIRED, STATIC  , FIRST, imu_message, X, X, 0),
    PB_FIELD2(  2, FLOAT   , REQUIRED, STATIC  , OTHER, imu_message, Y, X, 0),
    PB_FIELD2(  3, FLOAT   , REQUIRED, STATIC  , OTHER, imu_message, Z, Y, 0),
    PB_LAST_FIELD
};

const pb_field_t gyro_message_fields[4] = {
    PB_FIELD2(  1, FLOAT   , REQUIRED, STATIC  , FIRST, gyro_message, X, X, 0),
    PB_FIELD2(  2, FLOAT   , REQUIRED, STATIC  , OTHER, gyro_message, Y, X, 0),
    PB_FIELD2(  3, FLOAT   , REQUIRED, STATIC  , OTHER, gyro_message, Z, Y, 0),
    PB_LAST_FIELD
};

const pb_field_t acc_message_fields[4] = {
    PB_FIELD2(  1, FLOAT   , REQUIRED, STATIC  , FIRST, acc_message, X, X, 0),
    PB_FIELD2(  2, FLOAT   , REQUIRED, STATIC  , OTHER, acc_message, Y, X, 0),
    PB_FIELD2(  3, FLOAT   , REQUIRED, STATIC  , OTHER, acc_message, Z, Y, 0),
    PB_LAST_FIELD
};

const pb_field_t motor_message_fields[7] = {
    PB_FIELD2(  1, INT32   , REQUIRED, STATIC  , FIRST, motor_message, m1, m1, 0),
    PB_FIELD2(  2, INT32   , REQUIRED, STATIC  , OTHER, motor_message, m2, m1, 0),
    PB_FIELD2(  3, INT32   , REQUIRED, STATIC  , OTHER, motor_message, m3, m2, 0),
    PB_FIELD2(  4, INT32   , REQUIRED, STATIC  , OTHER, motor_message, m4, m3, 0),
    PB_FIELD2(  5, INT32   , REQUIRED, STATIC  , OTHER, motor_message, m5, m4, 0),
    PB_FIELD2(  6, INT32   , REQUIRED, STATIC  , OTHER, motor_message, m6, m5, 0),
    PB_LAST_FIELD
};