Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Tree-based hop-by-hop reliable data collection

The collect module implements a hop-by-hop reliable data collection mechanism.

Channels

The collect module uses 2 channels; one for neighbor discovery and one for data packets.

Data Structures

struct  collect_callbacks
 
struct  collect_conn
 

Files

file  collect.h
 
    Header file for hop-by-hop reliable data collection

 

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)
 

#define COLLECT_ANNOUNCEMENTS   1
#define COLLECT_ATTRIBUTES
Value:
Definition: packetbuf.h:370
#define COLLECT_TTL_BITS
Definition: collect.h:79
#define COLLECT_HOPS_BITS
Definition: collect.h:85
#define PACKETBUF_ATTR_BIT
Definition: packetbuf.h:444
Definition: packetbuf.h:371
Definition: packetbuf.h:372
#define COLLECT_PACKET_ID_BITS
Definition: collect.h:73
Definition: packetbuf.h:363
#define COLLECT_MAX_REXMIT_BITS
Definition: collect.h:91
#define UNICAST_ATTRIBUTES
Definition: unicast.h:69
Definition: packetbuf.h:362
Definition: packetbuf.h:365
#define PACKETBUF_ADDRSIZE
Definition: packetbuf.h:446
Definition: packetbuf.h:379
#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

anonymous enum
Enumerator
COLLECT_NO_ROUTER 
COLLECT_ROUTER 

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_t* collect_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 
)