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.
Dependencies: mbed
messages.pb.c
00001 /* Automatically generated nanopb constant definitions */ 00002 /* Generated by nanopb-0.3.4 at Mon Jul 03 18:51:19 2017. */ 00003 00004 #include "messages.pb.h" 00005 00006 #if PB_PROTO_HEADER_VERSION != 30 00007 #error Regenerate this file with the current version of nanopb generator. 00008 #endif 00009 00010 00011 00012 const pb_field_t cisme_genericMsg_fields[3] = { 00013 PB_FIELD( 1, UENUM , REQUIRED, STATIC , FIRST, cisme_genericMsg, type, type, 0), 00014 PB_FIELD( 2, BYTES , REQUIRED, CALLBACK, OTHER, cisme_genericMsg, payload, type, 0), 00015 PB_LAST_FIELD 00016 }; 00017 00018 const pb_field_t cisme_instrumentIdMsg_fields[4] = { 00019 PB_FIELD( 1, STRING , OPTIONAL, CALLBACK, FIRST, cisme_instrumentIdMsg, id, id, 0), 00020 PB_FIELD( 2, STRING , OPTIONAL, CALLBACK, OTHER, cisme_instrumentIdMsg, binary, id, 0), 00021 PB_FIELD( 3, STRING , OPTIONAL, CALLBACK, OTHER, cisme_instrumentIdMsg, timestamp, binary, 0), 00022 PB_LAST_FIELD 00023 }; 00024 00025 const pb_field_t cisme_startExperimentMsg_fields[9] = { 00026 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_startExperimentMsg, id, id, 0), 00027 PB_FIELD( 2, UENUM , OPTIONAL, STATIC , OTHER, cisme_startExperimentMsg, experiment, id, 0), 00028 PB_FIELD( 3, INT32 , OPTIONAL, STATIC , OTHER, cisme_startExperimentMsg, stepsCount, experiment, 0), 00029 PB_FIELD( 4, INT32 , OPTIONAL, STATIC , OTHER, cisme_startExperimentMsg, salinity, stepsCount, 0), 00030 PB_FIELD( 5, INT32 , OPTIONAL, STATIC , OTHER, cisme_startExperimentMsg, pumpSpeed, salinity, 0), 00031 PB_FIELD( 6, MESSAGE , REPEATED, CALLBACK, OTHER, cisme_startExperimentMsg, steps, pumpSpeed, &cisme_startExperimentMsg_Step_fields), 00032 PB_FIELD( 7, STRING , OPTIONAL, CALLBACK, OTHER, cisme_startExperimentMsg, filePrefix, steps, 0), 00033 PB_FIELD( 8, INT32 , OPTIONAL, STATIC , OTHER, cisme_startExperimentMsg, repeats, filePrefix, 0), 00034 PB_LAST_FIELD 00035 }; 00036 00037 const pb_field_t cisme_startExperimentMsg_Step_fields[6] = { 00038 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_startExperimentMsg_Step, lightLevel, lightLevel, 0), 00039 PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, cisme_startExperimentMsg_Step, duration, lightLevel, 0), 00040 PB_FIELD( 3, FLOAT , OPTIONAL, STATIC , OTHER, cisme_startExperimentMsg_Step, o2Cutoff, duration, 0), 00041 PB_FIELD( 4, FLOAT , OPTIONAL, STATIC , OTHER, cisme_startExperimentMsg_Step, phCutoff, o2Cutoff, 0), 00042 PB_FIELD( 5, INT32 , OPTIONAL, STATIC , OTHER, cisme_startExperimentMsg_Step, pumpSpeed, phCutoff, 0), 00043 PB_LAST_FIELD 00044 }; 00045 00046 const pb_field_t cisme_experimentDataMsg_fields[10] = { 00047 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_experimentDataMsg, id, id, 0), 00048 PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, cisme_experimentDataMsg, step, id, 0), 00049 PB_FIELD( 3, INT32 , OPTIONAL, STATIC , OTHER, cisme_experimentDataMsg, timeRemaining, step, 0), 00050 PB_FIELD( 4, FLOAT , OPTIONAL, STATIC , OTHER, cisme_experimentDataMsg, ph, timeRemaining, 0), 00051 PB_FIELD( 5, FLOAT , OPTIONAL, STATIC , OTHER, cisme_experimentDataMsg, o2, ph, 0), 00052 PB_FIELD( 6, FLOAT , OPTIONAL, STATIC , OTHER, cisme_experimentDataMsg, battery, o2, 0), 00053 PB_FIELD( 7, FLOAT , OPTIONAL, STATIC , OTHER, cisme_experimentDataMsg, temperature, battery, 0), 00054 PB_FIELD( 8, INT32 , OPTIONAL, STATIC , OTHER, cisme_experimentDataMsg, lightLevel, temperature, 0), 00055 PB_FIELD( 9, INT32 , OPTIONAL, STATIC , OTHER, cisme_experimentDataMsg, pumpRpm, lightLevel, 0), 00056 PB_LAST_FIELD 00057 }; 00058 00059 const pb_field_t cisme_experimentMsg_fields[3] = { 00060 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_experimentMsg, id, id, 0), 00061 PB_FIELD( 2, STRING , OPTIONAL, CALLBACK, OTHER, cisme_experimentMsg, fileName, id, 0), 00062 PB_LAST_FIELD 00063 }; 00064 00065 const pb_field_t cisme_beatDataMsg_fields[7] = { 00066 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_beatDataMsg, battery, battery, 0), 00067 PB_FIELD( 2, FLOAT , OPTIONAL, STATIC , OTHER, cisme_beatDataMsg, temperature, battery, 0), 00068 PB_FIELD( 3, FLOAT , OPTIONAL, STATIC , OTHER, cisme_beatDataMsg, ph, temperature, 0), 00069 PB_FIELD( 4, FLOAT , OPTIONAL, STATIC , OTHER, cisme_beatDataMsg, o2, ph, 0), 00070 PB_FIELD( 5, INT32 , OPTIONAL, STATIC , OTHER, cisme_beatDataMsg, lightLevel, o2, 0), 00071 PB_FIELD( 6, INT32 , OPTIONAL, STATIC , OTHER, cisme_beatDataMsg, pumpRpm, lightLevel, 0), 00072 PB_LAST_FIELD 00073 }; 00074 00075 const pb_field_t cisme_tempCalibrationMsg_fields[4] = { 00076 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_tempCalibrationMsg, temperature, temperature, 0), 00077 PB_FIELD( 2, BOOL , OPTIONAL, STATIC , OTHER, cisme_tempCalibrationMsg, lightLevel, temperature, 0), 00078 PB_FIELD( 3, BOOL , OPTIONAL, STATIC , OTHER, cisme_tempCalibrationMsg, pumpSpeed, lightLevel, 0), 00079 PB_LAST_FIELD 00080 }; 00081 00082 const pb_field_t cisme_phCalibrationMsg_fields[4] = { 00083 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_phCalibrationMsg, ph, ph, 0), 00084 PB_FIELD( 2, BOOL , OPTIONAL, STATIC , OTHER, cisme_phCalibrationMsg, lightLevel, ph, 0), 00085 PB_FIELD( 3, BOOL , OPTIONAL, STATIC , OTHER, cisme_phCalibrationMsg, pumpSpeed, lightLevel, 0), 00086 PB_LAST_FIELD 00087 }; 00088 00089 const pb_field_t cisme_o2CalibrationMsg_fields[7] = { 00090 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_o2CalibrationMsg, pressure, pressure, 0), 00091 PB_FIELD( 2, FLOAT , OPTIONAL, STATIC , OTHER, cisme_o2CalibrationMsg, led, pressure, 0), 00092 PB_FIELD( 3, FLOAT , OPTIONAL, STATIC , OTHER, cisme_o2CalibrationMsg, phase1, led, 0), 00093 PB_FIELD( 4, FLOAT , OPTIONAL, STATIC , OTHER, cisme_o2CalibrationMsg, temperature1, phase1, 0), 00094 PB_FIELD( 5, FLOAT , OPTIONAL, STATIC , OTHER, cisme_o2CalibrationMsg, phase2, temperature1, 0), 00095 PB_FIELD( 6, FLOAT , OPTIONAL, STATIC , OTHER, cisme_o2CalibrationMsg, temperature2, phase2, 0), 00096 PB_LAST_FIELD 00097 }; 00098 00099 const pb_field_t cisme_currentCalibrationMsg_fields[2] = { 00100 PB_FIELD( 1, UENUM , OPTIONAL, STATIC , FIRST, cisme_currentCalibrationMsg, type, type, 0), 00101 PB_LAST_FIELD 00102 }; 00103 00104 const pb_field_t cisme_tempCalibrationRspMsg_fields[2] = { 00105 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_tempCalibrationRspMsg, bValue, bValue, 0), 00106 PB_LAST_FIELD 00107 }; 00108 00109 const pb_field_t cisme_phCalibrationRspMsg_fields[5] = { 00110 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_phCalibrationRspMsg, phBuffer, phBuffer, 0), 00111 PB_FIELD( 2, FLOAT , OPTIONAL, STATIC , OTHER, cisme_phCalibrationRspMsg, phTemp, phBuffer, 0), 00112 PB_FIELD( 3, FLOAT , OPTIONAL, STATIC , OTHER, cisme_phCalibrationRspMsg, slope, phTemp, 0), 00113 PB_FIELD( 4, FLOAT , OPTIONAL, STATIC , OTHER, cisme_phCalibrationRspMsg, eo, slope, 0), 00114 PB_LAST_FIELD 00115 }; 00116 00117 const pb_field_t cisme_pumpSpeedMsg_fields[2] = { 00118 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_pumpSpeedMsg, speed, speed, 0), 00119 PB_LAST_FIELD 00120 }; 00121 00122 const pb_field_t cisme_lightLevelMsg_fields[2] = { 00123 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_lightLevelMsg, level, level, 0), 00124 PB_LAST_FIELD 00125 }; 00126 00127 const pb_field_t cisme_timeMsg_fields[2] = { 00128 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_timeMsg, time, time, 0), 00129 PB_LAST_FIELD 00130 }; 00131 00132 const pb_field_t cisme_filesMsg_fields[3] = { 00133 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_filesMsg, numFiles, numFiles, 0), 00134 PB_FIELD( 2, STRING , REPEATED, CALLBACK, OTHER, cisme_filesMsg, names, numFiles, 0), 00135 PB_LAST_FIELD 00136 }; 00137 00138 const pb_field_t cisme_fileDownloadMsg_fields[2] = { 00139 PB_FIELD( 1, STRING , OPTIONAL, CALLBACK, FIRST, cisme_fileDownloadMsg, name, name, 0), 00140 PB_LAST_FIELD 00141 }; 00142 00143 const pb_field_t cisme_fileDownloadRspMsg_fields[3] = { 00144 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_fileDownloadRspMsg, fileId, fileId, 0), 00145 PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, cisme_fileDownloadRspMsg, numBlocks, fileId, 0), 00146 PB_LAST_FIELD 00147 }; 00148 00149 const pb_field_t cisme_fileBlockMsg_fields[5] = { 00150 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_fileBlockMsg, fileId, fileId, 0), 00151 PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, cisme_fileBlockMsg, blockId, fileId, 0), 00152 PB_FIELD( 3, INT32 , OPTIONAL, STATIC , OTHER, cisme_fileBlockMsg, blockSize, blockId, 0), 00153 PB_FIELD( 4, BYTES , OPTIONAL, CALLBACK, OTHER, cisme_fileBlockMsg, blockData, blockSize, 0), 00154 PB_LAST_FIELD 00155 }; 00156 00157 const pb_field_t cisme_fileBlockRspMsg_fields[3] = { 00158 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_fileBlockRspMsg, fileId, fileId, 0), 00159 PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, cisme_fileBlockRspMsg, blockId, fileId, 0), 00160 PB_LAST_FIELD 00161 }; 00162 00163 const pb_field_t cisme_fileActionMsg_fields[2] = { 00164 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_fileActionMsg, fileId, fileId, 0), 00165 PB_LAST_FIELD 00166 }; 00167 00168 const pb_field_t cisme_rawDataMsg_fields[8] = { 00169 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_rawDataMsg, o2, o2, 0), 00170 PB_FIELD( 2, FLOAT , OPTIONAL, STATIC , OTHER, cisme_rawDataMsg, ph, o2, 0), 00171 PB_FIELD( 3, FLOAT , OPTIONAL, STATIC , OTHER, cisme_rawDataMsg, o2Amplitude, ph, 0), 00172 PB_FIELD( 4, FLOAT , OPTIONAL, STATIC , OTHER, cisme_rawDataMsg, o2Phase, o2Amplitude, 0), 00173 PB_FIELD( 5, FLOAT , OPTIONAL, STATIC , OTHER, cisme_rawDataMsg, phAdcV, o2Phase, 0), 00174 PB_FIELD( 6, FLOAT , OPTIONAL, STATIC , OTHER, cisme_rawDataMsg, temperatureAdcV, phAdcV, 0), 00175 PB_FIELD( 7, FLOAT , OPTIONAL, STATIC , OTHER, cisme_rawDataMsg, temperature, temperatureAdcV, 0), 00176 PB_LAST_FIELD 00177 }; 00178 00179 const pb_field_t cisme_tempCalibrationDataMsg_fields[3] = { 00180 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_tempCalibrationDataMsg, tempBuffer, tempBuffer, 0), 00181 PB_FIELD( 2, FLOAT , OPTIONAL, STATIC , OTHER, cisme_tempCalibrationDataMsg, tempVolts, tempBuffer, 0), 00182 PB_LAST_FIELD 00183 }; 00184 00185 const pb_field_t cisme_phCalibrationDataMsg_fields[4] = { 00186 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_phCalibrationDataMsg, phBuffer, phBuffer, 0), 00187 PB_FIELD( 2, FLOAT , OPTIONAL, STATIC , OTHER, cisme_phCalibrationDataMsg, phVoltsCurrent, phBuffer, 0), 00188 PB_FIELD( 3, FLOAT , OPTIONAL, STATIC , OTHER, cisme_phCalibrationDataMsg, phVoltsAverage, phVoltsCurrent, 0), 00189 PB_LAST_FIELD 00190 }; 00191 00192 const pb_field_t cisme_errorMsg_fields[3] = { 00193 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_errorMsg, numErrors, numErrors, 0), 00194 PB_FIELD( 2, STRING , REPEATED, CALLBACK, OTHER, cisme_errorMsg, errorText, numErrors, 0), 00195 PB_LAST_FIELD 00196 }; 00197 00198 const pb_field_t cisme_pumpCalibrationMsg_fields[4] = { 00199 PB_FIELD( 1, FLOAT , OPTIONAL, STATIC , FIRST, cisme_pumpCalibrationMsg, a, a, 0), 00200 PB_FIELD( 2, FLOAT , OPTIONAL, STATIC , OTHER, cisme_pumpCalibrationMsg, b, a, 0), 00201 PB_FIELD( 3, FLOAT , OPTIONAL, STATIC , OTHER, cisme_pumpCalibrationMsg, c, b, 0), 00202 PB_LAST_FIELD 00203 }; 00204 00205 const pb_field_t cisme_pumpCalibrationDataMsg_fields[3] = { 00206 PB_FIELD( 1, INT32 , OPTIONAL, STATIC , FIRST, cisme_pumpCalibrationDataMsg, intensity, intensity, 0), 00207 PB_FIELD( 2, INT32 , OPTIONAL, STATIC , OTHER, cisme_pumpCalibrationDataMsg, rpm, intensity, 0), 00208 PB_LAST_FIELD 00209 }; 00210 00211 00212 /* Check that field information fits in pb_field_t */ 00213 #if !defined(PB_FIELD_32BIT) 00214 /* If you get an error here, it means that you need to define PB_FIELD_32BIT 00215 * compile-time option. You can do that in pb.h or on compiler command line. 00216 * 00217 * The reason you need to do this is that some of your messages contain tag 00218 * numbers or field sizes that are larger than what can fit in 8 or 16 bit 00219 * field descriptors. 00220 */ 00221 PB_STATIC_ASSERT((pb_membersize(cisme_startExperimentMsg, steps) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_cisme_genericMsg_cisme_instrumentIdMsg_cisme_startExperimentMsg_cisme_startExperimentMsg_Step_cisme_experimentDataMsg_cisme_experimentMsg_cisme_beatDataMsg_cisme_tempCalibrationMsg_cisme_phCalibrationMsg_cisme_o2CalibrationMsg_cisme_currentCalibrationMsg_cisme_tempCalibrationRspMsg_cisme_phCalibrationRspMsg_cisme_pumpSpeedMsg_cisme_lightLevelMsg_cisme_timeMsg_cisme_filesMsg_cisme_fileDownloadMsg_cisme_fileDownloadRspMsg_cisme_fileBlockMsg_cisme_fileBlockRspMsg_cisme_fileActionMsg_cisme_rawDataMsg_cisme_tempCalibrationDataMsg_cisme_phCalibrationDataMsg_cisme_errorMsg_cisme_pumpCalibrationMsg_cisme_pumpCalibrationDataMsg) 00222 #endif 00223 00224 #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT) 00225 /* If you get an error here, it means that you need to define PB_FIELD_16BIT 00226 * compile-time option. You can do that in pb.h or on compiler command line. 00227 * 00228 * The reason you need to do this is that some of your messages contain tag 00229 * numbers or field sizes that are larger than what can fit in the default 00230 * 8 bit descriptors. 00231 */ 00232 PB_STATIC_ASSERT((pb_membersize(cisme_startExperimentMsg, steps) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_cisme_genericMsg_cisme_instrumentIdMsg_cisme_startExperimentMsg_cisme_startExperimentMsg_Step_cisme_experimentDataMsg_cisme_experimentMsg_cisme_beatDataMsg_cisme_tempCalibrationMsg_cisme_phCalibrationMsg_cisme_o2CalibrationMsg_cisme_currentCalibrationMsg_cisme_tempCalibrationRspMsg_cisme_phCalibrationRspMsg_cisme_pumpSpeedMsg_cisme_lightLevelMsg_cisme_timeMsg_cisme_filesMsg_cisme_fileDownloadMsg_cisme_fileDownloadRspMsg_cisme_fileBlockMsg_cisme_fileBlockRspMsg_cisme_fileActionMsg_cisme_rawDataMsg_cisme_tempCalibrationDataMsg_cisme_phCalibrationDataMsg_cisme_errorMsg_cisme_pumpCalibrationMsg_cisme_pumpCalibrationDataMsg) 00233 #endif 00234 00235
Generated on Fri Sep 23 2022 19:29:17 by
1.7.2