#ifndef MIGHTYWATT_SEQUENCE_H #define MIGHTYWATT_SEQUENCE_H #include "mightywatt_app.h" #include "mightywatt_log.h" #include #include #include #ifdef __cplusplus extern "C" { #endif typedef struct { const char *csv_path; int sample_period_ms_override; bool safe_on_abort; mw_csv_units_mode csv_units_mode; } mw_sequence_run_options; typedef struct { char name[64]; int sample_period_ms; size_t steps_total; size_t steps_completed; size_t samples_written; bool aborted; bool abort_sequence_ran; size_t abort_steps_completed; bool last_report_valid; mw_report last_report; } mw_sequence_result; int mw_sequence_run_file(mw_app *app, const char *json_path, const mw_sequence_run_options *options, mw_sequence_result *out_result, char *error_text, size_t error_text_size); #ifdef __cplusplus } #endif #endif