Home
last modified time | relevance | path

Searched refs:switch_data (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/net/lib/lwm2m/
Dipso_onoff_switch.c54 static struct ipso_switch_data switch_data[MAX_INSTANCE_COUNT]; variable
102 if (switch_data[i].state) { in state_post_write_cb()
104 switch_data[i].off_time_sec = 0; in state_post_write_cb()
105 if (!switch_data[i].last_state) { in state_post_write_cb()
107 switch_data[i].counter++; in state_post_write_cb()
108 if (switch_data[i].counter < 0) { in state_post_write_cb()
109 switch_data[i].counter = 0; in state_post_write_cb()
114 switch_data[i].on_time_sec = 0; in state_post_write_cb()
117 switch_data[i].last_state = switch_data[i].state; in state_post_write_cb()
118 switch_data[i].trigger_offset = k_uptime_get(); in state_post_write_cb()
[all …]
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/
Dmain.c259 struct switch_data { struct
268 static struct switch_data sw; argument
453 struct switch_data *button_sw = CONTAINER_OF(work, struct switch_data, button_timer); in button_cnt_timer()
470 struct switch_data *button_sw = CONTAINER_OF(work, struct switch_data, button_work); in button_pressed_worker()