diff --git a/syringefilled.h b/syringefilled.h new file mode 100644 index 0000000000000000000000000000000000000000..70d4a2c74ad58d7460e873c285bd47c59b9a6e3c --- /dev/null +++ b/syringefilled.h @@ -0,0 +1,43 @@ +#pragma once + +#include "syringe.h" +#include <ArduinoJson.h> + +class SyringeFilled +{ + + + private : + + float _exchange_throughput_uL_per_sec; + float _exchange_volume_mL; + float _remaining_volume_mL; + bool _push; //false means pull + int* _id; + + + public : + + //SET METHODS + void set_exchange_throughput_uL_per_sec(float exchange_throughput_uL_per_sec); + void set_exchange_volume_mL(float exchange_volume_mL); + void set_remaining_volume_mL(float remaining_volume_mL); + void set_push(bool push); + void set_id(int* id); + + + //GET METHODS + float get_exchange_throughput_uL_per_sec(); + float get_exchange_volume_mL(); + float get_remaining_volume_mL(); + bool get_push(); + int* get_id(); + + + //JSON DOCUMENT + StaticJsonDocument<200> SyringeFilled; //200 = RAM allocated to this document + + void setupJsonSyringeFilled(float exchange_throughput_uL_per_sec, float exchange_volume_mL, float remaining_volume_mL, bool push, int* id); + + +};