nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
light_ctrl_reg_spec.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
14#ifndef BT_MESH_LIGHT_CTRL_REG_SPEC_H__
15#define BT_MESH_LIGHT_CTRL_REG_SPEC_H__
16
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
27#define BT_MESH_LIGHT_CTRL_REG_SPEC_INIT \
28 { \
29 .reg = { \
30 .init = bt_mesh_light_ctrl_reg_spec_init, \
31 .start = bt_mesh_light_ctrl_reg_spec_start, \
32 .stop = bt_mesh_light_ctrl_reg_spec_stop \
33 } \
34 }
35
41 struct k_work_delayable timer;
43 float i;
45 bool enabled;
46 /* If true, internal integral sum can be negative until it becomes positive. */
47 bool neg;
48};
49
51void bt_mesh_light_ctrl_reg_spec_init(struct bt_mesh_light_ctrl_reg *reg);
52void bt_mesh_light_ctrl_reg_spec_start(struct bt_mesh_light_ctrl_reg *reg, uint16_t lightness);
53void bt_mesh_light_ctrl_reg_spec_stop(struct bt_mesh_light_ctrl_reg *reg);
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* BT_MESH_LIGHT_CTRL_REG_SPEC_H__ */
61
struct k_work_delayable timer
Definition: light_ctrl_reg_spec.h:41
bool enabled
Definition: light_ctrl_reg_spec.h:45
bool neg
Definition: light_ctrl_reg_spec.h:47
struct bt_mesh_light_ctrl_reg reg
Definition: light_ctrl_reg_spec.h:39
float i
Definition: light_ctrl_reg_spec.h:43
Definition: light_ctrl_reg_spec.h:37
Definition: light_ctrl_reg.h:41