BlueToe
an alternative GATT/BLE implementation
Loading...
Searching...
No Matches
bluetoe
sensor_location.hpp
1
#ifndef BLUETOE_SENSOR_LOCATION_HPP
2
#define BLUETOE_SENSOR_LOCATION_HPP
3
4
namespace
bluetoe {
5
6
namespace
details {
7
struct
sensor_location_meta_type {};
8
}
9
13
template
< std::u
int
8_t L >
14
struct
sensor_location_tag
15
{
17
struct
meta_type :
18
details::sensor_location_meta_type,
19
details::valid_service_option_meta_type {};
20
21
static
constexpr
std::uint8_t value = L;
23
};
24
30
struct
sensor_location
31
{
33
using
other
=
sensor_location_tag< 0 >
;
35
using
top_of_shoe
=
sensor_location_tag< 1 >
;
37
using
in_shoe
=
sensor_location_tag< 2 >
;
39
using
hip
=
sensor_location_tag< 3 >
;
41
using
front_wheel
=
sensor_location_tag< 4 >
;
43
using
left_crank
=
sensor_location_tag< 5 >
;
45
using
right_crank
=
sensor_location_tag< 6 >
;
47
using
left_pedal
=
sensor_location_tag< 7 >
;
49
using
right_pedal
=
sensor_location_tag< 8 >
;
51
using
front_hub
=
sensor_location_tag< 9 >
;
53
using
rear_dropout
=
sensor_location_tag< 10 >
;
55
using
chainstay
=
sensor_location_tag< 11 >
;
57
using
rear_wheel
=
sensor_location_tag< 12 >
;
59
using
rear_hub
=
sensor_location_tag< 13 >
;
61
using
chest
=
sensor_location_tag< 14 >
;
62
};
63
}
64
65
#endif
bluetoe::sensor_location_tag
type to keep a bluetoe::location value
Definition:
sensor_location.hpp:15
bluetoe::sensor_location
enumeration of sensor_location (org.bluetooth.characteristic.sensor_location)
Definition:
sensor_location.hpp:31
Generated on Thu Sep 7 2023 13:18:52 for BlueToe by
1.9.6