Inductance Testing Code

Dependencies:   mbed

Fork of CurrentModeSine by Austin Brown

Committer:
austinbrown124
Date:
Thu Oct 11 04:13:45 2018 +0000
Revision:
1:64b881306f6f
Parent:
0:9edd6ec0f56a
DINGBAT

Who changed what in which revision?

UserRevisionLine numberNew contents of line
austinbrown124 1:64b881306f6f 1 #ifndef INVERTER_H
austinbrown124 1:64b881306f6f 2 #define INVERTER_H
austinbrown124 0:9edd6ec0f56a 3
austinbrown124 0:9edd6ec0f56a 4 #include "mbed.h"
austinbrown124 1:64b881306f6f 5 #include "inv_config.h"
austinbrown124 0:9edd6ec0f56a 6 #include "structs.h"
austinbrown124 0:9edd6ec0f56a 7
austinbrown124 1:64b881306f6f 8
austinbrown124 1:64b881306f6f 9
austinbrown124 1:64b881306f6f 10
austinbrown124 1:64b881306f6f 11 class Inverter {
austinbrown124 1:64b881306f6f 12 public:
austinbrown124 1:64b881306f6f 13 Inverter();
austinbrown124 1:64b881306f6f 14
austinbrown124 1:64b881306f6f 15 void Init_PWM(void);
austinbrown124 1:64b881306f6f 16 void Init_ADC(void);
austinbrown124 1:64b881306f6f 17 void ADCsync(void);
austinbrown124 1:64b881306f6f 18 void Init(void);
austinbrown124 1:64b881306f6f 19
austinbrown124 1:64b881306f6f 20 void zero_current();
austinbrown124 1:64b881306f6f 21 void GetCurrents(FocStruct *focc);
austinbrown124 1:64b881306f6f 22 void SetDutyCycles (FocStruct *focc);
austinbrown124 1:64b881306f6f 23
austinbrown124 1:64b881306f6f 24 int adc1_raw, adc2_raw;
austinbrown124 1:64b881306f6f 25 int adc1_offset, adc2_offset;
austinbrown124 1:64b881306f6f 26
austinbrown124 1:64b881306f6f 27 private:
austinbrown124 1:64b881306f6f 28
austinbrown124 1:64b881306f6f 29
austinbrown124 1:64b881306f6f 30
austinbrown124 1:64b881306f6f 31 };
austinbrown124 0:9edd6ec0f56a 32
austinbrown124 0:9edd6ec0f56a 33 #endif