/Zephyr-latest/samples/bluetooth/mesh/src/ |
D | main.c | 56 } onoff; variable 58 /* OnOff messages' transition time and remaining time fields are encoded as an 113 k_work_delayable_remaining_get(&onoff.work)) + in onoff_status_send() 114 onoff.transition_time; in onoff_status_send() 117 * onoff status send the right value on instant transitions. As the in onoff_status_send() 122 net_buf_simple_add_u8(&buf, !onoff.val); in onoff_status_send() 123 net_buf_simple_add_u8(&buf, onoff.val); in onoff_status_send() 126 net_buf_simple_add_u8(&buf, onoff.val); in onoff_status_send() 134 if (onoff.transition_time) { in onoff_timeout() 143 k_work_reschedule(&onoff.work, K_MSEC(onoff.transition_time)); in onoff_timeout() [all …]
|
D | microbit.c | 18 static const struct mb_image onoff[] = { variable 98 1 * MSEC_PER_SEC, onoff, ARRAY_SIZE(onoff)); in board_init() 112 &onoff[val], 1); in board_led_set()
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_nrf2_common.c | 57 struct clock_onoff *onoff = in onoff_start_option() local 60 CONTAINER_OF_ITEM(onoff, onoff->idx, in onoff_start_option() 61 struct clock_config_generic, onoff); in onoff_start_option() 63 onoff->notify = notify; in onoff_start_option() 65 (void)atomic_or(&cfg->flags, BIT(onoff->idx)); in onoff_start_option() 72 struct clock_onoff *onoff = in onoff_stop_option() local 75 CONTAINER_OF_ITEM(onoff, onoff->idx, in onoff_stop_option() 76 struct clock_config_generic, onoff); in onoff_stop_option() 78 (void)atomic_and(&cfg->flags, ~BIT(onoff->idx)); in onoff_stop_option() 136 rc = onoff_manager_init(&cfg->onoff[i].mgr, &transitions); in clock_config_init() [all …]
|
D | clock_control_nrf2_common.h | 13 #include <zephyr/sys/onoff.h> 28 * for each one a separate onoff manager instance is used. 36 struct clock_onoff onoff[_onoff_cnt]; \ 58 * @return 0 on success, negative value when onoff initialization fails. 70 * @return index of the clock configuration onoff option to be activated. 77 * Notifies all relevant onoff managers about the update result. 82 * @param status result to be passed to onoff managers.
|
D | nrf_clock_calibration.h | 9 #include <zephyr/sys/onoff.h> 18 * @param mgrs Pointer to array of onoff managers for HF and LF clocks.
|
D | clock_control_nrf2_hsfll.c | 110 return &dev_data->clk_cfg.onoff[0].mgr; in hsfll_find_mgr() 127 return &dev_data->clk_cfg.onoff[i].mgr; in hsfll_find_mgr() 192 ARRAY_SIZE(dev_data->clk_cfg.onoff), in hsfll_init()
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/ |
D | README.rst | 2 :name: Mesh OnOff Model 5 Control LEDs on a mesh network using the Bluetooth Mesh OnOff model. 11 Each element has a mesh onoff client and server 28 also publish its status on an onoff state change. 36 of onoff clients from 4 to 2. 47 This sample can be found under :zephyr_file:`samples/boards/nordic/mesh/onoff-app` in the 53 :zephyr-app: samples/boards/nordic/mesh/onoff-app 83 health, and onoff. The secondary elements only 84 have models for onoff. The meshctl target for configuration must be the 91 The meshctl utility also supports a onoff model client that can be used to [all …]
|
D | sample.yaml | 4 sample.bluetooth.mesh.onoff:
|
D | CMakeLists.txt | 7 project(onoff-app)
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/ |
D | README.rst | 5 Setup a Bluetooth Mesh node with various models (generic OnOff, generic Level, ...). 12 - Generic OnOff Server 13 - Generic OnOff Client 18 - Generic Power OnOff Server 19 - Generic Power OnOff Setup Server 20 - Generic Power OnOff Client 43 * LED1 is associated with generic OnOff Server's state which is part of Root element 47 * Button1 and Button2 are associated with gen. OnOff Client or Vendor Model which is part of Root e… 108 The meshctl utility also supports a onoff model client that can be used to 111 that has that LED's model and issuing the onoff command.
|
/Zephyr-latest/samples/bluetooth/mesh/ |
D | README.rst | 16 On boards with LEDs, a Generic OnOff Server model exposes functionality for 19 On boards with buttons, a Generic OnOff Client model will send Onoff messages 61 device an Application key and bind it to both Generic OnOff models. 66 Once provisioned, messages to the Generic OnOff Server will be used to turn 67 the LED on or off, and button presses will be used to broadcast OnOff
|
/Zephyr-latest/tests/lib/onoff/ |
D | testcase.yaml | 2 libraries.onoff: 4 - onoff
|
D | CMakeLists.txt | 5 project(onoff) project
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | state_binding.h | 1 /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models 12 ONOFF, enumerator
|
D | state_binding.c | 1 /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models 113 case ONOFF: { in set_target() 114 uint8_t onoff; in set_target() local 116 onoff = *((uint8_t *) dptr); in set_target() 117 if (onoff == STATE_OFF) { in set_target() 119 } else if (onoff == STATE_ON) { in set_target() 176 case ONOFF: in get_current() 208 case ONOFF: in get_target()
|
D | no_transition_work_handler.h | 1 /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
|
D | publisher.h | 1 /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
|
D | transition.h | 1 /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
|
/Zephyr-latest/soc/nordic/nrf54h/gpd/ |
D | Kconfig | 8 select ONOFF
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/ |
D | common.h | 1 /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
|
D | app_gpio.h | 1 /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
|
D | storage.h | 1 /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | ipso_buzzer.c | 55 bool onoff; /* toggle from resource */ member 159 if (!buzzer_data[i].onoff && buzzer_data[i].active) { in onoff_post_write_cb() 161 } else if (buzzer_data[i].onoff && !buzzer_data[i].active) { in onoff_post_write_cb() 214 true, &buzzer_data[avail].onoff, in buzzer_create() 215 sizeof(buzzer_data[avail].onoff), in buzzer_create()
|
/Zephyr-latest/lib/utils/ |
D | CMakeLists.txt | 13 zephyr_sources_ifdef(CONFIG_ONOFF onoff.c)
|
/Zephyr-latest/soc/nordic/common/ |
D | Kconfig | 17 select ONOFF
|