![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
LEX_Threaded_Programming
Dependencies: Heater_V2 MODSERIAL Nanopb FastPWM ADS8568_ADC
memspcr.pb.c@14:39a5eb99fbdb, 2019-09-19 (annotated)
- Committer:
- paullj
- Date:
- Thu Sep 19 16:14:05 2019 +0000
- Revision:
- 14:39a5eb99fbdb
- Parent:
- 5:702b32ead94e
- Child:
- 22:f65353f6e935
update memspcr.pb.h and memspcr.ph.c and increase buffer size
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
paullj | 14:39a5eb99fbdb | 1 | /* Automatically generated nanopb constant definitions */ |
paullj | 14:39a5eb99fbdb | 2 | /* Generated by nanopb-0.3.9.3 at Thu Sep 19 17:02:51 2019. */ |
paullj | 14:39a5eb99fbdb | 3 | |
paullj | 14:39a5eb99fbdb | 4 | #include "memspcr.pb.h" |
paullj | 14:39a5eb99fbdb | 5 | |
paullj | 14:39a5eb99fbdb | 6 | /* @@protoc_insertion_point(includes) */ |
paullj | 14:39a5eb99fbdb | 7 | #if PB_PROTO_HEADER_VERSION != 30 |
paullj | 14:39a5eb99fbdb | 8 | #error Regenerate this file with the current version of nanopb generator. |
paullj | 14:39a5eb99fbdb | 9 | #endif |
paullj | 14:39a5eb99fbdb | 10 | |
paullj | 14:39a5eb99fbdb | 11 | |
paullj | 14:39a5eb99fbdb | 12 | |
paullj | 14:39a5eb99fbdb | 13 | const pb_field_t memspcr_FluidicConfiguration_fields[6] = { |
paullj | 14:39a5eb99fbdb | 14 | PB_FIELD( 1, FLOAT , SINGULAR, STATIC , FIRST, memspcr_FluidicConfiguration, pressure_setpoint_bar, pressure_setpoint_bar, 0), |
paullj | 14:39a5eb99fbdb | 15 | PB_FIELD( 2, FLOAT , SINGULAR, STATIC , OTHER, memspcr_FluidicConfiguration, pressure_hysteresis_bar, pressure_setpoint_bar, 0), |
paullj | 14:39a5eb99fbdb | 16 | PB_FIELD( 3, FLOAT , SINGULAR, STATIC , OTHER, memspcr_FluidicConfiguration, pressure_sensor_setpoint_adc, pressure_hysteresis_bar, 0), |
paullj | 14:39a5eb99fbdb | 17 | PB_FIELD( 4, FLOAT , SINGULAR, STATIC , OTHER, memspcr_FluidicConfiguration, pressure_sensor_hysteresis_adc, pressure_sensor_setpoint_adc, 0), |
paullj | 14:39a5eb99fbdb | 18 | PB_FIELD( 5, FLOAT , SINGULAR, STATIC , OTHER, memspcr_FluidicConfiguration, pressure_control_loop_interval_ms, pressure_sensor_hysteresis_adc, 0), |
paullj | 14:39a5eb99fbdb | 19 | PB_LAST_FIELD |
paullj | 14:39a5eb99fbdb | 20 | }; |
paullj | 14:39a5eb99fbdb | 21 | |
paullj | 14:39a5eb99fbdb | 22 | const pb_field_t memspcr_ThermalConfiguration_fields[10] = { |
paullj | 14:39a5eb99fbdb | 23 | PB_FIELD( 1, FLOAT , SINGULAR, STATIC , FIRST, memspcr_ThermalConfiguration, guard_drive_ratio, guard_drive_ratio, 0), |
paullj | 14:39a5eb99fbdb | 24 | PB_FIELD( 2, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, settling_time_us, guard_drive_ratio, 0), |
paullj | 14:39a5eb99fbdb | 25 | PB_FIELD( 3, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_kp_mho, settling_time_us, 0), |
paullj | 14:39a5eb99fbdb | 26 | PB_FIELD( 4, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_integral_time_ms, pid_kp_mho, 0), |
paullj | 14:39a5eb99fbdb | 27 | PB_FIELD( 5, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, control_loop_interval_ms, pid_integral_time_ms, 0), |
paullj | 14:39a5eb99fbdb | 28 | PB_FIELD( 6, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_wind_up_limit_ohm, control_loop_interval_ms, 0), |
paullj | 14:39a5eb99fbdb | 29 | PB_FIELD( 7, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_pwm_limit, pid_wind_up_limit_ohm, 0), |
paullj | 14:39a5eb99fbdb | 30 | PB_FIELD( 8, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, heater_pwm_ticks, pid_pwm_limit, 0), |
paullj | 14:39a5eb99fbdb | 31 | PB_FIELD( 9, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, guard_pwm_ticks, heater_pwm_ticks, 0), |
paullj | 14:39a5eb99fbdb | 32 | PB_LAST_FIELD |
paullj | 14:39a5eb99fbdb | 33 | }; |
paullj | 14:39a5eb99fbdb | 34 | |
paullj | 14:39a5eb99fbdb | 35 | const pb_field_t memspcr_OpticsConfiguration_fields[2] = { |
paullj | 14:39a5eb99fbdb | 36 | PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, memspcr_OpticsConfiguration, camera_interframe_delay_us, camera_interframe_delay_us, 0), |
paullj | 14:39a5eb99fbdb | 37 | PB_LAST_FIELD |
paullj | 14:39a5eb99fbdb | 38 | }; |
paullj | 14:39a5eb99fbdb | 39 | |
paullj | 14:39a5eb99fbdb | 40 | const pb_field_t memspcr_ThermalStep_fields[6] = { |
paullj | 14:39a5eb99fbdb | 41 | PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, memspcr_ThermalStep, elapsed_time_ms, elapsed_time_ms, 0), |
paullj | 14:39a5eb99fbdb | 42 | PB_FIELD( 2, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalStep, camera_offset_ms, elapsed_time_ms, 0), |
paullj | 14:39a5eb99fbdb | 43 | PB_FIELD( 3, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalStep, camera_exposure_ms, camera_offset_ms, 0), |
paullj | 14:39a5eb99fbdb | 44 | PB_FIELD( 4, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalStep, temperature_set_point, camera_exposure_ms, 0), |
paullj | 14:39a5eb99fbdb | 45 | PB_FIELD( 5, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalStep, resistance_set_point, temperature_set_point, 0), |
paullj | 14:39a5eb99fbdb | 46 | PB_LAST_FIELD |
paullj | 14:39a5eb99fbdb | 47 | }; |
paullj | 14:39a5eb99fbdb | 48 | |
paullj | 14:39a5eb99fbdb | 49 | const pb_field_t memspcr_ExperimentConfiguration_fields[7] = { |
paullj | 14:39a5eb99fbdb | 50 | PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, memspcr_ExperimentConfiguration, logging_interval_ms, logging_interval_ms, 0), |
paullj | 14:39a5eb99fbdb | 51 | PB_FIELD( 2, UENUM , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, selected_heater, logging_interval_ms, 0), |
paullj | 14:39a5eb99fbdb | 52 | PB_FIELD( 3, MESSAGE , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, thermal, selected_heater, &memspcr_ThermalConfiguration_fields), |
paullj | 14:39a5eb99fbdb | 53 | PB_FIELD( 4, MESSAGE , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, fluidics, thermal, &memspcr_FluidicConfiguration_fields), |
paullj | 14:39a5eb99fbdb | 54 | PB_FIELD( 5, MESSAGE , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, optics, fluidics, &memspcr_OpticsConfiguration_fields), |
paullj | 14:39a5eb99fbdb | 55 | PB_FIELD( 6, MESSAGE , REPEATED, CALLBACK, OTHER, memspcr_ExperimentConfiguration, profile, optics, &memspcr_ThermalStep_fields), |
paullj | 14:39a5eb99fbdb | 56 | PB_LAST_FIELD |
paullj | 14:39a5eb99fbdb | 57 | }; |
paullj | 14:39a5eb99fbdb | 58 | |
paullj | 14:39a5eb99fbdb | 59 | |
paullj | 14:39a5eb99fbdb | 60 | |
paullj | 14:39a5eb99fbdb | 61 | /* Check that field information fits in pb_field_t */ |
paullj | 14:39a5eb99fbdb | 62 | #if !defined(PB_FIELD_32BIT) |
paullj | 14:39a5eb99fbdb | 63 | /* If you get an error here, it means that you need to define PB_FIELD_32BIT |
paullj | 14:39a5eb99fbdb | 64 | * compile-time option. You can do that in pb.h or on compiler command line. |
paullj | 14:39a5eb99fbdb | 65 | * |
paullj | 14:39a5eb99fbdb | 66 | * The reason you need to do this is that some of your messages contain tag |
paullj | 14:39a5eb99fbdb | 67 | * numbers or field sizes that are larger than what can fit in 8 or 16 bit |
paullj | 14:39a5eb99fbdb | 68 | * field descriptors. |
paullj | 14:39a5eb99fbdb | 69 | */ |
paullj | 14:39a5eb99fbdb | 70 | PB_STATIC_ASSERT((pb_membersize(memspcr_ExperimentConfiguration, thermal) < 65536 && pb_membersize(memspcr_ExperimentConfiguration, fluidics) < 65536 && pb_membersize(memspcr_ExperimentConfiguration, optics) < 65536), YOU_MUST_DEFINE_PB_FIELD_32BIT_FOR_MESSAGES_memspcr_FluidicConfiguration_memspcr_ThermalConfiguration_memspcr_OpticsConfiguration_memspcr_ThermalStep_memspcr_ExperimentConfiguration) |
paullj | 14:39a5eb99fbdb | 71 | #endif |
paullj | 14:39a5eb99fbdb | 72 | |
paullj | 14:39a5eb99fbdb | 73 | #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT) |
paullj | 14:39a5eb99fbdb | 74 | /* If you get an error here, it means that you need to define PB_FIELD_16BIT |
paullj | 14:39a5eb99fbdb | 75 | * compile-time option. You can do that in pb.h or on compiler command line. |
paullj | 14:39a5eb99fbdb | 76 | * |
paullj | 14:39a5eb99fbdb | 77 | * The reason you need to do this is that some of your messages contain tag |
paullj | 14:39a5eb99fbdb | 78 | * numbers or field sizes that are larger than what can fit in the default |
paullj | 14:39a5eb99fbdb | 79 | * 8 bit descriptors. |
paullj | 14:39a5eb99fbdb | 80 | */ |
paullj | 14:39a5eb99fbdb | 81 | PB_STATIC_ASSERT((pb_membersize(memspcr_ExperimentConfiguration, thermal) < 256 && pb_membersize(memspcr_ExperimentConfiguration, fluidics) < 256 && pb_membersize(memspcr_ExperimentConfiguration, optics) < 256), YOU_MUST_DEFINE_PB_FIELD_16BIT_FOR_MESSAGES_memspcr_FluidicConfiguration_memspcr_ThermalConfiguration_memspcr_OpticsConfiguration_memspcr_ThermalStep_memspcr_ExperimentConfiguration) |
paullj | 14:39a5eb99fbdb | 82 | #endif |
paullj | 14:39a5eb99fbdb | 83 | |
paullj | 14:39a5eb99fbdb | 84 | |
paullj | 14:39a5eb99fbdb | 85 | /* @@protoc_insertion_point(eof) */ |
omatthews | 0:54bedd3964e2 | 86 |