Home
last modified time | relevance | path

Searched refs:onoff (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/drivers/clock_control/
Dclock_control_nrf2_common.c57 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 …]
Dclock_control_nrf2_hsfll.c110 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()
Dclock_control_nrf2_common.h36 struct clock_onoff onoff[_onoff_cnt]; \
Dclock_control_nrf2_fll16m.c144 return &dev_data->clk_cfg.onoff[0].mgr; in fll16m_find_mgr()
167 return &dev_data->clk_cfg.onoff[i].mgr; in fll16m_find_mgr()
251 ARRAY_SIZE(dev_data->clk_cfg.onoff), in fll16m_init()
Dclock_control_nrf2_global_hsfll.c73 return &dev_data->clk_cfg.onoff[0].mgr; in global_hsfll_find_mgr()
90 return &dev_data->clk_cfg.onoff[i].mgr; in global_hsfll_find_mgr()
271 ARRAY_SIZE(dev_data->clk_cfg.onoff), in global_hfsll_init()
Dclock_control_nrf2_lfclk.c116 return &dev_data->clk_cfg.onoff[0].mgr; in lfclk_find_mgr()
135 return &dev_data->clk_cfg.onoff[i].mgr; in lfclk_find_mgr()
259 ARRAY_SIZE(dev_data->clk_cfg.onoff), in lfclk_init()
/Zephyr-latest/samples/bluetooth/mesh/src/
Dmain.c56 } onoff; variable
113 k_work_delayable_remaining_get(&onoff.work)) + in onoff_status_send()
114 onoff.transition_time; 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()
144 onoff.transition_time = 0; in onoff_timeout()
148 board_led_set(onoff.val); in onoff_timeout()
[all …]
Dmicrobit.c18 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/samples/boards/nordic/mesh/onoff-app/
DREADME.rst11 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
94 that has that LED's model and issuing the onoff command.
DCMakeLists.txt7 project(onoff-app)
/Zephyr-latest/subsys/net/lib/lwm2m/
Dipso_buzzer.c55 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/tests/lib/onoff/
DCMakeLists.txt5 project(onoff) project
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dstate_binding.c114 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()
Ddevice_composition.c124 uint8_t tid, onoff, tt, delay; in gen_onoff_set_unack() local
127 onoff = net_buf_simple_pull_u8(buf); in gen_onoff_set_unack()
130 if (onoff > STATE_ON) { in gen_onoff_set_unack()
169 set_target(ONOFF, &onoff); in gen_onoff_set_unack()
193 uint8_t tid, onoff, tt, delay; in gen_onoff_set() local
196 onoff = net_buf_simple_pull_u8(buf); in gen_onoff_set()
199 if (onoff > STATE_ON) { in gen_onoff_set()
239 set_target(ONOFF, &onoff); in gen_onoff_set()
/Zephyr-latest/lib/utils/
DCMakeLists.txt13 zephyr_sources_ifdef(CONFIG_ONOFF onoff.c)
/Zephyr-latest/tests/subsys/pm/power_domain_soc_state_change/
Dapp.overlay33 onoff-power-states = <&state1 &state2>;
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dmesh.c208 uint8_t tid, onoff; in gen_onoff_set_unack() local
211 onoff = net_buf_simple_pull_u8(buf); in gen_onoff_set_unack()
214 if (onoff > STATE_ON) { in gen_onoff_set_unack()
226 state->current = onoff; in gen_onoff_set_unack()
234 if (set_led_state(state->dev_id, onoff)) { in gen_onoff_set_unack()
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/
DREADME.rst108 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/subsys/bluetooth/mesh/shell/
Dshell.c245 bool onoff; in cmd_lpn() local
253 onoff = shell_strtobool(argv[1], 0, &err); in cmd_lpn()
259 if (onoff) { in cmd_lpn()
760 bool onoff; in cmd_pb() local
766 onoff = shell_strtobool(argv[1], 0, &err); in cmd_pb()
772 if (onoff) { in cmd_pb()
/Zephyr-latest/doc/releases/
Drelease-notes-2.2.rst846 * :github:`22462` - onoff: why client must be reinitialized after each transition
861 * :github:`22432` - [Coverity CID :207982] Explicit null dereferenced in tests/lib/onoff/src/main.c
Drelease-notes-2.1.rst520 * :github:`20771` - onoff\_level\_lighting\_vnd\_app mcumgr unable to connect to provisioned node
Drelease-notes-2.4.rst951 * :github:`28326` - Sample boards nrf mesh onoff not working
1690 * :github:`22974` - Add cancel function to onoff service