summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/asserv.h
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-14 11:59:50 +0200
committerJérémy Dufour2008-04-14 11:59:50 +0200
commit344378dbe88fef666e0577cdbf57498f3800172f (patch)
treea26f5108ccae90afb0f7825f7ef02a90c291267b /digital/io/src/asserv.h
parent866e9ecb695b0a797ee7854cd3113abcd04ded6f (diff)
* digital/io/src
- manage command retransmission (when not acknowledge by the asserv) ; - integrate retransmission and update of the asserv into the main.
Diffstat (limited to 'digital/io/src/asserv.h')
-rw-r--r--digital/io/src/asserv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/digital/io/src/asserv.h b/digital/io/src/asserv.h
index 6bb883d2..ab81118a 100644
--- a/digital/io/src/asserv.h
+++ b/digital/io/src/asserv.h
@@ -69,6 +69,18 @@ uint8_t
asserv_last_cmd_ack (void);
/**
+ * Re-send command if not acknowledged.
+ * This function should be called when the command has not been acknowledged
+ * by the asserv board. It will re send the last command when a certain number
+ * of cycle has been reached without any acknowledge from the asserv.
+ * @return
+ * - 0 if the command was not received.
+ * - 1 if the command was re-sent.
+ */
+uint8_t
+asserv_retransmit (void);
+
+/**
* Status of a move or arm class command.
* It is return by status functions.
*/