nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
gen_loc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef BT_MESH_GEN_LOC_H__
15#define BT_MESH_GEN_LOC_H__
16
17#include <zephyr/bluetooth/mesh.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
29#define BT_MESH_LOC_ALTITUDE_MAX 32765
31#define BT_MESH_LOC_ALTITUDE_UNKNOWN 0x7fff
33#define BT_MESH_LOC_ALTITUDE_TOO_LARGE 0x7ffe
42#define BT_MESH_LOC_FLOOR_NUMBER_MIN (-20)
44#define BT_MESH_LOC_FLOOR_NUMBER_MAX 232
46#define BT_MESH_LOC_FLOOR_NUMBER_GROUND_FLOOR_0 0xfc
48#define BT_MESH_LOC_FLOOR_NUMBER_GROUND_FLOOR_1 0xfd
50#define BT_MESH_LOC_FLOOR_NUMBER_UNKNOWN 0xff
56 double latitude;
58 double longitude;
63 int16_t altitude;
64};
65
69 int16_t north;
71 int16_t east;
73 int16_t altitude;
75 int16_t floor_number;
81 int32_t time_delta;
83 uint32_t precision_mm;
84};
85
87#define BT_MESH_LOC_OP_GLOBAL_GET BT_MESH_MODEL_OP_2(0x82, 0x25)
88#define BT_MESH_LOC_OP_GLOBAL_STATUS BT_MESH_MODEL_OP_1(0x40)
89#define BT_MESH_LOC_OP_GLOBAL_SET BT_MESH_MODEL_OP_1(0x41)
90#define BT_MESH_LOC_OP_GLOBAL_SET_UNACK BT_MESH_MODEL_OP_1(0x42)
91#define BT_MESH_LOC_OP_LOCAL_GET BT_MESH_MODEL_OP_2(0x82, 0x26)
92#define BT_MESH_LOC_OP_LOCAL_STATUS BT_MESH_MODEL_OP_2(0x82, 0x27)
93#define BT_MESH_LOC_OP_LOCAL_SET BT_MESH_MODEL_OP_2(0x82, 0x28)
94#define BT_MESH_LOC_OP_LOCAL_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x29)
95
96#define BT_MESH_LOC_MSG_LEN_GLOBAL_GET 0
97#define BT_MESH_LOC_MSG_LEN_GLOBAL_STATUS 10
98#define BT_MESH_LOC_MSG_LEN_GLOBAL_SET 10
99#define BT_MESH_LOC_MSG_LEN_LOCAL_GET 0
100#define BT_MESH_LOC_MSG_LEN_LOCAL_STATUS 9
101#define BT_MESH_LOC_MSG_LEN_LOCAL_SET 9
104#ifdef __cplusplus
105}
106#endif
107
108#endif /* BT_MESH_GEN_LOC_H__ */
109
double longitude
Definition: gen_loc.h:58
int16_t altitude
Definition: gen_loc.h:63
double latitude
Definition: gen_loc.h:56
Definition: gen_loc.h:54
int16_t altitude
Definition: gen_loc.h:73
bool is_mobile
Definition: gen_loc.h:77
uint32_t precision_mm
Definition: gen_loc.h:83
int16_t floor_number
Definition: gen_loc.h:75
int32_t time_delta
Definition: gen_loc.h:81
int16_t east
Definition: gen_loc.h:71
int16_t north
Definition: gen_loc.h:69
Definition: gen_loc.h:67