wifimon
/build/rock-master-18.09-drivers-orogen-wifimon-0.20171014/wifiTypes.h
Go to the documentation of this file.
1 #ifndef WIFIMON_TYPES_HH
2 #define WIFIMON_TYPES_HH
3 
4 #ifndef __orogen
5 #include <stdint.h>
6 #include <string.h>
7 #endif
8 
9 #include <base/Time.hpp>
10 
11 namespace wifimon {
12  struct Status {
13  base::Time time;
14 
16  uint8_t associated;
18  uint8_t ap[6];
20  uint32_t rate;
21 
22  // link quality, in [0, 1]
23  float quality;
24 
25  // total packet drop count at the MAC level
26  uint16_t drops;
27 
28 #ifndef __orogen
30  {
31  memset(this, 0, sizeof(Status));
32  }
33 #endif
34  };
35 }
36 
37 #endif
38 
uint16_t drops
Definition: wifiTypes.h:26
uint8_t associated
true if the interface is associated
Definition: wifiTypes.h:16
uint8_t ap[6]
the currently associate AP
Definition: wifiTypes.h:18
Definition: Monitor.hpp:7
uint32_t rate
the bit rate in bps
Definition: wifiTypes.h:20
float quality
Definition: wifiTypes.h:23
base::Time time
Definition: wifiTypes.h:13
Status()
Definition: wifiTypes.h:29
Definition: wifiTypes.h:12