summaryrefslogtreecommitdiff
path: root/src/modem.h
diff options
context:
space:
mode:
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();
/**