LEX_Threaded_Programming
Dependencies: Heater_V2 MODSERIAL Nanopb FastPWM ADS8568_ADC
memspcr.pb.h@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 header */ |
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 | #ifndef PB_MEMSPCR_MEMSPCR_PB_H_INCLUDED |
paullj | 14:39a5eb99fbdb | 5 | #define PB_MEMSPCR_MEMSPCR_PB_H_INCLUDED |
paullj | 14:39a5eb99fbdb | 6 | #include <pb.h> |
paullj | 14:39a5eb99fbdb | 7 | |
paullj | 14:39a5eb99fbdb | 8 | /* @@protoc_insertion_point(includes) */ |
paullj | 14:39a5eb99fbdb | 9 | #if PB_PROTO_HEADER_VERSION != 30 |
paullj | 14:39a5eb99fbdb | 10 | #error Regenerate this file with the current version of nanopb generator. |
paullj | 14:39a5eb99fbdb | 11 | #endif |
paullj | 14:39a5eb99fbdb | 12 | |
paullj | 14:39a5eb99fbdb | 13 | #ifdef __cplusplus |
paullj | 14:39a5eb99fbdb | 14 | extern "C" { |
paullj | 14:39a5eb99fbdb | 15 | #endif |
paullj | 14:39a5eb99fbdb | 16 | |
paullj | 14:39a5eb99fbdb | 17 | /* Enum definitions */ |
paullj | 14:39a5eb99fbdb | 18 | typedef enum _memspcr_ExperimentConfiguration_Heater { |
paullj | 14:39a5eb99fbdb | 19 | memspcr_ExperimentConfiguration_Heater_HEATER_1 = 0, |
paullj | 14:39a5eb99fbdb | 20 | memspcr_ExperimentConfiguration_Heater_HEATER_2 = 1 |
paullj | 14:39a5eb99fbdb | 21 | } memspcr_ExperimentConfiguration_Heater; |
paullj | 14:39a5eb99fbdb | 22 | #define _memspcr_ExperimentConfiguration_Heater_MIN memspcr_ExperimentConfiguration_Heater_HEATER_1 |
paullj | 14:39a5eb99fbdb | 23 | #define _memspcr_ExperimentConfiguration_Heater_MAX memspcr_ExperimentConfiguration_Heater_HEATER_2 |
paullj | 14:39a5eb99fbdb | 24 | #define _memspcr_ExperimentConfiguration_Heater_ARRAYSIZE ((memspcr_ExperimentConfiguration_Heater)(memspcr_ExperimentConfiguration_Heater_HEATER_2+1)) |
paullj | 14:39a5eb99fbdb | 25 | |
paullj | 14:39a5eb99fbdb | 26 | /* Struct definitions */ |
paullj | 14:39a5eb99fbdb | 27 | typedef struct _memspcr_FluidicConfiguration { |
paullj | 14:39a5eb99fbdb | 28 | float pressure_setpoint_bar; |
paullj | 14:39a5eb99fbdb | 29 | float pressure_hysteresis_bar; |
paullj | 14:39a5eb99fbdb | 30 | float pressure_sensor_setpoint_adc; |
paullj | 14:39a5eb99fbdb | 31 | float pressure_sensor_hysteresis_adc; |
paullj | 14:39a5eb99fbdb | 32 | float pressure_control_loop_interval_ms; |
paullj | 14:39a5eb99fbdb | 33 | /* @@protoc_insertion_point(struct:memspcr_FluidicConfiguration) */ |
paullj | 14:39a5eb99fbdb | 34 | } memspcr_FluidicConfiguration; |
paullj | 14:39a5eb99fbdb | 35 | |
paullj | 14:39a5eb99fbdb | 36 | typedef struct _memspcr_OpticsConfiguration { |
paullj | 14:39a5eb99fbdb | 37 | int32_t camera_interframe_delay_us; |
paullj | 14:39a5eb99fbdb | 38 | /* @@protoc_insertion_point(struct:memspcr_OpticsConfiguration) */ |
paullj | 14:39a5eb99fbdb | 39 | } memspcr_OpticsConfiguration; |
paullj | 14:39a5eb99fbdb | 40 | |
paullj | 14:39a5eb99fbdb | 41 | typedef struct _memspcr_ThermalConfiguration { |
paullj | 14:39a5eb99fbdb | 42 | float guard_drive_ratio; |
paullj | 14:39a5eb99fbdb | 43 | int32_t settling_time_us; |
paullj | 14:39a5eb99fbdb | 44 | float pid_kp_mho; |
paullj | 14:39a5eb99fbdb | 45 | float pid_integral_time_ms; |
paullj | 14:39a5eb99fbdb | 46 | int32_t control_loop_interval_ms; |
paullj | 14:39a5eb99fbdb | 47 | float pid_wind_up_limit_ohm; |
paullj | 14:39a5eb99fbdb | 48 | float pid_pwm_limit; |
paullj | 14:39a5eb99fbdb | 49 | int32_t heater_pwm_ticks; |
paullj | 14:39a5eb99fbdb | 50 | int32_t guard_pwm_ticks; |
paullj | 14:39a5eb99fbdb | 51 | /* @@protoc_insertion_point(struct:memspcr_ThermalConfiguration) */ |
paullj | 14:39a5eb99fbdb | 52 | } memspcr_ThermalConfiguration; |
paullj | 14:39a5eb99fbdb | 53 | |
paullj | 14:39a5eb99fbdb | 54 | typedef struct _memspcr_ThermalStep { |
paullj | 14:39a5eb99fbdb | 55 | int32_t elapsed_time_ms; |
paullj | 14:39a5eb99fbdb | 56 | int32_t camera_offset_ms; |
paullj | 14:39a5eb99fbdb | 57 | int32_t camera_exposure_ms; |
paullj | 14:39a5eb99fbdb | 58 | float temperature_set_point; |
paullj | 14:39a5eb99fbdb | 59 | float resistance_set_point; |
paullj | 14:39a5eb99fbdb | 60 | /* @@protoc_insertion_point(struct:memspcr_ThermalStep) */ |
paullj | 14:39a5eb99fbdb | 61 | } memspcr_ThermalStep; |
paullj | 14:39a5eb99fbdb | 62 | |
paullj | 14:39a5eb99fbdb | 63 | typedef struct _memspcr_ExperimentConfiguration { |
paullj | 14:39a5eb99fbdb | 64 | int32_t logging_interval_ms; |
paullj | 14:39a5eb99fbdb | 65 | memspcr_ExperimentConfiguration_Heater selected_heater; |
paullj | 14:39a5eb99fbdb | 66 | memspcr_ThermalConfiguration thermal; |
paullj | 14:39a5eb99fbdb | 67 | memspcr_FluidicConfiguration fluidics; |
paullj | 14:39a5eb99fbdb | 68 | memspcr_OpticsConfiguration optics; |
paullj | 14:39a5eb99fbdb | 69 | pb_callback_t profile; |
paullj | 14:39a5eb99fbdb | 70 | /* @@protoc_insertion_point(struct:memspcr_ExperimentConfiguration) */ |
paullj | 14:39a5eb99fbdb | 71 | } memspcr_ExperimentConfiguration; |
paullj | 14:39a5eb99fbdb | 72 | |
paullj | 14:39a5eb99fbdb | 73 | /* Default values for struct fields */ |
paullj | 14:39a5eb99fbdb | 74 | |
paullj | 14:39a5eb99fbdb | 75 | /* Initializer values for message structs */ |
paullj | 14:39a5eb99fbdb | 76 | #define memspcr_FluidicConfiguration_init_default {0, 0, 0, 0, 0} |
paullj | 14:39a5eb99fbdb | 77 | #define memspcr_ThermalConfiguration_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0} |
paullj | 14:39a5eb99fbdb | 78 | #define memspcr_OpticsConfiguration_init_default {0} |
paullj | 14:39a5eb99fbdb | 79 | #define memspcr_ThermalStep_init_default {0, 0, 0, 0, 0} |
paullj | 14:39a5eb99fbdb | 80 | #define memspcr_ExperimentConfiguration_init_default {0, _memspcr_ExperimentConfiguration_Heater_MIN, memspcr_ThermalConfiguration_init_default, memspcr_FluidicConfiguration_init_default, memspcr_OpticsConfiguration_init_default, {{NULL}, NULL}} |
paullj | 14:39a5eb99fbdb | 81 | #define memspcr_FluidicConfiguration_init_zero {0, 0, 0, 0, 0} |
paullj | 14:39a5eb99fbdb | 82 | #define memspcr_ThermalConfiguration_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0} |
paullj | 14:39a5eb99fbdb | 83 | #define memspcr_OpticsConfiguration_init_zero {0} |
paullj | 14:39a5eb99fbdb | 84 | #define memspcr_ThermalStep_init_zero {0, 0, 0, 0, 0} |
paullj | 14:39a5eb99fbdb | 85 | #define memspcr_ExperimentConfiguration_init_zero {0, _memspcr_ExperimentConfiguration_Heater_MIN, memspcr_ThermalConfiguration_init_zero, memspcr_FluidicConfiguration_init_zero, memspcr_OpticsConfiguration_init_zero, {{NULL}, NULL}} |
paullj | 14:39a5eb99fbdb | 86 | |
paullj | 14:39a5eb99fbdb | 87 | /* Field tags (for use in manual encoding/decoding) */ |
paullj | 14:39a5eb99fbdb | 88 | #define memspcr_FluidicConfiguration_pressure_setpoint_bar_tag 1 |
paullj | 14:39a5eb99fbdb | 89 | #define memspcr_FluidicConfiguration_pressure_hysteresis_bar_tag 2 |
paullj | 14:39a5eb99fbdb | 90 | #define memspcr_FluidicConfiguration_pressure_sensor_setpoint_adc_tag 3 |
paullj | 14:39a5eb99fbdb | 91 | #define memspcr_FluidicConfiguration_pressure_sensor_hysteresis_adc_tag 4 |
paullj | 14:39a5eb99fbdb | 92 | #define memspcr_FluidicConfiguration_pressure_control_loop_interval_ms_tag 5 |
paullj | 14:39a5eb99fbdb | 93 | #define memspcr_OpticsConfiguration_camera_interframe_delay_us_tag 1 |
paullj | 14:39a5eb99fbdb | 94 | #define memspcr_ThermalConfiguration_guard_drive_ratio_tag 1 |
paullj | 14:39a5eb99fbdb | 95 | #define memspcr_ThermalConfiguration_settling_time_us_tag 2 |
paullj | 14:39a5eb99fbdb | 96 | #define memspcr_ThermalConfiguration_pid_kp_mho_tag 3 |
paullj | 14:39a5eb99fbdb | 97 | #define memspcr_ThermalConfiguration_pid_integral_time_ms_tag 4 |
paullj | 14:39a5eb99fbdb | 98 | #define memspcr_ThermalConfiguration_control_loop_interval_ms_tag 5 |
paullj | 14:39a5eb99fbdb | 99 | #define memspcr_ThermalConfiguration_pid_wind_up_limit_ohm_tag 6 |
paullj | 14:39a5eb99fbdb | 100 | #define memspcr_ThermalConfiguration_pid_pwm_limit_tag 7 |
paullj | 14:39a5eb99fbdb | 101 | #define memspcr_ThermalConfiguration_heater_pwm_ticks_tag 8 |
paullj | 14:39a5eb99fbdb | 102 | #define memspcr_ThermalConfiguration_guard_pwm_ticks_tag 9 |
paullj | 14:39a5eb99fbdb | 103 | #define memspcr_ThermalStep_elapsed_time_ms_tag 1 |
paullj | 14:39a5eb99fbdb | 104 | #define memspcr_ThermalStep_camera_offset_ms_tag 2 |
paullj | 14:39a5eb99fbdb | 105 | #define memspcr_ThermalStep_camera_exposure_ms_tag 3 |
paullj | 14:39a5eb99fbdb | 106 | #define memspcr_ThermalStep_temperature_set_point_tag 4 |
paullj | 14:39a5eb99fbdb | 107 | #define memspcr_ThermalStep_resistance_set_point_tag 5 |
paullj | 14:39a5eb99fbdb | 108 | #define memspcr_ExperimentConfiguration_logging_interval_ms_tag 1 |
paullj | 14:39a5eb99fbdb | 109 | #define memspcr_ExperimentConfiguration_selected_heater_tag 2 |
paullj | 14:39a5eb99fbdb | 110 | #define memspcr_ExperimentConfiguration_thermal_tag 3 |
paullj | 14:39a5eb99fbdb | 111 | #define memspcr_ExperimentConfiguration_fluidics_tag 4 |
paullj | 14:39a5eb99fbdb | 112 | #define memspcr_ExperimentConfiguration_optics_tag 5 |
paullj | 14:39a5eb99fbdb | 113 | #define memspcr_ExperimentConfiguration_profile_tag 6 |
paullj | 14:39a5eb99fbdb | 114 | |
paullj | 14:39a5eb99fbdb | 115 | /* Struct field encoding specification for nanopb */ |
paullj | 14:39a5eb99fbdb | 116 | extern const pb_field_t memspcr_FluidicConfiguration_fields[6]; |
paullj | 14:39a5eb99fbdb | 117 | extern const pb_field_t memspcr_ThermalConfiguration_fields[10]; |
paullj | 14:39a5eb99fbdb | 118 | extern const pb_field_t memspcr_OpticsConfiguration_fields[2]; |
paullj | 14:39a5eb99fbdb | 119 | extern const pb_field_t memspcr_ThermalStep_fields[6]; |
paullj | 14:39a5eb99fbdb | 120 | extern const pb_field_t memspcr_ExperimentConfiguration_fields[7]; |
paullj | 14:39a5eb99fbdb | 121 | |
paullj | 14:39a5eb99fbdb | 122 | /* Maximum encoded size of messages (where known) */ |
paullj | 14:39a5eb99fbdb | 123 | #define memspcr_FluidicConfiguration_size 25 |
paullj | 14:39a5eb99fbdb | 124 | #define memspcr_ThermalConfiguration_size 69 |
paullj | 14:39a5eb99fbdb | 125 | #define memspcr_OpticsConfiguration_size 11 |
paullj | 14:39a5eb99fbdb | 126 | #define memspcr_ThermalStep_size 43 |
paullj | 14:39a5eb99fbdb | 127 | /* memspcr_ExperimentConfiguration_size depends on runtime parameters */ |
paullj | 14:39a5eb99fbdb | 128 | |
paullj | 14:39a5eb99fbdb | 129 | /* Message IDs (where set with "msgid" option) */ |
paullj | 14:39a5eb99fbdb | 130 | #ifdef PB_MSGID |
paullj | 14:39a5eb99fbdb | 131 | |
paullj | 14:39a5eb99fbdb | 132 | #define MEMSPCR_MESSAGES \ |
paullj | 14:39a5eb99fbdb | 133 | |
paullj | 14:39a5eb99fbdb | 134 | |
paullj | 14:39a5eb99fbdb | 135 | #endif |
paullj | 14:39a5eb99fbdb | 136 | |
paullj | 14:39a5eb99fbdb | 137 | #ifdef __cplusplus |
paullj | 14:39a5eb99fbdb | 138 | } /* extern "C" */ |
paullj | 14:39a5eb99fbdb | 139 | #endif |
paullj | 14:39a5eb99fbdb | 140 | /* @@protoc_insertion_point(eof) */ |
paullj | 14:39a5eb99fbdb | 141 | |
paullj | 14:39a5eb99fbdb | 142 | #endif |
omatthews | 0:54bedd3964e2 | 143 |