Contiki 3.x
collect-view.h
1 #ifndef COLLECT_VIEW_H
2 #define COLLECT_VIEW_H
3 
4 #include "contiki-conf.h"
5 #include "net/linkaddr.h"
6 #include "net/rime/collect.h"
7 
8 struct collect_view_data_msg {
9  uint16_t len;
10  uint16_t clock;
11  uint16_t timesynch_time;
12  uint16_t cpu;
13  uint16_t lpm;
14  uint16_t transmit;
15  uint16_t listen;
16  uint16_t parent;
17  uint16_t parent_etx;
18  uint16_t current_rtmetric;
19  uint16_t num_neighbors;
20  uint16_t beacon_interval;
21 
22  uint16_t sensors[10];
23 };
24 
25 void collect_view_construct_message(struct collect_view_data_msg *msg,
26  const linkaddr_t *parent,
27  uint16_t etx_to_parent,
28  uint16_t current_rtmetric,
29  uint16_t num_neighbors,
30  uint16_t beacon_interval);
31 
32 void collect_view_arch_read_sensors(struct collect_view_data_msg *msg);
33 
34 #endif /* COLLECT_VIEW_H */
Header file for hop-by-hop reliable data collection
rtimer_clock_t timesynch_time(void)
Get the current time-synchronized time.
Header file for the Rime address representation