![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Mike Etek Controller
Inverter/Inverter.h@1:94193b31f0ee, 2019-04-06 (annotated)
- Committer:
- austinbrown124
- Date:
- Sat Apr 06 02:16:12 2019 +0000
- Revision:
- 1:94193b31f0ee
- Parent:
- 0:9edd6ec0f56a
first commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
austinbrown124 | 1:94193b31f0ee | 1 | #ifndef INVERTER_H |
austinbrown124 | 1:94193b31f0ee | 2 | #define INVERTER_H |
austinbrown124 | 0:9edd6ec0f56a | 3 | |
austinbrown124 | 0:9edd6ec0f56a | 4 | #include "mbed.h" |
austinbrown124 | 1:94193b31f0ee | 5 | #include "inv_config.h" |
austinbrown124 | 0:9edd6ec0f56a | 6 | #include "structs.h" |
austinbrown124 | 0:9edd6ec0f56a | 7 | |
austinbrown124 | 1:94193b31f0ee | 8 | |
austinbrown124 | 1:94193b31f0ee | 9 | |
austinbrown124 | 1:94193b31f0ee | 10 | |
austinbrown124 | 1:94193b31f0ee | 11 | class Inverter { |
austinbrown124 | 1:94193b31f0ee | 12 | public: |
austinbrown124 | 1:94193b31f0ee | 13 | Inverter(); |
austinbrown124 | 1:94193b31f0ee | 14 | |
austinbrown124 | 1:94193b31f0ee | 15 | void Init_PWM(void); |
austinbrown124 | 1:94193b31f0ee | 16 | void Init_ADC(void); |
austinbrown124 | 1:94193b31f0ee | 17 | void ADCsync(void); |
austinbrown124 | 1:94193b31f0ee | 18 | void Init(void); |
austinbrown124 | 1:94193b31f0ee | 19 | |
austinbrown124 | 1:94193b31f0ee | 20 | void zero_current(); |
austinbrown124 | 1:94193b31f0ee | 21 | |
austinbrown124 | 1:94193b31f0ee | 22 | int adc1_raw, adc2_raw; |
austinbrown124 | 1:94193b31f0ee | 23 | int adc1_offset, adc2_offset; |
austinbrown124 | 1:94193b31f0ee | 24 | |
austinbrown124 | 1:94193b31f0ee | 25 | private: |
austinbrown124 | 1:94193b31f0ee | 26 | |
austinbrown124 | 1:94193b31f0ee | 27 | |
austinbrown124 | 1:94193b31f0ee | 28 | |
austinbrown124 | 1:94193b31f0ee | 29 | }; |
austinbrown124 | 0:9edd6ec0f56a | 30 | |
austinbrown124 | 0:9edd6ec0f56a | 31 | #endif |