Documentation updates
This commit is contained in:
parent
03b2399622
commit
0650a014b5
41 changed files with 565 additions and 84 deletions
|
@ -1,3 +1,9 @@
|
|||
/**
|
||||
* \addtogroup rimeabc
|
||||
* @{
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -30,12 +36,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: abc.c,v 1.11 2007/03/29 23:18:22 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \addtogroup rimeabc
|
||||
* @{
|
||||
* $Id: abc.c,v 1.12 2007/03/31 18:31:27 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,11 +4,16 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimeabc Anonymous best-effort local area broadcast (abc)
|
||||
* \defgroup rimeabc Anonymous best-effort local area broadcast
|
||||
* @{
|
||||
*
|
||||
* The abc module sends packets to all local area neighbors without
|
||||
* any extra headers that idendtify the sender or receiver.
|
||||
* The abc module sends packets to all local area neighbors. The abc
|
||||
* module adds no headers to outgoing packets.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The abc module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -41,7 +46,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: abc.h,v 1.10 2007/03/29 23:18:47 adamdunkels Exp $
|
||||
* $Id: abc.h,v 1.11 2007/03/31 18:31:27 adamdunkels Exp $
|
||||
*/
|
||||
/**
|
||||
* \file
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup ctimer
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: ctimer.c,v 1.3 2007/03/29 23:18:22 adamdunkels Exp $
|
||||
* $Id: ctimer.c,v 1.4 2007/03/31 18:31:27 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -120,3 +125,4 @@ ctimer_stop(struct ctimer *c)
|
|||
list_remove(ctimer_list, c);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup ctimer Callback timer
|
||||
* @{
|
||||
*
|
||||
* The ctimer module provides a timer mechanism that calls a specified
|
||||
* C function when a ctimer expires.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +42,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: ctimer.h,v 1.2 2007/03/25 12:05:51 adamdunkels Exp $
|
||||
* $Id: ctimer.h,v 1.3 2007/03/31 18:31:27 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -60,3 +74,5 @@ void ctimer_stop(struct ctimer *c);
|
|||
void ctimer_init(void);
|
||||
|
||||
#endif /* __CTIMER_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -4,11 +4,16 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimeibc Identified best-effort local area broadcast (ibc)
|
||||
* \defgroup rimeibc Identified best-effort local area broadcast
|
||||
* @{
|
||||
*
|
||||
* The ibc module sends packets to all local area neighbors with an a
|
||||
* header that identifies the sender.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The ibc module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -41,7 +46,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: ibc.h,v 1.7 2007/03/29 23:18:48 adamdunkels Exp $
|
||||
* $Id: ibc.h,v 1.8 2007/03/31 18:31:27 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,9 +7,16 @@
|
|||
* \defgroup rimemesh Mesh routing
|
||||
* @{
|
||||
*
|
||||
* The abc module sends packets using multi-hop routing to a specified
|
||||
* The mesh module sends packets using multi-hop routing to a specified
|
||||
* receiver somewhere in the network.
|
||||
*
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The mesh module uses 3 channel; one for the multi-hop forwarding
|
||||
* (\ref rimemh "mh") and two for the route disovery (\ref
|
||||
* routediscovery "route-discovery").
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -42,7 +49,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: mesh.h,v 1.7 2007/03/29 23:18:48 adamdunkels Exp $
|
||||
* $Id: mesh.h,v 1.8 2007/03/31 18:31:27 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimemh
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +33,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: mh.c,v 1.2 2007/03/23 10:46:35 adamdunkels Exp $
|
||||
* $Id: mh.c,v 1.3 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A mesh routing protocol
|
||||
* Multihop forwarding
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -145,3 +150,4 @@ mh_send(struct mh_conn *c, rimeaddr_t *to)
|
|||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimemh Best-effort multihop forwarding
|
||||
* @{
|
||||
*
|
||||
* The mh module implements a multihop forwarding mechanism. Routes
|
||||
* must have already been setup with the route_add() function. Setting
|
||||
* up routes is done with another Rime module such as the \ref
|
||||
* routediscovery "route-discovery module".
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The mh module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +48,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: mh.h,v 1.1 2007/03/22 17:33:15 adamdunkels Exp $
|
||||
* $Id: mh.h,v 1.2 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Multihop forwarding header file
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -62,3 +82,5 @@ void mh_close(struct mh_conn *c);
|
|||
int mh_send(struct mh_conn *c, rimeaddr_t *to);
|
||||
|
||||
#endif /* __MH_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimeneighbor
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: neighbor.c,v 1.7 2007/03/25 12:06:28 adamdunkels Exp $
|
||||
* $Id: neighbor.c,v 1.8 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -221,3 +226,4 @@ neighbor_set_lifetime(int seconds)
|
|||
max_time = seconds;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* \defgroup rimeneighbor Rime neighbor management
|
||||
* @{
|
||||
*
|
||||
* The neighbor module manages the neighbor table.
|
||||
*/
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +38,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: neighbor.h,v 1.4 2007/03/25 12:06:28 adamdunkels Exp $
|
||||
* $Id: neighbor.h,v 1.5 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -64,3 +74,5 @@ void neighbor_set_lifetime(int seconds);
|
|||
|
||||
|
||||
#endif /* __NEIGHBOR_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimenf
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: nf.c,v 1.10 2007/03/25 12:06:28 adamdunkels Exp $
|
||||
* $Id: nf.c,v 1.11 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -201,3 +206,4 @@ nf_cancel(struct nf_conn *c)
|
|||
ctimer_stop(&c->t);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimenf Best-effort network flooding
|
||||
* @{
|
||||
*
|
||||
* The nf module does best-effort flooding.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The nf module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +45,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: nf.h,v 1.8 2007/03/25 12:06:28 adamdunkels Exp $
|
||||
* $Id: nf.h,v 1.9 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -72,3 +89,5 @@ void nf_close(struct nf_conn *c);
|
|||
int nf_send(struct nf_conn *c);
|
||||
|
||||
#endif /* __SIBC_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimequeuebuf
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: queuebuf.c,v 1.7 2007/03/29 23:18:48 adamdunkels Exp $
|
||||
* $Id: queuebuf.c,v 1.8 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -68,6 +73,15 @@ struct queuebuf_ref {
|
|||
|
||||
MEMB(bufmem, struct queuebuf, QUEUEBUF_NUM);
|
||||
MEMB(refbufmem, struct queuebuf_ref, QUEUEBUF_REF_NUM);
|
||||
|
||||
#define DEBUG 0
|
||||
#if DEBUG
|
||||
#include <stdio.h>
|
||||
#define PRINTF(...) printf(__VA_ARGS__)
|
||||
#else
|
||||
#define PRINTF(...)
|
||||
#endif
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
queuebuf_init(void)
|
||||
|
@ -88,12 +102,16 @@ queuebuf_new_from_rimebuf(void)
|
|||
rbuf->len = rimebuf_datalen();
|
||||
rbuf->ref = rimebuf_reference_ptr();
|
||||
rbuf->hdrlen = rimebuf_copyto_hdr(rbuf->hdr);
|
||||
} else {
|
||||
PRINTF("queuebuf_new_from_rimebuf: could not allocate a reference queuebuf\n");
|
||||
}
|
||||
return (struct queuebuf *)rbuf;
|
||||
} else {
|
||||
buf = memb_alloc(&bufmem);
|
||||
if(buf != NULL) {
|
||||
buf->len = rimebuf_copyto(buf->data);
|
||||
} else {
|
||||
PRINTF("queuebuf_new_from_rimebuf: could not allocate a queuebuf\n");
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
@ -145,3 +163,4 @@ queuebuf_datalen(struct queuebuf *b)
|
|||
return b->len;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* \defgroup rimequeuebuf Rime queue buffer management
|
||||
* @{
|
||||
*
|
||||
* The Rime queue buffer management handles buffers that are queued.
|
||||
* The queuebuf module handles buffers that are queued.
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: queuebuf.h,v 1.4 2007/03/29 23:18:48 adamdunkels Exp $
|
||||
* $Id: queuebuf.h,v 1.5 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +33,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rime.c,v 1.6 2007/03/22 23:57:19 adamdunkels Exp $
|
||||
* $Id: rime.c,v 1.7 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Rime initialization and common code
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -55,3 +60,4 @@ rime_input(void)
|
|||
abc_input_packet();
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimeaddr
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +33,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rimeaddr.c,v 1.4 2007/03/24 16:42:21 adamdunkels Exp $
|
||||
* $Id: rimeaddr.c,v 1.5 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Functions for manipulating Rime addresses
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -62,3 +67,4 @@ rimeaddr_set_node_addr(rimeaddr_t *t)
|
|||
rimeaddr_copy(&rimeaddr_node_addr, t);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimeaddr Rime addresses
|
||||
* @{
|
||||
*
|
||||
* The rimeaddr module is an abstract repressentation of addresses in
|
||||
* Rime.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +42,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rimeaddr.h,v 1.2 2007/03/21 23:22:11 adamdunkels Exp $
|
||||
* $Id: rimeaddr.h,v 1.3 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Header file for the Rime address repressentation
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -46,12 +60,66 @@ typedef union {
|
|||
unsigned short u16[1];
|
||||
} rimeaddr_t;
|
||||
|
||||
void rimeaddr_copy(rimeaddr_t *dest, const rimeaddr_t *from);
|
||||
int rimeaddr_cmp(const rimeaddr_t *addr1, const rimeaddr_t *addr2);
|
||||
void rimeaddr_set_node_addr(rimeaddr_t *t);
|
||||
|
||||
/**
|
||||
* \brief Copy a Rime address
|
||||
* \param dest The destination
|
||||
* \param from The source
|
||||
*
|
||||
* This function copies a Rime address from one location
|
||||
* to another.
|
||||
*
|
||||
*/
|
||||
void rimeaddr_copy(rimeaddr_t *dest, const rimeaddr_t *from);
|
||||
|
||||
/**
|
||||
* \brief Compare two Rime addresses
|
||||
* \param addr1 The first address
|
||||
* \param addr2 The second address
|
||||
* \return Non-zero if the addresses are the same, zero if they are different
|
||||
*
|
||||
* This function compares two Rime addresses and returns
|
||||
* the result of the comparison. The function acts like
|
||||
* the '==' operator and returns non-zero if the addresses
|
||||
* are the same, and zero if the addresses are different.
|
||||
*
|
||||
*/
|
||||
int rimeaddr_cmp(const rimeaddr_t *addr1, const rimeaddr_t *addr2);
|
||||
|
||||
|
||||
/**
|
||||
* \brief Set the address of the current node
|
||||
* \param addr The address
|
||||
*
|
||||
* This function sets the Rime address of the node.
|
||||
*
|
||||
*/
|
||||
void rimeaddr_set_node_addr(rimeaddr_t *addr);
|
||||
|
||||
/**
|
||||
* \brief The Rime address of the node
|
||||
*
|
||||
* This variable contains the Rime address of the
|
||||
* node. This variable should not be changed directly;
|
||||
* rather, the rimeaddr_set_node_addr() function should be
|
||||
* used.
|
||||
*
|
||||
*/
|
||||
extern rimeaddr_t rimeaddr_node_addr;
|
||||
|
||||
/**
|
||||
* \brief The null Rime address
|
||||
*
|
||||
* This variable contains the null Rime address. The null
|
||||
* address is used in route tables to indicate that the
|
||||
* table entry is unused. Nodes with no configured address
|
||||
* has the null address. Nodes with their node address set
|
||||
* to the null address will have problems communicating
|
||||
* with other nodes.
|
||||
*
|
||||
*/
|
||||
extern const rimeaddr_t rimeaddr_null;
|
||||
|
||||
#endif /* __RIMEADDR_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimebuf
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rimebuf.c,v 1.7 2007/03/29 23:18:22 adamdunkels Exp $
|
||||
* $Id: rimebuf.c,v 1.8 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -219,3 +224,4 @@ rimebuf_totlen(void)
|
|||
return rimebuf_hdrlen() + rimebuf_datalen();
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,15 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimebuf Rime buffer management
|
||||
* @{
|
||||
*
|
||||
* The rimebuf module does Rime's buffer management.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +40,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rimebuf.h,v 1.7 2007/03/29 22:22:20 adamdunkels Exp $
|
||||
* $Id: rimebuf.h,v 1.8 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -288,3 +300,5 @@ int rimebuf_hdrreduce(int size);
|
|||
|
||||
|
||||
#endif /* __RIMEBUF_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup routediscovery
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: route-discovery.c,v 1.4 2007/03/29 22:22:44 adamdunkels Exp $
|
||||
* $Id: route-discovery.c,v 1.5 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -244,3 +249,4 @@ route_discovery_discover(struct route_discovery_conn *c, rimeaddr_t *addr,
|
|||
send_rreq(c, addr);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup routediscovery Rime route discovery protocol
|
||||
* @{
|
||||
*
|
||||
* The route-discovery module does route discovery for Rime.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The ibc module uses 2 channels; one for the flooded route request
|
||||
* packets and one for the unicast route replies.
|
||||
*
|
||||
*/
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +45,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: route-discovery.h,v 1.2 2007/03/25 12:06:28 adamdunkels Exp $
|
||||
* $Id: route-discovery.h,v 1.3 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -72,3 +89,5 @@ void route_discovery_discover(struct route_discovery_conn *c, rimeaddr_t *dest,
|
|||
void route_discovery_close(struct route_discovery_conn *c);
|
||||
|
||||
#endif /* __ROUTE_DISCOVERY_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimeroute
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +33,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: route.c,v 1.5 2007/03/25 12:03:59 adamdunkels Exp $
|
||||
* $Id: route.c,v 1.6 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* Routing tables for the mesh routing protocol
|
||||
* Rime route table
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -163,3 +168,4 @@ route_set_lifetime(int seconds)
|
|||
max_time = seconds;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
/**
|
||||
* \defgroup rimeroute Rime route table
|
||||
* @{
|
||||
*
|
||||
* The route module handles the route table in Rime.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +39,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: route.h,v 1.4 2007/03/25 12:03:59 adamdunkels Exp $
|
||||
* $Id: route.h,v 1.5 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* Routing tables for the micro implementation of the AODV ad hoc routing protocol
|
||||
* Header file for the Rime route table
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -62,3 +73,5 @@ void route_flush_all(void);
|
|||
void route_set_lifetime(int seconds);
|
||||
|
||||
#endif /* __ROUTE_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rudolph0
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rudolph0.c,v 1.2 2007/03/25 21:29:02 oliverschmidt Exp $
|
||||
* $Id: rudolph0.c,v 1.3 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -119,10 +124,6 @@ recv(struct sabc_conn *sabc)
|
|||
struct rudolph0_conn *c = (struct rudolph0_conn *)sabc;
|
||||
struct rudolph0_datapacket *p = rimebuf_dataptr();
|
||||
|
||||
/* if(rand() & 1) {
|
||||
return;
|
||||
}*/
|
||||
|
||||
if(p->h.type == TYPE_DATA) {
|
||||
if(c->current.h.version != p->h.version) {
|
||||
PRINTF("rudolph0 new version %d\n", p->h.version);
|
||||
|
@ -229,3 +230,4 @@ rudolph0_set_version(struct rudolph0_conn *c, int version)
|
|||
c->current.h.version = version;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rudolph0 Single-hop reliable bulk data transfer
|
||||
* @{
|
||||
*
|
||||
* The rudolph0 module implements a single-hop reliable bulk data
|
||||
* transfer mechanism.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The rudolph0 module uses 2 channels; one for data packets and one
|
||||
* for NACK and repair packets.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +47,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rudolph0.h,v 1.1 2007/03/25 11:56:59 adamdunkels Exp $
|
||||
* $Id: rudolph0.h,v 1.2 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Header file for the single-hop reliable bulk data transfer module
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -93,3 +112,6 @@ void rudolph0_set_version(struct rudolph0_conn *c, int version);
|
|||
int rudolph0_version(struct rudolph0_conn *c);
|
||||
|
||||
#endif /* __RUDOLPH0_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rudolph1
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rudolph1.c,v 1.4 2007/03/28 19:52:27 adamdunkels Exp $
|
||||
* $Id: rudolph1.c,v 1.5 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -263,3 +268,4 @@ rudolph1_stop(struct rudolph1_conn *c)
|
|||
ctimer_stop(&c->t);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rudolph1 Multi-hop reliable bulk data transfer
|
||||
* @{
|
||||
*
|
||||
* The rudolph1 module implements a multi-hop reliable bulk data
|
||||
* transfer mechanism.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The rudolph1 module uses 2 channels; one for data transmissions and
|
||||
* one for NACKs and repair packets.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +47,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rudolph1.h,v 1.1 2007/03/25 11:58:09 adamdunkels Exp $
|
||||
* $Id: rudolph1.h,v 1.2 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Header file for the multi-hop reliable bulk data transfer mechanism
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -79,3 +98,5 @@ void rudolph1_send(struct rudolph1_conn *c);
|
|||
void rudolph1_stop(struct rudolph1_conn *c);
|
||||
|
||||
#endif /* __RUDOLPH1_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimesabc
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: sabc.c,v 1.6 2007/03/25 12:03:41 adamdunkels Exp $
|
||||
* $Id: sabc.c,v 1.7 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -113,3 +118,4 @@ sabc_cancel(struct sabc_conn *c)
|
|||
ctimer_stop(&c->t);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimesabc Stubborn Anonymous best-effort local area BroadCast
|
||||
* \defgroup rimesabc Stubborn anonymous best-effort local area broadcast
|
||||
* @{
|
||||
*
|
||||
* The sabc module provides stubborn anonymous best-effort local area
|
||||
|
@ -12,6 +12,10 @@
|
|||
* either the mssage is canceled or a new message is sent. Messages
|
||||
* sent with the sabc module are not identified with a sender ID.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The sabc module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
|
@ -44,7 +48,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: sabc.h,v 1.6 2007/03/29 23:18:48 adamdunkels Exp $
|
||||
* $Id: sabc.h,v 1.7 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimesibc
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: sibc.c,v 1.5 2007/03/19 22:10:17 adamdunkels Exp $
|
||||
* $Id: sibc.c,v 1.6 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -111,3 +116,4 @@ sibc_cancel(struct sibc_conn *c)
|
|||
ctimer_stop(&c->t);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,23 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimesibc Stubborn identified broadcast
|
||||
* @{
|
||||
*
|
||||
* The sibc module provides stubborn identified best-effort local area
|
||||
* broadcast. A message sent with the sibc module is repeated until
|
||||
* either the mssage is canceled or a new message is sent. Messages
|
||||
* sent with the sibc module are identified with a sender ID.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The sibc module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +48,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: sibc.h,v 1.5 2007/03/19 22:10:17 adamdunkels Exp $
|
||||
* $Id: sibc.h,v 1.6 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -69,3 +89,5 @@ void sibc_cancel(struct sibc_conn *c);
|
|||
void sibc_set_timer(struct sibc_conn *c, clock_time_t t);
|
||||
|
||||
#endif /* __SIBC_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimesuc
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +33,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: suc.c,v 1.8 2007/03/29 23:18:22 adamdunkels Exp $
|
||||
* $Id: suc.c,v 1.9 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Stubborn unicast
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -55,8 +60,9 @@ static void
|
|||
recv_from_uc(struct uc_conn *uc, rimeaddr_t *from)
|
||||
{
|
||||
register struct suc_conn *c = (struct suc_conn *)uc;
|
||||
PRINTF("%d: suc: recv_from_uc from %d %p\n",
|
||||
rimeaddr_node_addr.u16, from->u16, c);
|
||||
PRINTF("%d.%d: suc: recv_from_uc from %d.%d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
from->u8[0], from->u8[1]);
|
||||
if(c->u->recv != NULL) {
|
||||
c->u->recv(c, from);
|
||||
}
|
||||
|
@ -87,8 +93,9 @@ send(void *ptr)
|
|||
{
|
||||
struct suc_conn *c = ptr;
|
||||
|
||||
PRINTF("%d: suc: resend to %d\n",
|
||||
rimeaddr_node_addr.u16, c->receiver.u16);
|
||||
PRINTF("%d.%d: suc: resend to %d.%d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
c->receiver.u8[0], c->receiver.u8[1]);
|
||||
queuebuf_to_rimebuf(c->buf);
|
||||
uc_send(&c->c, &c->receiver);
|
||||
suc_set_timer(c, CLOCK_SECOND);
|
||||
|
@ -116,7 +123,9 @@ suc_send_stubborn(struct suc_conn *c, rimeaddr_t *receiver)
|
|||
rimeaddr_copy(&c->receiver, receiver);
|
||||
ctimer_set(&c->t, CLOCK_SECOND, send, c);
|
||||
|
||||
PRINTF("%d: suc_send_stubborn to %d\n", rimeaddr_node_addr.u16, c->receiver.u16);
|
||||
PRINTF("%d.%d: suc_send_stubborn to %d.%d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
c->receiver.u8[0],c->receiver.u8[1]);
|
||||
uc_send(&c->c, &c->receiver);
|
||||
if(c->u->sent != NULL) {
|
||||
c->u->sent(c);
|
||||
|
@ -129,6 +138,9 @@ suc_send_stubborn(struct suc_conn *c, rimeaddr_t *receiver)
|
|||
int
|
||||
suc_send(struct suc_conn *c, rimeaddr_t *receiver)
|
||||
{
|
||||
PRINTF("%d.%d: suc_send to %d.%d\n",
|
||||
rimeaddr_node_addr.u8[0], rimeaddr_node_addr.u8[1],
|
||||
receiver->u8[0], receiver->u8[1]);
|
||||
return uc_send(&c->c, receiver);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
@ -138,3 +150,4 @@ suc_cancel(struct suc_conn *c)
|
|||
ctimer_stop(&c->t);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimesuc Stubborn unicast
|
||||
* @{
|
||||
*
|
||||
* The suc module takes one packet and sends it repetedly.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The suc module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +45,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: suc.h,v 1.6 2007/03/20 12:27:32 adamdunkels Exp $
|
||||
* $Id: suc.h,v 1.7 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Stubborn unicast header file
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -72,3 +89,5 @@ int suc_send(struct suc_conn *c, rimeaddr_t *receiver);
|
|||
void suc_set_timer(struct suc_conn *c, clock_time_t t);
|
||||
|
||||
#endif /* __SUC_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimetree Tree-based hop-by-hop reliable data collection
|
||||
* @{
|
||||
*
|
||||
* The tree module implements a hop-by-hop reliable data collection
|
||||
* mechanism.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The tree module uses 2 channels; one for neighbor discovery and one
|
||||
* for data packets.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +47,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: tree.h,v 1.5 2007/03/25 12:06:39 adamdunkels Exp $
|
||||
* $Id: tree.h,v 1.6 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Header file for hop-by-hop reliable data collection
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -46,7 +65,7 @@
|
|||
|
||||
struct tree_callbacks {
|
||||
void (* recv)(rimeaddr_t *originator, u8_t seqno,
|
||||
u8_t hops, u8_t retransmissions);
|
||||
u8_t hops);
|
||||
};
|
||||
|
||||
struct tree_conn {
|
||||
|
@ -71,3 +90,5 @@ int tree_depth(struct tree_conn *c);
|
|||
#define TREE_MAX_DEPTH 63
|
||||
|
||||
#endif /* __TREE_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup trickle
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: trickle.c,v 1.3 2007/03/23 10:46:35 adamdunkels Exp $
|
||||
* $Id: trickle.c,v 1.4 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -192,3 +197,4 @@ trickle_send(struct trickle_conn *c, u8_t interval)
|
|||
reset_interval(c);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup trickle Reliable single-source multi-hop flooding
|
||||
* @{
|
||||
*
|
||||
* The trickle module sends a single packet to all nodes on the network.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The trickle module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +45,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: trickle.h,v 1.2 2007/03/21 23:23:02 adamdunkels Exp $
|
||||
* $Id: trickle.h,v 1.3 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -70,3 +87,5 @@ void trickle_close(struct trickle_conn *c);
|
|||
void trickle_send(struct trickle_conn *c, u8_t interval);
|
||||
|
||||
#endif /* __TRICKLE_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimeuabc
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,7 +33,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: uabc.c,v 1.4 2007/03/25 21:44:23 adamdunkels Exp $
|
||||
* $Id: uabc.c,v 1.5 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -118,3 +123,4 @@ uabc_send(struct uabc_conn *c, clock_time_t interval)
|
|||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -4,10 +4,15 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \defgroup uabc Unique Anonymous best effort local area BroadCast
|
||||
* \defgroup rimeuabc Unique anonymous best effort local area broadcast
|
||||
* @{
|
||||
*
|
||||
* Send one packet that is unique within a time interval.
|
||||
* The uabc module sends one anonymous packet that is unique within a
|
||||
* time interval.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The uabc module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -41,7 +46,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: uabc.h,v 1.1 2007/03/20 11:59:55 adamdunkels Exp $
|
||||
* $Id: uabc.h,v 1.2 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
/**
|
||||
* \addtogroup rimeuc
|
||||
* @{
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +33,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: uc.c,v 1.8 2007/03/29 23:18:22 adamdunkels Exp $
|
||||
* $Id: uc.c,v 1.9 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Single-hop unicast
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -96,3 +101,4 @@ uc_send(struct uc_conn *c, rimeaddr_t *receiver)
|
|||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @} */
|
||||
|
|
|
@ -1,3 +1,20 @@
|
|||
/**
|
||||
* \addtogroup rime
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimeuc Single-hop unicast
|
||||
* @{
|
||||
*
|
||||
* The uc module sends a packet to a single receiver.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The uc module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006, Swedish Institute of Computer Science.
|
||||
* All rights reserved.
|
||||
|
@ -28,12 +45,12 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: uc.h,v 1.5 2007/03/19 22:10:17 adamdunkels Exp $
|
||||
* $Id: uc.h,v 1.6 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
* A brief description of what this file is.
|
||||
* Header file for Rime's single-hop unicast
|
||||
* \author
|
||||
* Adam Dunkels <adam@sics.se>
|
||||
*/
|
||||
|
@ -61,3 +78,5 @@ void uc_close(struct uc_conn *c);
|
|||
int uc_send(struct uc_conn *c, rimeaddr_t *receiver);
|
||||
|
||||
#endif /* __UC_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
|
@ -4,10 +4,14 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \defgroup rimeuibc Unique Identified best effort local area Broadcast
|
||||
* \defgroup rimeuibc Unique identified best effort local area broadcast
|
||||
* @{
|
||||
*
|
||||
* Send one packet that is unique within a time interval.
|
||||
* The uibc module sends one packet that is unique within a time interval.
|
||||
*
|
||||
* \section channels Channels
|
||||
*
|
||||
* The uibc module uses 1 channel.
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -41,7 +45,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: uibc.h,v 1.3 2007/03/28 19:51:54 adamdunkels Exp $
|
||||
* $Id: uibc.h,v 1.4 2007/03/31 18:31:29 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue