ESP-IDF
bt_mesh_light_hsl_srv::state
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (4/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
bt_mesh_light_hsl_srv::state
bt_mesh_light_hsl_srv::state field
Syntax
Show:
Summary
Declaration
from
lighting_server.h:120
struct
bt_mesh_light_hsl_state
*
state
;
Examples
References
from
examples
Code
Location
Referrer
struct
bt_mesh_light_hsl_state
*
state
;
lighting_server.h:120
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
lightness
)
;
lighting_server.c:1113
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
hue
)
;
lighting_server.c:1114
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
saturation
)
;
lighting_server.c:1115
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
target_lightness
)
;
lighting_server.c:1121
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
target_hue
)
;
lighting_server.c:1122
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
target_saturation
)
;
lighting_server.c:1123
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
lightness_default
)
;
lighting_server.c:1134
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
hue_default
)
;
lighting_server.c:1135
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
saturation_default
)
;
lighting_server.c:1136
send_light_hsl_status()
net_buf_simple_add_u8
(
msg
,
srv
->
state
->
status_code
)
;
lighting_server.c:1147
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
hue_range_min
)
;
lighting_server.c:1148
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
hue_range_max
)
;
lighting_server.c:1149
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
saturation_range_min
)
;
lighting_server.c:1150
send_light_hsl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
saturation_range_max
)
;
lighting_server.c:1151
send_light_hsl_status()
if
(
srv
->
state
==
NULL
)
{
lighting_server.c:1212
light_hsl_get()
if
(
srv
->
state
==
NULL
)
{
lighting_server.c:1286
light_hsl_publish()
if
(
srv
==
NULL
||
srv
->
state
==
NULL
)
{
lighting_server.c:1334
light_hsl_set()
srv
->
state
->
target_lightness
=
lightness
;
lighting_server.c:1378
light_hsl_set()
if
(
srv
->
state
->
hue_range_min
&&
hue
<
srv
->
state
->
hue_range_min
)
{
lighting_server.c:1379
light_hsl_set()
hue
=
srv
->
state
->
hue_range_min
;
lighting_server.c:1380
light_hsl_set()
}
else
if
(
srv
->
state
->
hue_range_max
&&
hue
>
srv
->
state
->
hue_range_max
)
{
lighting_server.c:1381
light_hsl_set()
hue
=
srv
->
state
->
hue_range_max
;
lighting_server.c:1382
light_hsl_set()
srv
->
state
->
target_hue
=
hue
;
lighting_server.c:1384
light_hsl_set()
if
(
srv
->
state
->
saturation_range_min
&&
saturation
<
srv
->
state
->
saturation_range_min
)
{
lighting_server.c:1385
light_hsl_set()
saturation
=
srv
->
state
->
saturation_range_min
;
lighting_server.c:1386
light_hsl_set()
}
else
if
(
srv
->
state
->
saturation_range_max
&&
saturation
>
srv
->
state
->
saturation_range_max
)
{
lighting_server.c:1387
light_hsl_set()
saturation
=
srv
->
state
->
saturation_range_max
;
lighting_server.c:1388
light_hsl_set()
srv
->
state
->
target_saturation
=
saturation
;
lighting_server.c:1390
light_hsl_set()
if
(
srv
->
state
->
target_lightness
!=
srv
->
state
->
lightness
||
lighting_server.c:1396
light_hsl_set()
srv
->
state
->
target_hue
!=
srv
->
state
->
hue
||
lighting_server.c:1397
light_hsl_set()
srv
->
state
->
target_saturation
!=
srv
->
state
->
saturation
)
{
lighting_server.c:1398
light_hsl_set()
.
hsl_set
.
lightness
=
srv
->
state
->
lightness
,
lighting_server.c:1402
light_hsl_set()
.
hsl_set
.
hue
=
srv
->
state
->
hue
,
lighting_server.c:1403
light_hsl_set()
.
hsl_set
.
saturation
=
srv
->
state
->
saturation
,
lighting_server.c:1404
light_hsl_set()
srv
->
state
->
lightness
=
srv
->
state
->
target_lightness
;
lighting_server.c:1425
light_hsl_set()
srv
->
state
->
hue
=
srv
->
state
->
target_hue
;
lighting_server.c:1426
light_hsl_set()
srv
->
state
->
saturation
=
srv
->
state
->
target_saturation
;
lighting_server.c:1427
light_hsl_set()
if
(
srv
->
state
==
NULL
)
{
lighting_server.c:3001
light_server_init()
if
(
srv
->
state
==
NULL
)
{
lighting_server.c:3321
light_server_deinit()
if
(
srv
->
state
==
NULL
)
{
state_binding.c:230
bt_mesh_update_binding_state()
srv
->
state
->
lightness
=
value
->
light_hsl
.
lightness
;
state_binding.c:236
bt_mesh_update_binding_state()
srv
->
state
->
hue
=
value
->
light_hsl
.
hue
;
state_binding.c:237
bt_mesh_update_binding_state()
srv
->
state
->
saturation
=
value
->
light_hsl
.
saturation
;
state_binding.c:238
bt_mesh_update_binding_state()
if
(
srv
->
state
==
NULL
)
{
state_binding.c:249
bt_mesh_update_binding_state()
srv
->
state
->
lightness
=
value
->
light_hsl_lightness
.
lightness
;
state_binding.c:255
bt_mesh_update_binding_state()
(
(
float
)
(
srv
->
state
->
lightness
-
srv
->
state
->
target_lightness
)
/
srv
->
transition
.
counter
)
;
state_transition.c:187
light_hsl_tt_values()
(
(
float
)
(
srv
->
state
->
hue
-
srv
->
state
->
target_hue
)
/
srv
->
transition
.
counter
)
;
state_transition.c:189
light_hsl_tt_values()
(
(
float
)
(
srv
->
state
->
saturation
-
srv
->
state
->
target_saturation
)
/
srv
->
transition
.
counter
)
;
state_transition.c:191
light_hsl_tt_values()
if
(
srv
==
NULL
||
srv
->
state
==
NULL
||
state_transition.c:681
light_hsl_work_handler()
change
.
hsl_set
.
lightness
=
srv
->
state
->
lightness
;
state_transition.c:694
light_hsl_work_handler()
change
.
hsl_set
.
hue
=
srv
->
state
->
hue
;
state_transition.c:695
light_hsl_work_handler()
change
.
hsl_set
.
saturation
=
srv
->
state
->
saturation
;
state_transition.c:696
light_hsl_work_handler()
srv
->
state
->
lightness
-=
srv
->
tt_delta_lightness
;
state_transition.c:710
light_hsl_work_handler()
srv
->
state
->
hue
-=
srv
->
tt_delta_hue
;
state_transition.c:711
light_hsl_work_handler()
srv
->
state
->
saturation
-=
srv
->
tt_delta_saturation
;
state_transition.c:712
light_hsl_work_handler()
srv
->
state
->
lightness
=
srv
->
state
->
target_lightness
;
state_transition.c:717
light_hsl_work_handler()
srv
->
state
->
hue
=
srv
->
state
->
target_hue
;
state_transition.c:718
light_hsl_work_handler()
srv
->
state
->
saturation
=
srv
->
state
->
target_saturation
;
state_transition.c:719
light_hsl_work_handler()
change
.
hsl_set
.
lightness
=
srv
->
state
->
lightness
;
state_transition.c:722
light_hsl_work_handler()
change
.
hsl_set
.
hue
=
srv
->
state
->
hue
;
state_transition.c:723
light_hsl_work_handler()
change
.
hsl_set
.
saturation
=
srv
->
state
->
saturation
;
state_transition.c:724
light_hsl_work_handler()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
bt_mesh_light_hsl_srv::state
is read by 9 functions:
All items filtered out
bt_mesh_light_hsl_srv::state
send_light_hsl_status()
light_hsl_get()
light_hsl_publish()
light_hsl_set()
light_server_init()
light_server_deinit()
bt_mesh_update_binding_state()
light_hsl_tt_values()
light_hsl_work_handler()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out