BlueToe
an alternative GATT/BLE implementation
Loading...
Searching...
No Matches
connection_details.hpp
1#ifndef BLUETOE_LINK_LAYER_CONNECTION_DETAILS_HPP
2#define BLUETOE_LINK_LAYER_CONNECTION_DETAILS_HPP
3
4#include <bluetoe/address.hpp>
5#include <bluetoe/channel_map.hpp>
6#include <cstdint>
7
8namespace bluetoe {
9namespace link_layer {
10
15 {
16 public:
20 connection_details() = default;
21
26 const channel_map& channels,
27 std::uint16_t inter, std::uint16_t lat, std::uint16_t to,
28 unsigned acc );
29
33 const channel_map& channels() const;
34
40 std::uint16_t interval() const;
41
48 std::uint16_t latency() const;
49
55 std::uint16_t timeout() const;
56
65
66 private:
67 channel_map channels_;
68
69 std::uint16_t interval_;
70 std::uint16_t latency_;
71 std::uint16_t timeout_;
72 unsigned accuracy_;
73 };
74
79 {
80 public:
81 connection_addresses() = default;
82
86 connection_addresses( const device_address& local, const device_address& remote );
87
94
101
102 private:
103 device_address local_addr_;
104 device_address remote_addr_;
105 };
106}
107}
108
109#endif
110