LEX_Threaded_Programming
Dependencies: Heater_V2 MODSERIAL Nanopb FastPWM ADS8568_ADC
memspcr.pb.h@0:54bedd3964e2, 2019-08-27 (annotated)
- Committer:
- omatthews
- Date:
- Tue Aug 27 07:51:34 2019 +0000
- Revision:
- 0:54bedd3964e2
- Child:
- 5:702b32ead94e
Forgot ADC init
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
omatthews | 0:54bedd3964e2 | 1 | /* Automatically generated nanopb header */ |
omatthews | 0:54bedd3964e2 | 2 | /* Generated by nanopb-0.3.9.3 at Wed Aug 21 21:39:54 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 | 0:54bedd3964e2 | 18 | typedef enum _memspcr_ThermalConfiguration_Heater { |
omatthews | 0:54bedd3964e2 | 19 | memspcr_ThermalConfiguration_Heater_MAIN = 0, |
omatthews | 0:54bedd3964e2 | 20 | memspcr_ThermalConfiguration_Heater_LYSIS = 1 |
omatthews | 0:54bedd3964e2 | 21 | } memspcr_ThermalConfiguration_Heater; |
omatthews | 0:54bedd3964e2 | 22 | #define _memspcr_ThermalConfiguration_Heater_MIN memspcr_ThermalConfiguration_Heater_MAIN |
omatthews | 0:54bedd3964e2 | 23 | #define _memspcr_ThermalConfiguration_Heater_MAX memspcr_ThermalConfiguration_Heater_LYSIS |
omatthews | 0:54bedd3964e2 | 24 | #define _memspcr_ThermalConfiguration_Heater_ARRAYSIZE ((memspcr_ThermalConfiguration_Heater)(memspcr_ThermalConfiguration_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 | pb_callback_t profile; |
omatthews | 0:54bedd3964e2 | 42 | float guard_drive_ratio; |
omatthews | 0:54bedd3964e2 | 43 | memspcr_ThermalConfiguration_Heater selected_heater; |
omatthews | 0:54bedd3964e2 | 44 | int32_t adc_settling_time_us; |
omatthews | 0:54bedd3964e2 | 45 | float pid_kp; |
omatthews | 0:54bedd3964e2 | 46 | float pid_integral_time; |
omatthews | 0:54bedd3964e2 | 47 | float pid_derivative_time; |
omatthews | 0:54bedd3964e2 | 48 | int32_t control_loop_interval; |
omatthews | 0:54bedd3964e2 | 49 | /* @@protoc_insertion_point(struct:memspcr_ThermalConfiguration) */ |
omatthews | 0:54bedd3964e2 | 50 | } memspcr_ThermalConfiguration; |
omatthews | 0:54bedd3964e2 | 51 | |
omatthews | 0:54bedd3964e2 | 52 | typedef struct _memspcr_ThermalStep { |
omatthews | 0:54bedd3964e2 | 53 | int32_t elapsed_time_ms; |
omatthews | 0:54bedd3964e2 | 54 | float resistance; |
omatthews | 0:54bedd3964e2 | 55 | int32_t camera_offset_ms; |
omatthews | 0:54bedd3964e2 | 56 | /* @@protoc_insertion_point(struct:memspcr_ThermalStep) */ |
omatthews | 0:54bedd3964e2 | 57 | } memspcr_ThermalStep; |
omatthews | 0:54bedd3964e2 | 58 | |
omatthews | 0:54bedd3964e2 | 59 | typedef struct _memspcr_ExperimentConfiguration { |
omatthews | 0:54bedd3964e2 | 60 | memspcr_ThermalConfiguration thermal; |
omatthews | 0:54bedd3964e2 | 61 | memspcr_OpticsConfiguration optics; |
omatthews | 0:54bedd3964e2 | 62 | memspcr_FluidicConfiguration fluidics; |
omatthews | 0:54bedd3964e2 | 63 | int32_t logging_interval_ms; |
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 | 0:54bedd3964e2 | 71 | #define memspcr_ThermalConfiguration_init_default {{{NULL}, NULL}, 0, _memspcr_ThermalConfiguration_Heater_MIN, 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 | 0:54bedd3964e2 | 74 | #define memspcr_ExperimentConfiguration_init_default {memspcr_ThermalConfiguration_init_default, memspcr_OpticsConfiguration_init_default, memspcr_FluidicConfiguration_init_default, 0} |
omatthews | 0:54bedd3964e2 | 75 | #define memspcr_ThermalStep_init_zero {0, 0, 0} |
omatthews | 0:54bedd3964e2 | 76 | #define memspcr_ThermalConfiguration_init_zero {{{NULL}, NULL}, 0, _memspcr_ThermalConfiguration_Heater_MIN, 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 | 0:54bedd3964e2 | 79 | #define memspcr_ExperimentConfiguration_init_zero {memspcr_ThermalConfiguration_init_zero, memspcr_OpticsConfiguration_init_zero, memspcr_FluidicConfiguration_init_zero, 0} |
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_profile_tag 1 |
omatthews | 0:54bedd3964e2 | 88 | #define memspcr_ThermalConfiguration_guard_drive_ratio_tag 2 |
omatthews | 0:54bedd3964e2 | 89 | #define memspcr_ThermalConfiguration_selected_heater_tag 3 |
omatthews | 0:54bedd3964e2 | 90 | #define memspcr_ThermalConfiguration_adc_settling_time_us_tag 4 |
omatthews | 0:54bedd3964e2 | 91 | #define memspcr_ThermalConfiguration_pid_kp_tag 7 |
omatthews | 0:54bedd3964e2 | 92 | #define memspcr_ThermalConfiguration_pid_integral_time_tag 8 |
omatthews | 0:54bedd3964e2 | 93 | #define memspcr_ThermalConfiguration_pid_derivative_time_tag 9 |
omatthews | 0:54bedd3964e2 | 94 | #define memspcr_ThermalConfiguration_control_loop_interval_tag 10 |
omatthews | 0:54bedd3964e2 | 95 | #define memspcr_ThermalStep_elapsed_time_ms_tag 1 |
omatthews | 0:54bedd3964e2 | 96 | #define memspcr_ThermalStep_resistance_tag 2 |
omatthews | 0:54bedd3964e2 | 97 | #define memspcr_ThermalStep_camera_offset_ms_tag 3 |
omatthews | 0:54bedd3964e2 | 98 | #define memspcr_ExperimentConfiguration_thermal_tag 1 |
omatthews | 0:54bedd3964e2 | 99 | #define memspcr_ExperimentConfiguration_optics_tag 2 |
omatthews | 0:54bedd3964e2 | 100 | #define memspcr_ExperimentConfiguration_fluidics_tag 3 |
omatthews | 0:54bedd3964e2 | 101 | #define memspcr_ExperimentConfiguration_logging_interval_ms_tag 4 |
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 | 0:54bedd3964e2 | 105 | extern const pb_field_t memspcr_ThermalConfiguration_fields[9]; |
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 | 0:54bedd3964e2 | 108 | extern const pb_field_t memspcr_ExperimentConfiguration_fields[5]; |
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 | 0:54bedd3964e2 | 112 | /* memspcr_ThermalConfiguration_size depends on runtime parameters */ |
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 |