projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CodeLite: add a small delay during the debugger initialization.
[bertos.git]
/
bertos
/
net
/
keytag.c
diff --git
a/bertos/net/keytag.c
b/bertos/net/keytag.c
index 2376305a07424ebfb4cf2c733f2a9d18ad57b924..32473ceb733fd047614a8558616ad6eab82a3a7c 100644
(file)
--- a/
bertos/net/keytag.c
+++ b/
bertos/net/keytag.c
@@
-31,8
+31,12
@@
* -->
*
* \author Andrea Grandi <andrea@develer.com>
* -->
*
* \author Andrea Grandi <andrea@develer.com>
+ * \author Daniele Basile <asterix@develer.com>
*
*
- * \brief Tag protocol (protocol).
+ * \brief KeyTAG parser.
+ *
+ * This module parse TAG message that come from comunication channel,
+ * and convert the tag value into string.
*
* TAG protocol is decribed in this way:
* <pre>
*
* TAG protocol is decribed in this way:
* <pre>
@@
-85,6
+89,11
@@
void keytag_poll(struct TagPacket *pkt)
kfile_write(pkt->host, buf, len);
}
kfile_write(pkt->host, buf, len);
}
+/**
+ * Receive the tag message from channel, and if
+ * the tag is good put the converted string into given buffer.
+ * The fuction return the len of found tag string, otherwise EOF.
+ */
int keytag_recv(struct TagPacket *pkt, uint8_t *tag, size_t len)
{
int c;
int keytag_recv(struct TagPacket *pkt, uint8_t *tag, size_t len)
{
int c;