LEX_Threaded_Programming

Dependencies:   Heater_V2 MODSERIAL Nanopb FastPWM ADS8568_ADC

Committer:
omatthews
Date:
Thu Aug 29 16:08:04 2019 +0000
Revision:
5:702b32ead94e
Parent:
0:54bedd3964e2
Child:
14:39a5eb99fbdb
Edits made

Who changed what in which revision?

UserRevisionLine numberNew contents of line
omatthews 0:54bedd3964e2 1 /* Automatically generated nanopb header */
omatthews 5:702b32ead94e 2 /* Generated by nanopb-0.3.9.3 at Thu Aug 29 14:10:38 2019. */
omatthews 0:54bedd3964e2 3
omatthews 0:54bedd3964e2 4 #ifndef PB_MEMSPCR_MEMSPCR_PB_H_INCLUDED
omatthews 0:54bedd3964e2 5 #define PB_MEMSPCR_MEMSPCR_PB_H_INCLUDED
omatthews 0:54bedd3964e2 6 #include <pb.h>
omatthews 0:54bedd3964e2 7
omatthews 0:54bedd3964e2 8 /* @@protoc_insertion_point(includes) */
omatthews 0:54bedd3964e2 9 #if PB_PROTO_HEADER_VERSION != 30
omatthews 0:54bedd3964e2 10 #error Regenerate this file with the current version of nanopb generator.
omatthews 0:54bedd3964e2 11 #endif
omatthews 0:54bedd3964e2 12
omatthews 0:54bedd3964e2 13 #ifdef __cplusplus
omatthews 0:54bedd3964e2 14 extern "C" {
omatthews 0:54bedd3964e2 15 #endif
omatthews 0:54bedd3964e2 16
omatthews 0:54bedd3964e2 17 /* Enum definitions */
omatthews 5:702b32ead94e 18 typedef enum _memspcr_ExperimentConfiguration_Heater {
omatthews 5:702b32ead94e 19 memspcr_ExperimentConfiguration_Heater_MAIN = 0,
omatthews 5:702b32ead94e 20 memspcr_ExperimentConfiguration_Heater_LYSIS = 1
omatthews 5:702b32ead94e 21 } memspcr_ExperimentConfiguration_Heater;
omatthews 5:702b32ead94e 22 #define _memspcr_ExperimentConfiguration_Heater_MIN memspcr_ExperimentConfiguration_Heater_MAIN
omatthews 5:702b32ead94e 23 #define _memspcr_ExperimentConfiguration_Heater_MAX memspcr_ExperimentConfiguration_Heater_LYSIS
omatthews 5:702b32ead94e 24 #define _memspcr_ExperimentConfiguration_Heater_ARRAYSIZE ((memspcr_ExperimentConfiguration_Heater)(memspcr_ExperimentConfiguration_Heater_LYSIS+1))
omatthews 0:54bedd3964e2 25
omatthews 0:54bedd3964e2 26 /* Struct definitions */
omatthews 0:54bedd3964e2 27 typedef struct _memspcr_FluidicConfiguration {
omatthews 0:54bedd3964e2 28 float pressure_setpoint;
omatthews 0:54bedd3964e2 29 float pressure_hysterisis;
omatthews 0:54bedd3964e2 30 /* @@protoc_insertion_point(struct:memspcr_FluidicConfiguration) */
omatthews 0:54bedd3964e2 31 } memspcr_FluidicConfiguration;
omatthews 0:54bedd3964e2 32
omatthews 0:54bedd3964e2 33 typedef struct _memspcr_OpticsConfiguration {
omatthews 0:54bedd3964e2 34 int32_t pre_trigger_ms;
omatthews 0:54bedd3964e2 35 int32_t on_time_ms;
omatthews 0:54bedd3964e2 36 float led_pwm;
omatthews 0:54bedd3964e2 37 /* @@protoc_insertion_point(struct:memspcr_OpticsConfiguration) */
omatthews 0:54bedd3964e2 38 } memspcr_OpticsConfiguration;
omatthews 0:54bedd3964e2 39
omatthews 0:54bedd3964e2 40 typedef struct _memspcr_ThermalConfiguration {
omatthews 0:54bedd3964e2 41 float guard_drive_ratio;
omatthews 0:54bedd3964e2 42 int32_t adc_settling_time_us;
omatthews 0:54bedd3964e2 43 float pid_kp;
omatthews 0:54bedd3964e2 44 float pid_integral_time;
omatthews 0:54bedd3964e2 45 float pid_derivative_time;
omatthews 5:702b32ead94e 46 int32_t control_loop_interval_ms;
omatthews 0:54bedd3964e2 47 /* @@protoc_insertion_point(struct:memspcr_ThermalConfiguration) */
omatthews 0:54bedd3964e2 48 } memspcr_ThermalConfiguration;
omatthews 0:54bedd3964e2 49
omatthews 0:54bedd3964e2 50 typedef struct _memspcr_ThermalStep {
omatthews 0:54bedd3964e2 51 int32_t elapsed_time_ms;
omatthews 0:54bedd3964e2 52 float resistance;
omatthews 0:54bedd3964e2 53 int32_t camera_offset_ms;
omatthews 0:54bedd3964e2 54 /* @@protoc_insertion_point(struct:memspcr_ThermalStep) */
omatthews 0:54bedd3964e2 55 } memspcr_ThermalStep;
omatthews 0:54bedd3964e2 56
omatthews 0:54bedd3964e2 57 typedef struct _memspcr_ExperimentConfiguration {
omatthews 0:54bedd3964e2 58 memspcr_ThermalConfiguration thermal;
omatthews 5:702b32ead94e 59 pb_callback_t profile;
omatthews 0:54bedd3964e2 60 memspcr_OpticsConfiguration optics;
omatthews 0:54bedd3964e2 61 memspcr_FluidicConfiguration fluidics;
omatthews 0:54bedd3964e2 62 int32_t logging_interval_ms;
omatthews 5:702b32ead94e 63 memspcr_ExperimentConfiguration_Heater selected_heater;
omatthews 0:54bedd3964e2 64 /* @@protoc_insertion_point(struct:memspcr_ExperimentConfiguration) */
omatthews 0:54bedd3964e2 65 } memspcr_ExperimentConfiguration;
omatthews 0:54bedd3964e2 66
omatthews 0:54bedd3964e2 67 /* Default values for struct fields */
omatthews 0:54bedd3964e2 68
omatthews 0:54bedd3964e2 69 /* Initializer values for message structs */
omatthews 0:54bedd3964e2 70 #define memspcr_ThermalStep_init_default {0, 0, 0}
omatthews 5:702b32ead94e 71 #define memspcr_ThermalConfiguration_init_default {0, 0, 0, 0, 0, 0}
omatthews 0:54bedd3964e2 72 #define memspcr_OpticsConfiguration_init_default {0, 0, 0}
omatthews 0:54bedd3964e2 73 #define memspcr_FluidicConfiguration_init_default {0, 0}
omatthews 5:702b32ead94e 74 #define memspcr_ExperimentConfiguration_init_default {memspcr_ThermalConfiguration_init_default, {{NULL}, NULL}, memspcr_OpticsConfiguration_init_default, memspcr_FluidicConfiguration_init_default, 0, _memspcr_ExperimentConfiguration_Heater_MIN}
omatthews 0:54bedd3964e2 75 #define memspcr_ThermalStep_init_zero {0, 0, 0}
omatthews 5:702b32ead94e 76 #define memspcr_ThermalConfiguration_init_zero {0, 0, 0, 0, 0, 0}
omatthews 0:54bedd3964e2 77 #define memspcr_OpticsConfiguration_init_zero {0, 0, 0}
omatthews 0:54bedd3964e2 78 #define memspcr_FluidicConfiguration_init_zero {0, 0}
omatthews 5:702b32ead94e 79 #define memspcr_ExperimentConfiguration_init_zero {memspcr_ThermalConfiguration_init_zero, {{NULL}, NULL}, memspcr_OpticsConfiguration_init_zero, memspcr_FluidicConfiguration_init_zero, 0, _memspcr_ExperimentConfiguration_Heater_MIN}
omatthews 0:54bedd3964e2 80
omatthews 0:54bedd3964e2 81 /* Field tags (for use in manual encoding/decoding) */
omatthews 0:54bedd3964e2 82 #define memspcr_FluidicConfiguration_pressure_setpoint_tag 1
omatthews 0:54bedd3964e2 83 #define memspcr_FluidicConfiguration_pressure_hysterisis_tag 2
omatthews 0:54bedd3964e2 84 #define memspcr_OpticsConfiguration_pre_trigger_ms_tag 1
omatthews 0:54bedd3964e2 85 #define memspcr_OpticsConfiguration_on_time_ms_tag 2
omatthews 0:54bedd3964e2 86 #define memspcr_OpticsConfiguration_led_pwm_tag 3
omatthews 0:54bedd3964e2 87 #define memspcr_ThermalConfiguration_guard_drive_ratio_tag 2
omatthews 0:54bedd3964e2 88 #define memspcr_ThermalConfiguration_adc_settling_time_us_tag 4
omatthews 0:54bedd3964e2 89 #define memspcr_ThermalConfiguration_pid_kp_tag 7
omatthews 0:54bedd3964e2 90 #define memspcr_ThermalConfiguration_pid_integral_time_tag 8
omatthews 0:54bedd3964e2 91 #define memspcr_ThermalConfiguration_pid_derivative_time_tag 9
omatthews 5:702b32ead94e 92 #define memspcr_ThermalConfiguration_control_loop_interval_ms_tag 10
omatthews 0:54bedd3964e2 93 #define memspcr_ThermalStep_elapsed_time_ms_tag 1
omatthews 0:54bedd3964e2 94 #define memspcr_ThermalStep_resistance_tag 2
omatthews 0:54bedd3964e2 95 #define memspcr_ThermalStep_camera_offset_ms_tag 3
omatthews 0:54bedd3964e2 96 #define memspcr_ExperimentConfiguration_thermal_tag 1
omatthews 5:702b32ead94e 97 #define memspcr_ExperimentConfiguration_profile_tag 3
omatthews 5:702b32ead94e 98 #define memspcr_ExperimentConfiguration_selected_heater_tag 7
omatthews 5:702b32ead94e 99 #define memspcr_ExperimentConfiguration_optics_tag 4
omatthews 5:702b32ead94e 100 #define memspcr_ExperimentConfiguration_fluidics_tag 5
omatthews 5:702b32ead94e 101 #define memspcr_ExperimentConfiguration_logging_interval_ms_tag 6
omatthews 0:54bedd3964e2 102
omatthews 0:54bedd3964e2 103 /* Struct field encoding specification for nanopb */
omatthews 0:54bedd3964e2 104 extern const pb_field_t memspcr_ThermalStep_fields[4];
omatthews 5:702b32ead94e 105 extern const pb_field_t memspcr_ThermalConfiguration_fields[7];
omatthews 0:54bedd3964e2 106 extern const pb_field_t memspcr_OpticsConfiguration_fields[4];
omatthews 0:54bedd3964e2 107 extern const pb_field_t memspcr_FluidicConfiguration_fields[3];
omatthews 5:702b32ead94e 108 extern const pb_field_t memspcr_ExperimentConfiguration_fields[7];
omatthews 0:54bedd3964e2 109
omatthews 0:54bedd3964e2 110 /* Maximum encoded size of messages (where known) */
omatthews 0:54bedd3964e2 111 #define memspcr_ThermalStep_size 27
omatthews 5:702b32ead94e 112 #define memspcr_ThermalConfiguration_size 42
omatthews 0:54bedd3964e2 113 #define memspcr_OpticsConfiguration_size 27
omatthews 0:54bedd3964e2 114 #define memspcr_FluidicConfiguration_size 10
omatthews 0:54bedd3964e2 115 /* memspcr_ExperimentConfiguration_size depends on runtime parameters */
omatthews 0:54bedd3964e2 116
omatthews 0:54bedd3964e2 117 /* Message IDs (where set with "msgid" option) */
omatthews 0:54bedd3964e2 118 #ifdef PB_MSGID
omatthews 0:54bedd3964e2 119
omatthews 0:54bedd3964e2 120 #define MEMSPCR_MESSAGES \
omatthews 0:54bedd3964e2 121
omatthews 0:54bedd3964e2 122
omatthews 0:54bedd3964e2 123 #endif
omatthews 0:54bedd3964e2 124
omatthews 0:54bedd3964e2 125 #ifdef __cplusplus
omatthews 0:54bedd3964e2 126 } /* extern "C" */
omatthews 0:54bedd3964e2 127 #endif
omatthews 0:54bedd3964e2 128 /* @@protoc_insertion_point(eof) */
omatthews 0:54bedd3964e2 129
omatthews 0:54bedd3964e2 130 #endif