Пример #1
0
/* Automatically generated nanopb constant definitions */
#include "potentiometer.pb.h"



const pb_field_t potentiometer_In_fields[2] = {
    {1, PB_HTYPE_REQUIRED | PB_LTYPE_VARINT,
    offsetof(potentiometer_In, value), 0,
    pb_membersize(potentiometer_In, value), 0, 0},

    PB_LAST_FIELD
};

const pb_field_t potentiometer_Out_fields[3] = {
    {1, PB_HTYPE_REQUIRED | PB_LTYPE_VARINT,
    offsetof(potentiometer_Out, value), 0,
    pb_membersize(potentiometer_Out, value), 0, 0},

    {2, PB_HTYPE_OPTIONAL | PB_LTYPE_VARINT,
    pb_delta_end(potentiometer_Out, temperature, value),
    pb_delta(potentiometer_Out, has_temperature, temperature),
    pb_membersize(potentiometer_Out, temperature), 0, 0},

    PB_LAST_FIELD
};

Пример #2
0
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.1.7-dev at Tue Nov 13 15:12:47 2012. */

#include "command.pb.h"

const pb_field_t SensorData_fields[5] = {
    {1, (pb_type_t) ((int) PB_HTYPE_REQUIRED | (int) PB_LTYPE_STRING),
    offsetof(SensorData, type), 0,
    pb_membersize(SensorData, type), 0, 0},

    {2, (pb_type_t) ((int) PB_HTYPE_REQUIRED | (int) PB_LTYPE_STRING),
    pb_delta_end(SensorData, description, type), 0,
    pb_membersize(SensorData, description), 0, 0},

    {3, (pb_type_t) ((int) PB_HTYPE_REQUIRED | (int) PB_LTYPE_VARINT),
    pb_delta_end(SensorData, address, description), 0,
    pb_membersize(SensorData, address), 0, 0},

    {4, (pb_type_t) ((int) PB_HTYPE_REQUIRED | (int) PB_LTYPE_VARINT),
    pb_delta_end(SensorData, value, address), 0,
    pb_membersize(SensorData, value), 0, 0},

    PB_LAST_FIELD
};

const pb_field_t DriveSignals_fields[4] = {
    {1, (pb_type_t) ((int) PB_HTYPE_REQUIRED | (int) PB_LTYPE_VARINT),
    offsetof(DriveSignals, forward), 0,
    pb_membersize(DriveSignals, forward), 0, 0},

    {2, (pb_type_t) ((int) PB_HTYPE_REQUIRED | (int) PB_LTYPE_VARINT),
Пример #3
0
/* Automatically generated nanopb constant definitions */
/* Generated by nanopb-0.1.9-dev at Fri Jan 18 14:24:46 2013. */

#include "pmbus.pb.h"



const pb_field_t pmbus_In_fields[3] = {
    {1, (pb_type_t) ((int) PB_HTYPE_REQUIRED | (int) PB_LTYPE_VARINT),
    offsetof(pmbus_In, pmbusAddress), 0,
    pb_membersize(pmbus_In, pmbusAddress), 0, 0},

    {2, (pb_type_t) ((int) PB_HTYPE_CALLBACK | (int) PB_LTYPE_SUBMESSAGE),
    pb_delta_end(pmbus_In, command, pmbusAddress), 0,
    pb_membersize(pmbus_In, command), 0,
    &pmbus_Command_fields},

    PB_LAST_FIELD
};

const pb_field_t pmbus_Out_fields[3] = {
    {1, (pb_type_t) ((int) PB_HTYPE_REQUIRED | (int) PB_LTYPE_VARINT),
    offsetof(pmbus_Out, pmbusAddress), 0,
    pb_membersize(pmbus_Out, pmbusAddress), 0, 0},

    {2, (pb_type_t) ((int) PB_HTYPE_CALLBACK | (int) PB_LTYPE_SUBMESSAGE),
    pb_delta_end(pmbus_Out, response, pmbusAddress), 0,
    pb_membersize(pmbus_Out, response), 0,
    &pmbus_Response_fields},

    PB_LAST_FIELD