LEX_Threaded_Programming

Dependencies:   Heater_V2 MODSERIAL Nanopb FastPWM ADS8568_ADC

Committer:
justinbuckland
Date:
Mon Mar 30 16:56:05 2020 +0000
Revision:
36:fef05d541679
Parent:
22:f65353f6e935
Removed old code no longer used

Who changed what in which revision?

UserRevisionLine numberNew contents of line
paullj 14:39a5eb99fbdb 1 /* Automatically generated nanopb constant definitions */
paullj 22:f65353f6e935 2 /* Generated by nanopb-0.3.9.3 at Tue Sep 24 09:50:11 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 22:f65353f6e935 13 const pb_field_t memspcr_FluidicConfiguration_fields[4] = {
paullj 22:f65353f6e935 14 PB_FIELD( 1, FLOAT , SINGULAR, STATIC , FIRST, memspcr_FluidicConfiguration, pressure_sensor_setpoint_adc, pressure_sensor_setpoint_adc, 0),
paullj 22:f65353f6e935 15 PB_FIELD( 2, FLOAT , SINGULAR, STATIC , OTHER, memspcr_FluidicConfiguration, pressure_sensor_hysteresis_adc, pressure_sensor_setpoint_adc, 0),
paullj 22:f65353f6e935 16 PB_FIELD( 3, INT32 , SINGULAR, STATIC , OTHER, memspcr_FluidicConfiguration, pressure_control_loop_interval_ms, pressure_sensor_hysteresis_adc, 0),
paullj 14:39a5eb99fbdb 17 PB_LAST_FIELD
paullj 14:39a5eb99fbdb 18 };
paullj 14:39a5eb99fbdb 19
paullj 22:f65353f6e935 20 const pb_field_t memspcr_ThermalConfiguration_fields[9] = {
paullj 14:39a5eb99fbdb 21 PB_FIELD( 1, FLOAT , SINGULAR, STATIC , FIRST, memspcr_ThermalConfiguration, guard_drive_ratio, guard_drive_ratio, 0),
paullj 14:39a5eb99fbdb 22 PB_FIELD( 2, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, settling_time_us, guard_drive_ratio, 0),
paullj 14:39a5eb99fbdb 23 PB_FIELD( 3, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_kp_mho, settling_time_us, 0),
paullj 14:39a5eb99fbdb 24 PB_FIELD( 4, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_integral_time_ms, pid_kp_mho, 0),
paullj 22:f65353f6e935 25 PB_FIELD( 5, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, thermal_control_loop_interval_ms, pid_integral_time_ms, 0),
paullj 22:f65353f6e935 26 PB_FIELD( 6, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_wind_up_limit_ohm, thermal_control_loop_interval_ms, 0),
paullj 14:39a5eb99fbdb 27 PB_FIELD( 7, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, pid_pwm_limit, pid_wind_up_limit_ohm, 0),
paullj 22:f65353f6e935 28 PB_FIELD( 8, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalConfiguration, heater_pwm_period_ticks, pid_pwm_limit, 0),
paullj 14:39a5eb99fbdb 29 PB_LAST_FIELD
paullj 14:39a5eb99fbdb 30 };
paullj 14:39a5eb99fbdb 31
paullj 14:39a5eb99fbdb 32 const pb_field_t memspcr_OpticsConfiguration_fields[2] = {
paullj 14:39a5eb99fbdb 33 PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, memspcr_OpticsConfiguration, camera_interframe_delay_us, camera_interframe_delay_us, 0),
paullj 14:39a5eb99fbdb 34 PB_LAST_FIELD
paullj 14:39a5eb99fbdb 35 };
paullj 14:39a5eb99fbdb 36
paullj 22:f65353f6e935 37 const pb_field_t memspcr_ThermalStep_fields[5] = {
paullj 14:39a5eb99fbdb 38 PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, memspcr_ThermalStep, elapsed_time_ms, elapsed_time_ms, 0),
paullj 14:39a5eb99fbdb 39 PB_FIELD( 2, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalStep, camera_offset_ms, elapsed_time_ms, 0),
paullj 14:39a5eb99fbdb 40 PB_FIELD( 3, INT32 , SINGULAR, STATIC , OTHER, memspcr_ThermalStep, camera_exposure_ms, camera_offset_ms, 0),
paullj 22:f65353f6e935 41 PB_FIELD( 4, FLOAT , SINGULAR, STATIC , OTHER, memspcr_ThermalStep, resistance_set_point, camera_exposure_ms, 0),
paullj 14:39a5eb99fbdb 42 PB_LAST_FIELD
paullj 14:39a5eb99fbdb 43 };
paullj 14:39a5eb99fbdb 44
paullj 14:39a5eb99fbdb 45 const pb_field_t memspcr_ExperimentConfiguration_fields[7] = {
paullj 14:39a5eb99fbdb 46 PB_FIELD( 1, INT32 , SINGULAR, STATIC , FIRST, memspcr_ExperimentConfiguration, logging_interval_ms, logging_interval_ms, 0),
paullj 14:39a5eb99fbdb 47 PB_FIELD( 2, UENUM , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, selected_heater, logging_interval_ms, 0),
paullj 14:39a5eb99fbdb 48 PB_FIELD( 3, MESSAGE , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, thermal, selected_heater, &memspcr_ThermalConfiguration_fields),
paullj 14:39a5eb99fbdb 49 PB_FIELD( 4, MESSAGE , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, fluidics, thermal, &memspcr_FluidicConfiguration_fields),
paullj 14:39a5eb99fbdb 50 PB_FIELD( 5, MESSAGE , SINGULAR, STATIC , OTHER, memspcr_ExperimentConfiguration, optics, fluidics, &memspcr_OpticsConfiguration_fields),
paullj 14:39a5eb99fbdb 51 PB_FIELD( 6, MESSAGE , REPEATED, CALLBACK, OTHER, memspcr_ExperimentConfiguration, profile, optics, &memspcr_ThermalStep_fields),
paullj 14:39a5eb99fbdb 52 PB_LAST_FIELD
paullj 14:39a5eb99fbdb 53 };
paullj 14:39a5eb99fbdb 54
paullj 14:39a5eb99fbdb 55
paullj 14:39a5eb99fbdb 56
paullj 14:39a5eb99fbdb 57 /* Check that field information fits in pb_field_t */
paullj 14:39a5eb99fbdb 58 #if !defined(PB_FIELD_32BIT)
paullj 14:39a5eb99fbdb 59 /* If you get an error here, it means that you need to define PB_FIELD_32BIT
paullj 14:39a5eb99fbdb 60 * compile-time option. You can do that in pb.h or on compiler command line.
paullj 14:39a5eb99fbdb 61 *
paullj 14:39a5eb99fbdb 62 * The reason you need to do this is that some of your messages contain tag
paullj 14:39a5eb99fbdb 63 * numbers or field sizes that are larger than what can fit in 8 or 16 bit
paullj 14:39a5eb99fbdb 64 * field descriptors.
paullj 14:39a5eb99fbdb 65 */
paullj 14:39a5eb99fbdb 66 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 67 #endif
paullj 14:39a5eb99fbdb 68
paullj 14:39a5eb99fbdb 69 #if !defined(PB_FIELD_16BIT) && !defined(PB_FIELD_32BIT)
paullj 14:39a5eb99fbdb 70 /* If you get an error here, it means that you need to define PB_FIELD_16BIT
paullj 14:39a5eb99fbdb 71 * compile-time option. You can do that in pb.h or on compiler command line.
paullj 14:39a5eb99fbdb 72 *
paullj 14:39a5eb99fbdb 73 * The reason you need to do this is that some of your messages contain tag
paullj 14:39a5eb99fbdb 74 * numbers or field sizes that are larger than what can fit in the default
paullj 14:39a5eb99fbdb 75 * 8 bit descriptors.
paullj 14:39a5eb99fbdb 76 */
paullj 14:39a5eb99fbdb 77 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 78 #endif
paullj 14:39a5eb99fbdb 79
paullj 14:39a5eb99fbdb 80
paullj 14:39a5eb99fbdb 81 /* @@protoc_insertion_point(eof) */
omatthews 0:54bedd3964e2 82