/* * PSE_unit.c * * Created on: Aug 9, 2023 * Author: leo */ #include "PSE_unit.h" // TODO: load from SD-card void load_units(pse_unit* units, pse_syringe* syringes, pse_stepper_conf* stepper_confs, uint8_t unit_num){ for(int i = 0; i < unit_num; i++){ units[i] = (pse_unit){ .enabled = i%2, .port = i, .flow = 1500*i, .volume = 0, .set_volume = 0, .syringe = &syringes[i], .stepper_conf = &stepper_confs[i], }; syringes[i] = (pse_syringe){ .name = "Test", .diameter = 26700, }; } }