Microchip® Advanced Software Framework

    Header file for hop-by-hop reliable data collection
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Data Structures

struct  collect_callbacks
 
struct  collect_conn
 

Macros

#define COLLECT_ANNOUNCEMENTS   1
 
#define COLLECT_ATTRIBUTES
 
#define COLLECT_HOPS_BITS   4
 
#define COLLECT_MAX_DEPTH   (COLLECT_LINK_ESTIMATE_UNIT * 64 - 1)
 
#define COLLECT_MAX_REXMIT_BITS   5
 
#define COLLECT_PACKET_ID_BITS   8
 
#define COLLECT_TTL_BITS   4
 

Enumerations

enum  {
  COLLECT_NO_ROUTER,
  COLLECT_ROUTER
}
 

Functions

void collect_close (struct collect_conn *c)
 
int collect_depth (struct collect_conn *c)
 
void collect_open (struct collect_conn *c, uint16_t channels, uint8_t is_router, const struct collect_callbacks *callbacks)
 
const linkaddr_tcollect_parent (struct collect_conn *c)
 
void collect_print_stats (void)
 
int collect_send (struct collect_conn *c, int rexmits)
 
void collect_set_keepalive (struct collect_conn *c, clock_time_t period)
 
void collect_set_sink (struct collect_conn *c, int should_be_sink)