summaryrefslogtreecommitdiff
path: root/src/fsk.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-24 04:15:26 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-24 04:15:26 +0100
commitceaf7bc52712cb60708ed5eb5c62c5e463dd8e89 (patch)
treec55e4b85ee30138ce83263045d77d01631378b2e /src/fsk.h
parent6c37cc1979b2a01205a888c4c98f3334685ee8dd (diff)
Tidying.
Diffstat (limited to 'src/fsk.h')
-rw-r--r--src/fsk.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/fsk.h b/src/fsk.h
index c73eb177..0f18141d 100644
--- a/src/fsk.h
+++ b/src/fsk.h
@@ -32,6 +32,11 @@
*/
+/** @file src/fsk.h
+ * @brief FSK class
+ */
+
+
#include <stdint.h>
#include <vector>
@@ -60,15 +65,16 @@ public:
private:
std::vector<bool> _data;
/** current offset into _data */
- int _data_position;
+ int _data_position = 0;
/** current sample number of the current bit (0-3) */
- int _sample_position;
+ int _sample_position = 0;
/** polarity of the last bit to be written (false for -ve, true for +ve) */
- bool _last_polarity;
+ bool _last_polarity = false;
/** value of the last bit to be written */
- bool _last_bit;
+ bool _last_bit = false;
};
+
}