nRF Connect SDK API
2.8.99
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
20
extern
"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
54
struct
bt_mesh_loc_global
{
56
double
latitude
;
58
double
longitude
;
63
int16_t
altitude
;
64
};
65
67
struct
bt_mesh_loc_local
{
69
int16_t
north
;
71
int16_t
east
;
73
int16_t
altitude
;
75
int16_t
floor_number
;
77
bool
is_mobile
;
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
bt_mesh_loc_global::longitude
double longitude
Definition
gen_loc.h:58
bt_mesh_loc_global::altitude
int16_t altitude
Definition
gen_loc.h:63
bt_mesh_loc_global::latitude
double latitude
Definition
gen_loc.h:56
bt_mesh_loc_global
Definition
gen_loc.h:54
bt_mesh_loc_local::altitude
int16_t altitude
Definition
gen_loc.h:73
bt_mesh_loc_local::is_mobile
bool is_mobile
Definition
gen_loc.h:77
bt_mesh_loc_local::precision_mm
uint32_t precision_mm
Definition
gen_loc.h:83
bt_mesh_loc_local::floor_number
int16_t floor_number
Definition
gen_loc.h:75
bt_mesh_loc_local::time_delta
int32_t time_delta
Definition
gen_loc.h:81
bt_mesh_loc_local::east
int16_t east
Definition
gen_loc.h:71
bt_mesh_loc_local::north
int16_t north
Definition
gen_loc.h:69
bt_mesh_loc_local
Definition
gen_loc.h:67
include
bluetooth
mesh
gen_loc.h
Generated on Tue Nov 5 2024 14:27:08 for nRF Connect SDK API by
1.12.0