summaryrefslogtreecommitdiff
path: root/src/modem.h
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-14 19:04:17 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-14 19:04:17 +0100
commit541b0f27054f27e661a71aa465e2df6e5a1c0b86 (patch)
treef700dea426377894c87aa65038fbfc179a27048e /src/modem.h
parentc751cceda9fc6026be2ec520886624f63823c4cc (diff)
update modem/fecmodem documentation
Diffstat (limited to 'src/modem.h')
-rw-r--r--src/modem.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modem.h b/src/modem.h
index 6b40ac6..a2156a3 100644
--- a/src/modem.h
+++ b/src/modem.h
@@ -25,7 +25,7 @@
/**
* Receive-only modem. Sets up a pin change interrupt on the modem pin
* and receives bytes using a simple protocol. Does not detect or correct
- * transmission errors. Exposes a global modem object for convenience.
+ * transmission errors.
*/
class Modem {
private:
@@ -37,6 +37,12 @@ class Modem {
public:
Modem() {new_transmission = false;};
+ /**
+ * Checks if a new transmission was started since the last call
+ * to this function. Returns true if that is the case and false
+ * otherwise.
+ * @return true if a new transmission was started
+ */
bool newTransmission();
/**