From 38ca0de1a07de2a087b9f8f040e659d1ed4d4a2a Mon Sep 17 00:00:00 2001
From: Malaurie Bernard <mbernard@kinouby>
Date: Fri, 30 Jun 2023 11:51:42 +0200
Subject: [PATCH] Creation of the syringe filled class with basic functions
 (setters and getters)

---
 syringefilled.h | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 syringefilled.h

diff --git a/syringefilled.h b/syringefilled.h
new file mode 100644
index 0000000..70d4a2c
--- /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);
+
+
+};
-- 
GitLab