/* * PSE_unit.c * * Created on: Aug 9, 2023 * Author: leo */ #include "PSE_unit.h" static pse_syringe test_syringe = { .name = "test", .diameter = 10000, }; // Dummy loading function until I decide between loading from SPIFlash or SD-MMC void load_units(pse_unit* units, 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 = &test_syringe, }; } }