We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94daf7a commit aee1de6Copy full SHA for aee1de6
2 files changed
Inc/ST-LIB_LOW/HalfBridge/HalfBridge.hpp
@@ -24,6 +24,7 @@ class HalfBridge {
24
void set_duty_cycle(float duty_cycle);
25
void set_frequency(int32_t frequency);
26
void set_phase(float phase);
27
+ float get_phase();
28
29
private:
30
bool is_dual;
Src/ST-LIB_LOW/HalfBridge/HalfBridge.cpp
@@ -45,3 +45,7 @@ void HalfBridge::set_phase(float phase) {
45
positive_pwm.set_phase(phase);
46
negative_pwm.set_phase(-phase);
47
}
48
+
49
+float HalfBridge::get_phase() {
50
+ return positive_pwm.phase;
51
+}
0 commit comments