ESP-IDF
bt_mesh_light_xyl_srv::state
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
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_xyl_srv::state
bt_mesh_light_xyl_srv::state field
Syntax
Show:
Summary
Declaration
from
lighting_server.h:176
struct
bt_mesh_light_xyl_state
*
state
;
Examples
References
from
examples
Code
Location
Referrer
struct
bt_mesh_light_xyl_state
*
state
;
lighting_server.h:176
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
lightness
)
;
lighting_server.c:1795
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
x
)
;
lighting_server.c:1796
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
y
)
;
lighting_server.c:1797
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
target_lightness
)
;
lighting_server.c:1803
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
target_x
)
;
lighting_server.c:1804
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
target_y
)
;
lighting_server.c:1805
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
lightness_default
)
;
lighting_server.c:1816
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
x_default
)
;
lighting_server.c:1817
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
y_default
)
;
lighting_server.c:1818
send_light_xyl_status()
net_buf_simple_add_u8
(
msg
,
srv
->
state
->
status_code
)
;
lighting_server.c:1829
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
x_range_min
)
;
lighting_server.c:1830
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
x_range_max
)
;
lighting_server.c:1831
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
y_range_min
)
;
lighting_server.c:1832
send_light_xyl_status()
net_buf_simple_add_le16
(
msg
,
srv
->
state
->
y_range_max
)
;
lighting_server.c:1833
send_light_xyl_status()
if
(
srv
==
NULL
||
srv
->
state
==
NULL
)
{
lighting_server.c:1866
light_xyl_get()
if
(
srv
->
state
==
NULL
)
{
lighting_server.c:1909
light_xyl_publish()
if
(
srv
==
NULL
||
srv
->
state
==
NULL
)
{
lighting_server.c:1941
light_xyl_set()
srv
->
state
->
target_lightness
=
lightness
;
lighting_server.c:1985
light_xyl_set()
if
(
srv
->
state
->
x_range_min
&&
x
<
srv
->
state
->
x_range_min
)
{
lighting_server.c:1986
light_xyl_set()
x
=
srv
->
state
->
x_range_min
;
lighting_server.c:1987
light_xyl_set()
}
else
if
(
srv
->
state
->
x_range_max
&&
x
>
srv
->
state
->
x_range_max
)
{
lighting_server.c:1988
light_xyl_set()
x
=
srv
->
state
->
x_range_max
;
lighting_server.c:1989
light_xyl_set()
srv
->
state
->
target_x
=
x
;
lighting_server.c:1991
light_xyl_set()
if
(
srv
->
state
->
y_range_min
&&
y
<
srv
->
state
->
y_range_min
)
{
lighting_server.c:1992
light_xyl_set()
y
=
srv
->
state
->
y_range_min
;
lighting_server.c:1993
light_xyl_set()
}
else
if
(
srv
->
state
->
y_range_max
&&
y
>
srv
->
state
->
y_range_max
)
{
lighting_server.c:1994
light_xyl_set()
y
=
srv
->
state
->
y_range_max
;
lighting_server.c:1995
light_xyl_set()
srv
->
state
->
target_y
=
y
;
lighting_server.c:1997
light_xyl_set()
if
(
srv
->
state
->
target_lightness
!=
srv
->
state
->
lightness
||
lighting_server.c:2003
light_xyl_set()
srv
->
state
->
target_x
!=
srv
->
state
->
x
||
lighting_server.c:2004
light_xyl_set()
srv
->
state
->
target_y
!=
srv
->
state
->
y
)
{
lighting_server.c:2005
light_xyl_set()
.
xyl_set
.
lightness
=
srv
->
state
->
lightness
,
lighting_server.c:2009
light_xyl_set()
.
xyl_set
.
x
=
srv
->
state
->
x
,
lighting_server.c:2010
light_xyl_set()
.
xyl_set
.
y
=
srv
->
state
->
y
,
lighting_server.c:2011
light_xyl_set()
srv
->
state
->
lightness
=
srv
->
state
->
target_lightness
;
lighting_server.c:2032
light_xyl_set()
srv
->
state
->
x
=
srv
->
state
->
target_x
;
lighting_server.c:2033
light_xyl_set()
srv
->
state
->
y
=
srv
->
state
->
target_y
;
lighting_server.c:2034
light_xyl_set()
if
(
srv
->
state
==
NULL
)
{
lighting_server.c:3049
light_server_init()
if
(
srv
->
state
==
NULL
)
{
lighting_server.c:3357
light_server_deinit()
if
(
srv
->
state
==
NULL
)
{
state_binding.c:300
bt_mesh_update_binding_state()
srv
->
state
->
lightness
=
value
->
light_xyl_lightness
.
lightness
;
state_binding.c:306
bt_mesh_update_binding_state()
(
(
float
)
(
srv
->
state
->
lightness
-
srv
->
state
->
target_lightness
)
/
srv
->
transition
.
counter
)
;
state_transition.c:215
light_xyl_tt_values()
(
(
float
)
(
srv
->
state
->
x
-
srv
->
state
->
target_x
)
/
srv
->
transition
.
counter
)
;
state_transition.c:217
light_xyl_tt_values()
(
(
float
)
(
srv
->
state
->
y
-
srv
->
state
->
target_y
)
/
srv
->
transition
.
counter
)
;
state_transition.c:219
light_xyl_tt_values()
if
(
srv
==
NULL
||
srv
->
state
==
NULL
||
state_transition.c:845
light_xyl_work_handler()
change
.
xyl_set
.
lightness
=
srv
->
state
->
lightness
;
state_transition.c:858
light_xyl_work_handler()
change
.
xyl_set
.
x
=
srv
->
state
->
x
;
state_transition.c:859
light_xyl_work_handler()
change
.
xyl_set
.
y
=
srv
->
state
->
y
;
state_transition.c:860
light_xyl_work_handler()
srv
->
state
->
lightness
-=
srv
->
tt_delta_lightness
;
state_transition.c:874
light_xyl_work_handler()
srv
->
state
->
x
-=
srv
->
tt_delta_x
;
state_transition.c:875
light_xyl_work_handler()
srv
->
state
->
y
-=
srv
->
tt_delta_y
;
state_transition.c:876
light_xyl_work_handler()
srv
->
state
->
lightness
=
srv
->
state
->
target_lightness
;
state_transition.c:881
light_xyl_work_handler()
srv
->
state
->
x
=
srv
->
state
->
target_x
;
state_transition.c:882
light_xyl_work_handler()
srv
->
state
->
y
=
srv
->
state
->
target_y
;
state_transition.c:883
light_xyl_work_handler()
change
.
xyl_set
.
lightness
=
srv
->
state
->
lightness
;
state_transition.c:886
light_xyl_work_handler()
change
.
xyl_set
.
x
=
srv
->
state
->
x
;
state_transition.c:887
light_xyl_work_handler()
change
.
xyl_set
.
y
=
srv
->
state
->
y
;
state_transition.c:888
light_xyl_work_handler()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
bt_mesh_light_xyl_srv::state
is read by 9 functions:
All items filtered out
bt_mesh_light_xyl_srv::state
send_light_xyl_status()
light_xyl_get()
light_xyl_publish()
light_xyl_set()
light_server_init()
light_server_deinit()
bt_mesh_update_binding_state()
light_xyl_tt_values()
light_xyl_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