FBRLogger final version

Dependencies:   EthernetInterface MSCAN Nanopb SDFileSystem mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fbr.pb.c Source File

fbr.pb.c

00001 /* Automatically generated nanopb constant definitions */
00002 /* Generated by nanopb-0.1.9 at Fri Feb 22 11:34:26 2013. */
00003 
00004 #include "fbr.pb.h"
00005 
00006 
00007 
00008 const pb_field_t network_message_fields[2] = {
00009     {1, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_SUBMESSAGE),
00010     offsetof(network_message, telemetry),
00011     pb_delta(network_message, has_telemetry, telemetry),
00012     pb_membersize(network_message, telemetry), 0,
00013     &telemetry_message_fields},
00014 
00015     PB_LAST_FIELD
00016 };
00017 
00018 const pb_field_t telemetry_message_fields[14] = {
00019     {1, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_VARINT),
00020     offsetof(telemetry_message, rpm),
00021     pb_delta(telemetry_message, has_rpm, rpm),
00022     pb_membersize(telemetry_message, rpm), 0, 0},
00023 
00024     {2, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_FIXED32),
00025     pb_delta_end(telemetry_message, throttle_pos, rpm),
00026     pb_delta(telemetry_message, has_throttle_pos, throttle_pos),
00027     pb_membersize(telemetry_message, throttle_pos), 0, 0},
00028 
00029     {3, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_FIXED32),
00030     pb_delta_end(telemetry_message, manifold_pres, throttle_pos),
00031     pb_delta(telemetry_message, has_manifold_pres, manifold_pres),
00032     pb_membersize(telemetry_message, manifold_pres), 0, 0},
00033 
00034     {4, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_FIXED32),
00035     pb_delta_end(telemetry_message, air_temp, manifold_pres),
00036     pb_delta(telemetry_message, has_air_temp, air_temp),
00037     pb_membersize(telemetry_message, air_temp), 0, 0},
00038 
00039     {5, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_FIXED32),
00040     pb_delta_end(telemetry_message, coolant_temp, air_temp),
00041     pb_delta(telemetry_message, has_coolant_temp, coolant_temp),
00042     pb_membersize(telemetry_message, coolant_temp), 0, 0},
00043 
00044     {6, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_VARINT),
00045     pb_delta_end(telemetry_message, lambda, coolant_temp),
00046     pb_delta(telemetry_message, has_lambda, lambda),
00047     pb_membersize(telemetry_message, lambda), 0, 0},
00048 
00049     {7, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_VARINT),
00050     pb_delta_end(telemetry_message, speed, lambda),
00051     pb_delta(telemetry_message, has_speed, speed),
00052     pb_membersize(telemetry_message, speed), 0, 0},
00053 
00054     {8, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_FIXED32),
00055     pb_delta_end(telemetry_message, accel_x, speed),
00056     pb_delta(telemetry_message, has_accel_x, accel_x),
00057     pb_membersize(telemetry_message, accel_x), 0, 0},
00058 
00059     {9, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_FIXED32),
00060     pb_delta_end(telemetry_message, accel_y, accel_x),
00061     pb_delta(telemetry_message, has_accel_y, accel_y),
00062     pb_membersize(telemetry_message, accel_y), 0, 0},
00063 
00064     {10, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_VARINT),
00065     pb_delta_end(telemetry_message, gear, accel_y),
00066     pb_delta(telemetry_message, has_gear, gear),
00067     pb_membersize(telemetry_message, gear), 0, 0},
00068 
00069     {11, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_VARINT),
00070     pb_delta_end(telemetry_message, oil_temp, gear),
00071     pb_delta(telemetry_message, has_oil_temp, oil_temp),
00072     pb_membersize(telemetry_message, oil_temp), 0, 0},
00073 
00074     {12, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_VARINT),
00075     pb_delta_end(telemetry_message, warnings, oil_temp),
00076     pb_delta(telemetry_message, has_warnings, warnings),
00077     pb_membersize(telemetry_message, warnings), 0, 0},
00078 
00079     {13, (pb_type_t) ((int) PB_HTYPE_OPTIONAL | (int) PB_LTYPE_FIXED32),
00080     pb_delta_end(telemetry_message, voltage, warnings),
00081     pb_delta(telemetry_message, has_voltage, voltage),
00082     pb_membersize(telemetry_message, voltage), 0, 0},
00083 
00084     PB_LAST_FIELD
00085 };
00086 
00087