Mihaly Vadai
/
muonhunter-K8
MH K8 firmware with HV control.
Fork of muonhunter-K8 by
Diff: hvcontrol.cpp
- Revision:
- 4:87037e41c888
- Parent:
- 2:66a2e52ad175
- Child:
- 7:6a0958c2be7e
diff -r 0a89a80bea94 -r 87037e41c888 hvcontrol.cpp --- a/hvcontrol.cpp Tue Oct 04 17:08:38 2016 +0000 +++ b/hvcontrol.cpp Wed Oct 05 16:56:33 2016 +0000 @@ -1,8 +1,6 @@ #include "mbed.h" -class HVControl{ - -private: +struct HVControl{ int freq, max_freq, min_freq; // oscillator parameters float voltage_ref, divider_value, voltage, thresh, safe_voltage; //hv probe parameters PinName oscillator_pin, measure_pin; @@ -17,8 +15,6 @@ return (int)(T); } - -public: int *hvparams; //array is indexed with the frequency HVControl(PinName oscillator_pin_, PinName measure_pin_) {