/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | state_binding.c | 42 uint16_t constrain_lightness(uint16_t light) in constrain_lightness() argument 44 if (light > 0 && light < ctl->light->range_min) { in constrain_lightness() 45 light = ctl->light->range_min; in constrain_lightness() 46 } else if (light > ctl->light->range_max) { in constrain_lightness() 47 light = ctl->light->range_max; in constrain_lightness() 50 return light; in constrain_lightness() 56 if (ctl->light->target > 0 && in constrain_target_lightness2() 57 ctl->light->target < ctl->light->range_min) { in constrain_target_lightness2() 58 if (ctl->light->delta < 0) { in constrain_target_lightness2() 59 ctl->light->target = 0U; in constrain_target_lightness2() [all …]
|
D | transition.c | 116 ctl->light->delta = in set_transition_values() 117 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values() 121 ctl->light->delta = in set_transition_values() 122 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values() 170 ctl->light->current -= ctl->light->delta; in onoff_work_handler() 173 ctl->light->current = ctl->light->target; in onoff_work_handler() 181 int light; in level_move_lightness_work_handler() local 183 light = 0; in level_move_lightness_work_handler() 185 if (ctl->light->current) { in level_move_lightness_work_handler() 186 light = ctl->light->current + ctl->light->delta; in level_move_lightness_work_handler() [all …]
|
D | no_transition_work_handler.c | 47 if (ctl->light->target != ctl->light->current) { in no_transition_work_handler() 48 ctl->light->current = ctl->light->target; in no_transition_work_handler() 62 if (ctl->light->current) { in no_transition_work_handler() 63 ctl->light->last = ctl->light->current; in no_transition_work_handler()
|
D | device_composition.c | 45 struct lightness light; variable 50 .light = &light, 78 if (ctl->light->current == ctl->light->target) { in gen_onoff_get() 171 if (ctl->light->target != ctl->light->current) { in gen_onoff_set_unack() 179 ctl->light->current = ctl->light->target; in gen_onoff_set_unack() 241 if (ctl->light->target != ctl->light->current) { in gen_onoff_set() 250 ctl->light->current = ctl->light->target; in gen_onoff_set() 287 if (ctl->light->current == ctl->light->target) { in gen_level_get() 377 if (ctl->light->target != ctl->light->current) { in gen_level_set_unack() 385 ctl->light->current = ctl->light->target; in gen_level_set_unack() [all …]
|
D | state_binding.h | 27 uint16_t constrain_lightness(uint16_t light);
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/ |
D | main.c | 26 ctl->light->range_min = LIGHTNESS_MIN; in light_default_var_init() 27 ctl->light->range_max = LIGHTNESS_MAX; in light_default_var_init() 28 ctl->light->last = LIGHTNESS_MAX; in light_default_var_init() 29 ctl->light->def = LIGHTNESS_MAX; in light_default_var_init() 30 ctl->light->target = ctl->light->def; in light_default_var_init() 45 if (ctl->light->range) { in light_default_status_init() 46 ctl->light->range_max = (uint16_t) (ctl->light->range >> 16); in light_default_status_init() 47 ctl->light->range_min = (uint16_t) ctl->light->range; in light_default_status_init() 56 ctl->light->last = constrain_lightness(ctl->light->last); in light_default_status_init() 57 ctl->light->def = constrain_lightness(ctl->light->def); in light_default_status_init() [all …]
|
D | storage.c | 36 settings_save_one("ps/ld", &ctl->light->def, sizeof(ctl->light->def)); in save_def_states() 43 settings_save_one("ps/ll", &ctl->light->last, sizeof(ctl->light->last)); in save_lightness_last_state() 50 settings_save_one("ps/llt", &ctl->light->target, in save_last_target_states() 51 sizeof(ctl->light->target)); in save_last_target_states() 62 ctl->light->range = (uint32_t) ((ctl->light->range_max << 16) | in save_lightness_range() 63 ctl->light->range_min); in save_lightness_range() 65 settings_save_one("ps/lr", &ctl->light->range, in save_lightness_range() 66 sizeof(ctl->light->range)); in save_lightness_range() 140 len = read_cb(cb_arg, &ctl->light->def, in ps_set() 141 sizeof(ctl->light->def)); in ps_set() [all …]
|
/Zephyr-latest/samples/sensor/isl29035/ |
D | README.rst | 5 Get light intensity data from an ISL29035 sensor (polling & trigger mode). 10 If trigger is not enabled the sample displays measured light intensity 13 If trigger is enabled the sample displays light intensity from the 43 [0:00:00.018] Ambient light sense: 365.234 44 [0:00:10.023] Ambient light sense: 361.084 47 [0:00:13.276] Ambient light sense: 302.734 50 [0:00:14.619] Ambient light sense: 247.62 53 [0:00:16.141] Ambient light sense: 187.927 56 [0:00:16.410] Ambient light sense: 126.953 59 [0:00:17.843] Ambient light sense: 181.03 [all …]
|
/Zephyr-latest/samples/boards/espressif/light_sleep/ |
D | README.rst | 1 .. zephyr:code-sample:: esp32-light-sleep 4 Use light sleep mode on ESP32 to save power while preserving the state of the memory, CPU, and 10 This example illustrates usage of light sleep mode. Unlike deep sleep mode, 11 light sleep preserves the state of the memory, CPU, and peripherals. Execution 13 When the chip exits light sleep mode, execution continues at the point where it 45 about 500 ms, after the second wakeup from light sleep. The program has 52 Entering light sleep 53 Returned from light sleep, reason: timer, t=3344 ms, slept for 2001 ms 54 Entering light sleep 55 Returned from light sleep, reason: timer, t=5354 ms, slept for 2000 ms [all …]
|
/Zephyr-latest/samples/sensor/apds9960/ |
D | README.rst | 2 :name: APDS9960 RGB, ambient light, and gesture sensor 5 Get ambient light, RGB, and proximity/gesture data from an APDS9960 sensor. 11 ambient light, RGB, and proximity (or gesture) data. This sample checks the 32 ambient light intensity without trigger is 387 34 ambient light intensity without trigger is 386 36 ambient light intensity without trigger is 386
|
/Zephyr-latest/drivers/sensor/rohm/bh1750/ |
D | Kconfig | 1 # BH1750 ambient light sensor configuration options 7 bool "BH1750 ambient light sensor" 12 Enable driver for BH1750 ambient light sensor.
|
/Zephyr-latest/drivers/sensor/vishay/veml7700/ |
D | Kconfig | 4 # Vishay VEML7700 ambient light sensor driver options. 7 bool "Vishay VEML7700 ambient light sensor" 12 Enable Vishay VEML7700 ambient light sensor driver.
|
/Zephyr-latest/drivers/sensor/renesas/isl29035/ |
D | Kconfig | 1 # ISL29035 light sensor configuration options 7 bool "ISL29035 light sensor" 12 Enable driver for the ISL29035 light sensor. 47 The sampling period of the internal ADC of the light sensor. 69 configured either for either ambient light or infrared sensing. 72 bool "ambient light" 74 Sensing mode for ambient light spectrum. 89 Only available for ambient light sensing mode.
|
/Zephyr-latest/drivers/sensor/ti/opt3001/ |
D | Kconfig | 1 # OPT3001 light sensor configuration options 12 Enable driver for OPT3001 light sensors.
|
/Zephyr-latest/drivers/sensor/maxim/max44009/ |
D | Kconfig | 1 # MAX44009 light sensor configuration options 12 Enable driver for MAX44009 light sensors.
|
/Zephyr-latest/drivers/sensor/ltrf216a/ |
D | Kconfig | 1 # LTR-F216A light sensor configuration options 12 Enable driver for LiteOn LTR-F216A light sensors.
|
/Zephyr-latest/doc/_doxygen/ |
D | doxygen-awesome-zephyr.css | 11 --primary-light-color: #cb99f6; 29 html:not(.light-mode) { 34 --primary-light-color: #7929d2; 50 --primary-light-color: #7929d2;
|
/Zephyr-latest/samples/sensor/grove_light/boards/ |
D | nrf52dk_nrf52832.overlay | 9 compatible = "seeed,grove-light";
|
/Zephyr-latest/samples/sensor/max30101/ |
D | README.rst | 17 enable the green LED and measure the reflected light with a photodiode. The raw 19 sample) is required to extract a heart rate signal from the light measurement.
|
/Zephyr-latest/drivers/sensor/ams/tsl2561/ |
D | Kconfig | 5 bool "OSRAM-AMS TSL2561 light sensor"
|
/Zephyr-latest/drivers/sensor/apds9306/ |
D | Kconfig | 11 Enable the driver for the APDS9306 digital light sensor.
|
D | apds9306.c | 49 uint32_t light; member 130 data->light = sys_get_le24(buffer); in apds9306_worker() 132 LOG_DBG("Last measurement: %u", data->light); in apds9306_worker() 259 value->val1 = data->light; in apds9306_channel_get()
|
/Zephyr-latest/samples/sensor/vcnl4040/ |
D | README.rst | 5 Get proximity and ambient light data from a VCNL4040 sensor (polling & trigger mode). 10 This sample periodically measures proximity and light for
|
/Zephyr-latest/samples/boards/microchip/mec15xxevb_assy6853/power_management/ |
D | README.rst | 10 It showcase simple app that allows to enter into light and deep sleep.
|
/Zephyr-latest/tests/drivers/build_all/sensor/ |
D | adc.dtsi | 110 test_seeed_grove_light: seeed-grove-light { 111 compatible = "seeed,grove-light";
|