Home
last modified time | relevance | path

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

/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/
Dmain.c453 struct switch_data *button_sw = CONTAINER_OF(work, struct switch_data, button_timer); in button_cnt_timer() local
455 button_sw->onoff_state = button_press_cnt == 1U ? 1 : 0; in button_cnt_timer()
457 button_press_cnt, button_sw->onoff_state); in button_cnt_timer()
470 struct switch_data *button_sw = CONTAINER_OF(work, struct switch_data, button_work); in button_pressed_worker() local
472 uint8_t sw_idx = button_sw->sw_num; in button_pressed_worker()
500 net_buf_simple_add_u8(&msg, button_sw->onoff_state); in button_pressed_worker()
510 pub_cli->addr, button_sw->onoff_state, sw_idx); in button_pressed_worker()
513 net_buf_simple_add_u8(pub_cli->msg, button_sw->onoff_state); in button_pressed_worker()