BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
HciInfo.h
1 #pragma once
2 
3 #include <string>
4 
5 #include "net/MACAddress.h"
6 
7 // forward-declaration
8 struct hci_dev_info;
9 
10 namespace BeeeOn {
11 
15 class HciInfo {
16 public:
17  HciInfo(const struct hci_dev_info &info);
18 
19  std::string name() const;
20  MACAddress address() const;
21 
22  uint32_t aclMtu() const;
23  uint32_t aclPackets() const;
24 
25  uint32_t scoMtu() const;
26  uint32_t scoPackets() const;
27 
28  uint32_t rxErrors() const;
29  uint32_t txErrors() const;
30 
31  uint32_t rxEvents() const;
32  uint32_t txCmds() const;
33 
34  uint32_t rxAcls() const;
35  uint32_t txAcls() const;
36 
37  uint32_t rxScos() const;
38  uint32_t txScos() const;
39 
40  uint32_t rxBytes() const;
41  uint32_t txBytes() const;
42 
43 private:
44  std::string m_name;
45  MACAddress m_address;
46  uint32_t m_aclMtu;
47  uint32_t m_scoMtu;
48  uint32_t m_aclPackets;
49  uint32_t m_scoPackets;
50  uint32_t m_rxErrors;
51  uint32_t m_txErrors;
52  uint32_t m_rxEvents;
53  uint32_t m_txCmds;
54  uint32_t m_rxAcls;
55  uint32_t m_txAcls;
56  uint32_t m_rxScos;
57  uint32_t m_txScos;
58  uint32_t m_rxBytes;
59  uint32_t m_txBytes;
60 };
61 
62 }
Definition: MACAddress.h:8
Definition: HciInfo.h:15