git.droids-corp.org
/
protos
/
xbee-avr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a complete rc_proto stack (not tested)
[protos/xbee-avr.git]
/
xbee_user.c
diff --git
a/xbee_user.c
b/xbee_user.c
index
859d203
..
9d3da99
100644
(file)
--- a/
xbee_user.c
+++ b/
xbee_user.c
@@
-237,7
+237,9
@@
static int parse_atcmd(struct xbee_ctx *ctx, struct xbee_atresp_hdr *frame,
}
}
-/* main rx entry point for application */
+/* Main xbee rx entry point for application. It decodes the xbee frame type and
+ * dispatch to the application layer. Then "len" argument does not include the
+ * xbee_hdr structure (delimiter, len, type, id) and checksum. */
int8_t xbeeapp_rx(struct xbee_dev *dev, int channel, int type,
void *frame, unsigned len, void *opaque)
{
int8_t xbeeapp_rx(struct xbee_dev *dev, int channel, int type,
void *frame, unsigned len, void *opaque)
{