ESP-IDF
Select one of the symbols to view example projects that use it.
Symbol previews are coming soon...
Outline
#define _STATE_BINDING_H_
#include "mesh/access.h"
bt_mesh_server_state_type_t
GENERIC_ONOFF_STATE
GENERIC_LEVEL_STATE
GENERIC_ONPOWERUP_STATE
GENERIC_POWER_ACTUAL_STATE
LIGHT_LIGHTNESS_ACTUAL_STATE
LIGHT_LIGHTNESS_LINEAR_STATE
LIGHT_CTL_LIGHTNESS_STATE
LIGHT_CTL_TEMP_DELTA_UV_STATE
LIGHT_HSL_STATE
LIGHT_HSL_LIGHTNESS_STATE
LIGHT_HSL_HUE_STATE
LIGHT_HSL_SATURATION_STATE
LIGHT_XYL_LIGHTNESS_STATE
LIGHT_LC_LIGHT_ONOFF_STATE
BIND_STATE_MAX
bt_mesh_server_state_value_t
<anonymous struct>
onoff
gen_onoff
<anonymous struct>
level
gen_level
<anonymous struct>
onpowerup
gen_onpowerup
<anonymous struct>
power
gen_power_actual
<anonymous struct>
lightness
light_lightness_actual
<anonymous struct>
lightness
light_lightness_linear
<anonymous struct>
lightness
light_ctl_lightness
<anonymous struct>
temperature
delta_uv
light_ctl_temp_delta_uv
<anonymous struct>
lightness
hue
saturation
light_hsl
<anonymous struct>
lightness
light_hsl_lightness
<anonymous struct>
hue
light_hsl_hue
<anonymous struct>
saturation
light_hsl_saturation
<anonymous struct>
lightness
light_xyl_lightness
<anonymous struct>
onoff
light_lc_light_onoff
bt_mesh_convert_lightness_actual_to_linear(uint16_t);
bt_mesh_convert_lightness_linear_to_actual(uint16_t);
bt_mesh_convert_temperature_to_gen_level(uint16_t, uint16_t, uint16_t);
bt_mesh_covert_gen_level_to_temperature(int16_t, uint16_t, uint16_t);
bt_mesh_convert_hue_to_level(uint16_t);
bt_mesh_convert_level_to_hue(int16_t);
bt_mesh_convert_saturation_to_level(uint16_t);
bt_mesh_convert_level_to_saturation(int16_t);
bt_mesh_update_binding_state(struct bt_mesh_model *, bt_mesh_server_state_type_t, bt_mesh_server_state_value_t *);
Files
loading (4/5)...
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
components/bt/esp_ble_mesh/models/server/include/mesh/state_binding.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
*
* SPDX-FileCopyrightText: 2018 Vikrant More
* SPDX-FileContributor: 2018-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/* ... */
#ifndef
_STATE_BINDING_H_
#define
_STATE_BINDING_H_
#include
"
mesh
/
access.h"
#ifdef
__cplusplus
extern
"C"
{
#endif
typedef
enum
{
GENERIC_ONOFF_STATE
,
GENERIC_LEVEL_STATE
,
GENERIC_ONPOWERUP_STATE
,
GENERIC_POWER_ACTUAL_STATE
,
LIGHT_LIGHTNESS_ACTUAL_STATE
,
LIGHT_LIGHTNESS_LINEAR_STATE
,
LIGHT_CTL_LIGHTNESS_STATE
,
LIGHT_CTL_TEMP_DELTA_UV_STATE
,
LIGHT_HSL_STATE
,
LIGHT_HSL_LIGHTNESS_STATE
,
LIGHT_HSL_HUE_STATE
,
LIGHT_HSL_SATURATION_STATE
,
LIGHT_XYL_LIGHTNESS_STATE
,
LIGHT_LC_LIGHT_ONOFF_STATE
,
BIND_STATE_MAX
,
}
{ ... }
bt_mesh_server_state_type_t
;
typedef
union
{
struct
{
uint8_t
onoff
;
}
{ ... }
gen_onoff
;
struct
{
int16_t
level
;
}
{ ... }
gen_level
;
struct
{
uint8_t
onpowerup
;
}
{ ... }
gen_onpowerup
;
struct
{
uint16_t
power
;
}
{ ... }
gen_power_actual
;
struct
{
uint16_t
lightness
;
}
{ ... }
light_lightness_actual
;
struct
{
uint16_t
lightness
;
}
{ ... }
light_lightness_linear
;
struct
{
uint16_t
lightness
;
}
{ ... }
light_ctl_lightness
;
struct
{
uint16_t
temperature
;
int16_t
delta_uv
;
}
{ ... }
light_ctl_temp_delta_uv
;
struct
{
uint16_t
lightness
;
uint16_t
hue
;
uint16_t
saturation
;
}
{ ... }
light_hsl
;
struct
{
uint16_t
lightness
;
}
{ ... }
light_hsl_lightness
;
struct
{
uint16_t
hue
;
}
{ ... }
light_hsl_hue
;
struct
{
uint16_t
saturation
;
}
{ ... }
light_hsl_saturation
;
struct
{
uint16_t
lightness
;
}
{ ... }
light_xyl_lightness
;
struct
{
uint8_t
onoff
;
}
{ ... }
light_lc_light_onoff
;
}
{ ... }
bt_mesh_server_state_value_t
;
uint16_t
bt_mesh_convert_lightness_actual_to_linear
(
uint16_t
actual
)
;
uint16_t
bt_mesh_convert_lightness_linear_to_actual
(
uint16_t
linear
)
;
int16_t
bt_mesh_convert_temperature_to_gen_level
(
uint16_t
temp
,
uint16_t
min
,
uint16_t
max
)
;
uint16_t
bt_mesh_covert_gen_level_to_temperature
(
int16_t
level
,
uint16_t
min
,
uint16_t
max
)
;
int16_t
bt_mesh_convert_hue_to_level
(
uint16_t
hue
)
;
uint16_t
bt_mesh_convert_level_to_hue
(
int16_t
level
)
;
int16_t
bt_mesh_convert_saturation_to_level
(
uint16_t
saturation
)
;
uint16_t
bt_mesh_convert_level_to_saturation
(
int16_t
level
)
;
int
bt_mesh_update_binding_state
(
struct
bt_mesh_model
*
model
,
bt_mesh_server_state_type_t
type
,
bt_mesh_server_state_value_t
*
value
)
;
#ifdef
__cplusplus
}
{...}
#endif
/* ... */
#endif
/* _STATE_BINDING_H_ */
Details
Show:
from
Types:
Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.
bt_mesh_update_binding_state()
bt_mesh_convert_lightness_actual_to_linear()
bt_mesh_convert_lightness_linear_to_actual()
bt_mesh_convert_temperature_to_gen_level()
bt_mesh_covert_gen_level_to_temperature()
bt_mesh_convert_hue_to_level()
bt_mesh_convert_level_to_hue()
bt_mesh_convert_saturation_to_level()
bt_mesh_convert_level_to_saturation()
bt_mesh_model
bt_mesh_update_binding_state()::model
bt_mesh_update_binding_state()::value
bt_mesh_server_state_type_t
bt_mesh_server_state_value_t
bt_mesh_update_binding_state()::type
bt_mesh_server_state_value_t::light_hsl
bt_mesh_convert_temperature_to_gen_level()::min
bt_mesh_covert_gen_level_to_temperature()::min
bt_mesh_server_state_value_t::light_ctl_temp_delta_uv
bt_mesh_convert_lightness_actual_to_linear()::actual
bt_mesh_convert_lightness_linear_to_actual()::linear
bt_mesh_convert_temperature_to_gen_level()::temp
bt_mesh_convert_temperature_to_gen_level()::max
bt_mesh_covert_gen_level_to_temperature()::level
bt_mesh_covert_gen_level_to_temperature()::max
bt_mesh_convert_hue_to_level()::hue
bt_mesh_convert_level_to_hue()::level
bt_mesh_convert_saturation_to_level()::saturation
bt_mesh_convert_level_to_saturation()::level
bt_mesh_server_state_type_t::GENERIC_ONOFF_STATE
bt_mesh_server_state_type_t::GENERIC_LEVEL_STATE
bt_mesh_server_state_type_t::GENERIC_ONPOWERUP_STATE
bt_mesh_server_state_type_t::GENERIC_POWER_ACTUAL_STATE
bt_mesh_server_state_type_t::LIGHT_LIGHTNESS_ACTUAL_STATE
bt_mesh_server_state_type_t::LIGHT_LIGHTNESS_LINEAR_STATE
bt_mesh_server_state_type_t::LIGHT_CTL_LIGHTNESS_STATE
bt_mesh_server_state_type_t::LIGHT_CTL_TEMP_DELTA_UV_STATE
bt_mesh_server_state_type_t::LIGHT_HSL_STATE
bt_mesh_server_state_type_t::LIGHT_HSL_LIGHTNESS_STATE
bt_mesh_server_state_type_t::LIGHT_HSL_HUE_STATE
bt_mesh_server_state_type_t::LIGHT_HSL_SATURATION_STATE
bt_mesh_server_state_type_t::LIGHT_XYL_LIGHTNESS_STATE
bt_mesh_server_state_type_t::LIGHT_LC_LIGHT_ONOFF_STATE
bt_mesh_server_state_type_t::BIND_STATE_MAX
bt_mesh_server_state_value_t::
::onoff
bt_mesh_server_state_value_t::gen_onoff
bt_mesh_server_state_value_t::
::level
bt_mesh_server_state_value_t::gen_level
bt_mesh_server_state_value_t::
::onpowerup
bt_mesh_server_state_value_t::gen_onpowerup
bt_mesh_server_state_value_t::
::power
bt_mesh_server_state_value_t::gen_power_actual
bt_mesh_server_state_value_t::
::lightness
bt_mesh_server_state_value_t::light_lightness_actual
bt_mesh_server_state_value_t::
::lightness
bt_mesh_server_state_value_t::light_lightness_linear
bt_mesh_server_state_value_t::
::lightness
bt_mesh_server_state_value_t::light_ctl_lightness
bt_mesh_server_state_value_t::
::temperature
bt_mesh_server_state_value_t::
::delta_uv
bt_mesh_server_state_value_t::
::lightness
bt_mesh_server_state_value_t::
::hue
bt_mesh_server_state_value_t::
::saturation
bt_mesh_server_state_value_t::
::lightness
bt_mesh_server_state_value_t::light_hsl_lightness
bt_mesh_server_state_value_t::
::hue
bt_mesh_server_state_value_t::light_hsl_hue
bt_mesh_server_state_value_t::
::saturation
bt_mesh_server_state_value_t::light_hsl_saturation
bt_mesh_server_state_value_t::
::lightness
bt_mesh_server_state_value_t::light_xyl_lightness
bt_mesh_server_state_value_t::
::onoff
bt_mesh_server_state_value_t::light_lc_light_onoff
_STATE_BINDING_H_
bt_mesh_server_state_type_t
bt_mesh_server_state_value_t