Inductance Testing Code

Dependencies:   mbed

Fork of CurrentModeSine by Austin Brown

Revision:
1:64b881306f6f
Parent:
0:9edd6ec0f56a
--- a/Inverter/Inverter.h	Sat May 20 21:42:20 2017 +0000
+++ b/Inverter/Inverter.h	Thu Oct 11 04:13:45 2018 +0000
@@ -1,12 +1,33 @@
-#ifndef HW_PINS_H
-#define HW_PINS_H
+#ifndef INVERTER_H
+#define INVERTER_H
 
 #include "mbed.h"
+#include "inv_config.h"
 #include "structs.h"
 
-void Init_PWM(GPIOStruct *gpio);
-void Init_ADC(void);
-void Init_DAC(void);
-void Init_All_HW(GPIOStruct *gpio);
+
+
+
+class Inverter {
+public:
+    Inverter();
+    
+    void Init_PWM(void);
+    void Init_ADC(void);
+    void ADCsync(void);
+    void Init(void);
+
+    void zero_current();
+    void GetCurrents(FocStruct *focc);
+    void SetDutyCycles (FocStruct *focc);
+    
+    int adc1_raw, adc2_raw;
+    int adc1_offset, adc2_offset;
+
+private:
+
+    
+
+};
 
 #endif
\ No newline at end of file