Home
last modified time | relevance | path

Searched refs:pressed (Results 1 – 25 of 59) sorted by relevance

123

/Zephyr-latest/tests/drivers/kscan/kscan_input/src/
Dmain.c24 bool pressed; member
29 bool pressed) in kscan_callback() argument
31 TC_PRINT("row = %u col = %u %d\n", row, col, pressed); in kscan_callback()
36 last_cb_val.pressed = pressed; in kscan_callback()
54 zassert_equal(last_cb_val.pressed, true); in ZTEST()
60 zassert_equal(last_cb_val.pressed, true); in ZTEST()
66 zassert_equal(last_cb_val.pressed, false); in ZTEST()
/Zephyr-latest/drivers/kscan/
Dkscan_input.c23 bool pressed; member
39 data->pressed = evt->value; in kscan_input_cb()
45 data->row, data->col, data->pressed); in kscan_input_cb()
47 data->callback(dev, data->row, data->col, data->pressed); in kscan_input_cb()
/Zephyr-latest/drivers/input/
Dinput_sdl_touch_bottom.c17 data->pressed = false; in sdl_filter()
21 data->pressed = true; in sdl_filter()
Dinput_ft5336.c92 bool pressed; in ft5336_process() local
120 pressed = true; in ft5336_process()
124 pressed = false; in ft5336_process()
129 pressed = false; in ft5336_process()
132 if (pressed) { in ft5336_process()
135 } else if (data->pressed_old && !pressed) { in ft5336_process()
138 data->pressed_old = pressed; in ft5336_process()
Dinput_xpt2046.c36 bool pressed; member
110 if (!data->pressed) { in xpt2046_release_handler()
116 data->pressed = false; in xpt2046_release_handler()
165 bool pressed = meas.z > config->threshold; in xpt2046_work_handler() local
170 if (pressed) { in xpt2046_work_handler()
179 data->pressed = pressed; in xpt2046_work_handler()
Dinput_sdl_touch_bottom.h28 bool pressed; member
Dinput_cf1133.c90 uint8_t pressed : 1; member
211 data->pressed = true; in cf1133_process()
226 data->pressed = false; in cf1133_process()
235 data->pressed_old = data->pressed; in cf1133_process()
Dinput_sdl_touch.c24 if (data->pressed) { in sdl_input_callback()
Dinput_cst816s.c116 bool pressed; in cst816s_process() local
145 pressed = (event == EVENT_PRESS_DOWN) || (event == EVENT_CONTACT); in cst816s_process()
149 if (pressed) { in cst816s_process()
/Zephyr-latest/samples/drivers/kscan/src/
Dmain.c123 bool pressed) in kb_callback() argument
128 LOG_INF("Key code = %u Pressed = %u\n", last_key, pressed); in kb_callback()
130 if (pressed) { in kb_callback()
/Zephyr-latest/subsys/input/
Dinput_keymap.c29 bool pressed; member
48 data->pressed = evt->value; in keymap_cb()
69 LOG_DBG("input event: %3u %3u %d", data->row, data->col, data->pressed); in keymap_cb()
71 input_report_key(dev, codes[offset], data->pressed, true, K_FOREVER); in keymap_cb()
/Zephyr-latest/samples/drivers/ht16k33/src/
Dmain.c19 uint32_t column, bool pressed) in keyscan_callback() argument
22 pressed ? "pressed" : "released"); in keyscan_callback()
/Zephyr-latest/tests/drivers/kscan/kscan_api/src/
Dtest_kscan.c14 bool pressed) in kb_callback() argument
19 ARG_UNUSED(pressed); in kb_callback()
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dreel_board.c58 static bool pressed; variable
435 pressed = false; in long_press()
450 if (button_is_pressed() == pressed) { in button_interrupt()
454 pressed = !pressed; in button_interrupt()
455 printk("Button %s\n", pressed ? "pressed" : "released"); in button_interrupt()
457 if (pressed) { in button_interrupt()
612 pressed = button_is_pressed(); in board_init()
613 if (pressed) { in board_init()
/Zephyr-latest/samples/subsys/input/draw_touch_events/src/
Dmain.c46 bool pressed; member
58 touch_point.pressed = evt->value; in touch_event_callback()
143 LOG_INF("TOUCH %s X, Y: (%d, %d)", touch_point.pressed ? "PRESS" : "RELEASE", in main()
/Zephyr-latest/samples/subsys/display/lvgl/
DKconfig9 bool "Reset counter when sw0 is pressed"
/Zephyr-latest/drivers/led/
Dht16k33.c207 bool pressed = false; in ht16k33_process_keyscan_data() local
229 pressed = true; in ht16k33_process_keyscan_data()
244 return pressed; in ht16k33_process_keyscan_data()
253 bool pressed; in ht16k33_irq_thread() local
260 pressed = ht16k33_process_keyscan_data(data->dev); in ht16k33_irq_thread()
262 } while (pressed); in ht16k33_irq_thread()
/Zephyr-latest/include/zephyr/drivers/
Dkscan.h50 bool pressed);
/Zephyr-latest/samples/basic/button/
DREADME.rst11 The sample prints a message to the console each time a button is pressed.
36 will be turned on when the button is pressed, and turned off off when it is
113 the serial console. When the input button gets pressed, the interrupt handler
/Zephyr-latest/samples/boards/espressif/light_sleep/
DREADME.rst19 * ``EXT0``: wake up the chip if a button attached to GPIO0 is pressed (i.e. if
44 In the scenario below, the button attached to GPIO0 was pressed and held for
/Zephyr-latest/samples/boards/nordic/nrfx_prs/
DREADME.rst25 When no button is pressed, every 5 seconds a background transfer using SPIM1
59 When no button is pressed, a background transfer on SPIM1 is performed.
/Zephyr-latest/samples/boards/nordic/dynamic_pinctrl/
DREADME.rst24 If the push button is not pressed, the system does nothing and continues with
25 the default configuration. If the button is pressed, the alternative
/Zephyr-latest/boards/waveshare/rp2040_zero/doc/
Dindex.rst117pressed while you connect the USB port, it will appear on the host as a mass storage device. In al…
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/
DREADME.rst30 If a button is pressed only once within a 1 second interval, it sends an
31 "on" message. If it is pressed more than once, it
/Zephyr-latest/samples/boards/nordic/nrfx/
DREADME.rst49 Connect to the serial port - notice that each time the button is pressed,

123