aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/includes
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-12 18:54:14 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-06-12 18:54:14 +0200
commite20f8816f48aa80a82b241ef73e2d9ab92833f87 (patch)
tree60cfd4d9fa7e3f3525df8ad98ddaa9cf65fe2825 /src/common/includes
parent6f95a22ce25839825c79d4529317984bd3e1b870 (diff)
downloadglutte-o-matic-e20f8816f48aa80a82b241ef73e2d9ab92833f87.tar.gz
glutte-o-matic-e20f8816f48aa80a82b241ef73e2d9ab92833f87.tar.bz2
glutte-o-matic-e20f8816f48aa80a82b241ef73e2d9ab92833f87.zip
Fix analog supply voltage readout
Diffstat (limited to 'src/common/includes')
-rw-r--r--src/common/includes/Core/fsm.h1
-rw-r--r--src/common/includes/GPIO/analog.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/src/common/includes/Core/fsm.h b/src/common/includes/Core/fsm.h
index 75f1f46..94698b4 100644
--- a/src/common/includes/Core/fsm.h
+++ b/src/common/includes/Core/fsm.h
@@ -74,7 +74,6 @@ struct fsm_input_signals_t {
// All signals the FSM has to control
struct fsm_output_signals_t {
/* Signals to the repeater electronics */
- int qrp; // Place the repeater in QRP mode // TODO move out of FSM
int tx_on; // Enable TX circuitry
int modulation; // Enable repeater RX to TX modulation
diff --git a/src/common/includes/GPIO/analog.h b/src/common/includes/GPIO/analog.h
index 99404f6..54dfb5d 100644
--- a/src/common/includes/GPIO/analog.h
+++ b/src/common/includes/GPIO/analog.h
@@ -30,3 +30,8 @@ void analog_init(void);
* Returns 0.0f in case of error */
float analog_measure_12v(void);
+/* Keep an average of measurements, and decide if the repeater should enter
+ * QRP. Returns 1 if low power must be activated
+ */
+int analog_supply_too_low(void);
+