This will generate the message for the programme
Dependencies: MODSERIAL Nanopb
memspcr.pb.c@4:629ca12c04f4, 2019-09-20 (annotated)
- Committer:
- justinbuckland
- Date:
- Fri Sep 20 12:55:49 2019 +0000
- Revision:
- 4:629ca12c04f4
- Parent:
- 2:b46d53a5f931
Generates example low T test sequence for use with thermochromic tape
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
omatthews | 0:388a2a9f5247 | 1 | /* Automatically generated nanopb constant definitions */ |
omatthews | 2:b46d53a5f931 | 2 | /* Generated by nanopb-0.3.9.3 at Thu Aug 29 14:10:38 2019. */ |
omatthews | 0:388a2a9f5247 | 3 | |
omatthews | 0:388a2a9f5247 | 4 | #include "memspcr.pb.h" |
omatthews | 0:388a2a9f5247 | 5 | |
omatthews | 0:388a2a9f5247 | 6 | /* @@protoc_insertion_point(includes) */ |
omatthews | 0:388a2a9f5247 | 7 | #if PB_PROTO_HEADER_VERSION != 30 |
omatthews | 0:388a2a9f5247 | 8 | #error Regenerate this file with the current version of nanopb generator. |
omatthews | 0:388a2a9f5247 | 9 | #endif |
omatthews | 0:388a2a9f5247 | 10 | |
omatthews | 0:388a2a9f5247 | 11 | |
omatthews | 0:388a2a9f5247 | 12 | |
omatthews | 0:388a2a9f5247 | 13 | const pb_field_t memspcr_ThermalStep_fields[4] = { |
omatthews | 0:388a2a9f5247 | 14 | PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, memspcr_ThermalStep, elapsed_time_ms, elapsed_time_ms, 0), |
omatthews | 0:388a2a9f5247 | 15 | PB_FIELD( 2, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalStep, resistance, elapsed_time_ms, 0), |
omatthews | 0:388a2a9f5247 | 16 | PB_FIELD( 3, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalStep, camera_offset_ms, resistance, 0), |
omatthews | 0:388a2a9f5247 | 17 | PB_LAST_FIELD |
omatthews | 0:388a2a9f5247 | 18 | }; |
omatthews | 0:388a2a9f5247 | 19 | |
omatthews | 2:b46d53a5f931 | 20 | const pb_field_t memspcr_ThermalConfiguration_fields[7] = { |
omatthews | 2:b46d53a5f931 | 21 | PB_FIELD( 2, FLOAT , SINGULAR, STATIC , FIRST, memspcr_ThermalConfiguration, guard_drive_ratio, guard_drive_ratio, 0), |
omatthews | 2:b46d53a5f931 | 22 | PB_FIELD( 4, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, adc_settling_time_us, guard_drive_ratio, 0), |
omatthews | 0:388a2a9f5247 | 23 | PB_FIELD( 7, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_kp, adc_settling_time_us, 0), |
omatthews | 0:388a2a9f5247 | 24 | PB_FIELD( 8, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_integral_time, pid_kp, 0), |
omatthews | 0:388a2a9f5247 | 25 | PB_FIELD( 9, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_derivative_time, pid_integral_time, 0), |
omatthews | 2:b46d53a5f931 | 26 | PB_FIELD( 10, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, control_loop_interval_ms, pid_derivative_time, 0), |
omatthews | 0:388a2a9f5247 | 27 | PB_LAST_FIELD |
omatthews | 0:388a2a9f5247 | 28 | }; |
omatthews | 0:388a2a9f5247 | 29 | |
omatthews | 0:388a2a9f5247 | 30 | const pb_field_t memspcr_OpticsConfiguration_fields[4] = { |
omatthews | 0:388a2a9f5247 | 31 | PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, memspcr_OpticsConfiguration, pre_trigger_ms, pre_trigger_ms, 0), |
omatthews | 0:388a2a9f5247 | 32 | PB_FIELD( 2, INT32 , SINGULAR, STATIC , OTHER, memspcr_OpticsConfiguration, on_time_ms, pre_trigger_ms, 0), |
omatthews | 0:388a2a9f5247 | 33 | PB_FIELD( 3, FLOAT , SINGULAR, STATIC , OTHER, memspcr_OpticsConfiguration, led_pwm, on_time_ms, 0), |
omatthews | 0:388a2a9f5247 | 34 | PB_LAST_FIELD |
omatthews | 0:388a2a9f5247 | 35 | }; |
omatthews | 0:388a2a9f5247 | 36 | |
omatthews | 0:388a2a9f5247 | 37 | const pb_field_t memspcr_FluidicConfiguration_fields[3] = { |
omatthews | 0:388a2a9f5247 | 38 | PB_FIELD( 1, FLOAT , SINGULAR, STATIC , FIRST, memspcr_FluidicConfiguration, pressure_setpoint, pressure_setpoint, 0), |
omatthews | 0:388a2a9f5247 | 39 | PB_FIELD( 2, FLOAT , SINGULAR, STATIC , OTHER, memspcr_FluidicConfiguration, pressure_hysterisis, pressure_setpoint, 0), |
omatthews | 0:388a2a9f5247 | 40 | PB_LAST_FIELD |
omatthews | 0:388a2a9f5247 | 41 | }; |
omatthews | 0:388a2a9f5247 | 42 | |
omatthews | 2:b46d53a5f931 | 43 | const pb_field_t memspcr_ExperimentConfiguration_fields[7] = { |
omatthews | 0:388a2a9f5247 | 44 | PB_FIELD( 1, MESSAGE , SINGULAR, STATIC , FIRST, memspcr_ExperimentConfiguration, thermal, thermal, &memspcr_ThermalConfiguration_fields), |
omatthews | 2:b46d53a5f931 | 45 | PB_FIELD( 3, MESSAGE , REPEATED, CALLBACK, OTHER, memspcr_ExperimentConfiguration, profile, thermal, &memspcr_ThermalStep_fields), |
omatthews | 2:b46d53a5f931 | 46 | PB_FIELD( 4, MESSAGE , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, optics, profile, &memspcr_OpticsConfiguration_fields), |
omatthews | 2:b46d53a5f931 | 47 | PB_FIELD( 5, MESSAGE , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, fluidics, optics, &memspcr_FluidicConfiguration_fields), |
omatthews | 2:b46d53a5f931 | 48 | PB_FIELD( 6, INT32 , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, logging_interval_ms, fluidics, 0), |
omatthews | 2:b46d53a5f931 | 49 | PB_FIELD( 7, UENUM , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, selected_heater, logging_interval_ms, 0), |
omatthews | 0:388a2a9f5247 | 50 | PB_LAST_FIELD |
omatthews | 0:388a2a9f5247 | 51 | }; |
omatthews | 0:388a2a9f5247 | 52 | |
omatthews | 0:388a2a9f5247 | 53 | |
omatthews | 0:388a2a9f5247 | 54 | |
omatthews | 0:388a2a9f5247 | 55 | /* Check that field information fits in pb_field_t */ |
omatthews | 0:388a2a9f5247 | 56 | #if !defined(PB_FIELD_32BIT) |
omatthews | 0:388a2a9f5247 | 57 | /* If you get an error here, it means that you need to define PB_FIELD_32BIT |
omatthews | 0:388a2a9f5247 | 58 | * compile-time option. You can do that in pb.h or on compiler command line. |
omatthews | 0:388a2a9f5247 | 59 | * |
omatthews | 0:388a2a9f5247 | 60 | * The reason you need to do this is that some of your messages contain tag |
omatthews | 0:388a2a9f5247 | 61 | * numbers or field sizes that are larger than what can fit in 8 or 16 bit |
omatthews | 0:388a2a9f5247 | 62 | * field descriptors. |
omatthews | 0:388a2a9f5247 | 63 | */ |
omatthews | 0:388a2a9f5247 | 64 | PB_STATIC_ASSERT((pb_membersize(memspcr_ExperimentConfiguration, thermal) < 65536 && pb_membersize(memspcr_ExperimentConfiguration, optics) < 65536 && pb_membersize(memspcr_ExperimentConfiguration, fluidics) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_memspcr_ThermalStep_memspcr_ThermalConfiguration_memspcr_OpticsConfiguration_memspcr_FluidicConfiguration_memspcr_ExperimentConfiguration) |
omatthews | 0:388a2a9f5247 | 65 | #endif |
omatthews | 0:388a2a9f5247 | 66 | |
omatthews | 0:388a2a9f5247 | 67 | #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT) |
omatthews | 0:388a2a9f5247 | 68 | /* If you get an error here, it means that you need to define PB_FIELD_16BIT |
omatthews | 0:388a2a9f5247 | 69 | * compile-time option. You can do that in pb.h or on compiler command line. |
omatthews | 0:388a2a9f5247 | 70 | * |
omatthews | 0:388a2a9f5247 | 71 | * The reason you need to do this is that some of your messages contain tag |
omatthews | 0:388a2a9f5247 | 72 | * numbers or field sizes that are larger than what can fit in the default |
omatthews | 0:388a2a9f5247 | 73 | * 8 bit descriptors. |
omatthews | 0:388a2a9f5247 | 74 | */ |
omatthews | 0:388a2a9f5247 | 75 | PB_STATIC_ASSERT((pb_membersize(memspcr_ExperimentConfiguration, thermal) < 256 && pb_membersize(memspcr_ExperimentConfiguration, optics) < 256 && pb_membersize(memspcr_ExperimentConfiguration, fluidics) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_memspcr_ThermalStep_memspcr_ThermalConfiguration_memspcr_OpticsConfiguration_memspcr_FluidicConfiguration_memspcr_ExperimentConfiguration) |
omatthews | 0:388a2a9f5247 | 76 | #endif |
omatthews | 0:388a2a9f5247 | 77 | |
omatthews | 0:388a2a9f5247 | 78 | |
omatthews | 0:388a2a9f5247 | 79 | /* @@protoc_insertion_point(eof) */ |