Home
last modified time | relevance | path

Searched full:pressed (Results 1 – 25 of 92) sorted by relevance

1234

/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/input/
Dinput_ft5336.c77 /** Last pressed state. */
92 bool pressed; in ft5336_process() local
107 * pressed / not pressed and not press down / lift up in ft5336_process()
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_sdl_touch_bottom.c17 data->pressed = false; in sdl_filter()
21 data->pressed = true; in sdl_filter()
Dinput_xpt2046.c36 bool pressed; member
110 if (!data->pressed) { in xpt2046_release_handler()
114 /* Check if touch is still 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
167 /* Don't send any other than "pressed" events. in xpt2046_work_handler()
170 if (pressed) { in xpt2046_work_handler()
179 data->pressed = pressed; in xpt2046_work_handler()
Dinput_cf1133.c88 /* Last pressed state */
90 uint8_t pressed : 1; member
211 data->pressed = true; in cf1133_process()
214 /* Finger pressed */ in cf1133_process()
220 /* Continuous pressed */ in cf1133_process()
226 data->pressed = false; in cf1133_process()
235 data->pressed_old = data->pressed; in cf1133_process()
Dinput_kbd_matrix.c36 * An extra key appears to be pressed when 3 keys belonging to the same in input_kbd_matrix_ghosting()
37 * block are pressed. For example, in the following block: in input_kbd_matrix_ghosting()
44 * the key m would look as pressed if the user pressed keys w, q and a in input_kbd_matrix_ghosting()
57 * a key which was never pressed. In our case, current in input_kbd_matrix_ghosting()
217 * application about the keys pressed. in input_kbd_matrix_update_state()
Dinput_sdl_touch_bottom.h28 bool pressed; member
/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/samples/drivers/ht16k33/src/
Dmain.c19 uint32_t column, bool pressed) in keyscan_callback() argument
22 pressed ? "pressed" : "released"); in keyscan_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/dts/bindings/mfd/
Dnordic,npm2100.yaml59 ship: Enter ship mode if SHPHLD is pressed for 2 seconds
61 reset: Reset PMIC if SHPHLD is pressed for 10 seconds
/Zephyr-latest/samples/subsys/display/lvgl/
DKconfig9 bool "Reset counter when sw0 is pressed"
/Zephyr-latest/include/zephyr/drivers/
Dkscan.h46 * @param pressed Describes the kind of key event.
50 bool pressed);
80 * event such as key pressed/released.
/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/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/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/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/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/tests/drivers/input/gpio_keys/src/
Dmain.c41 TC_PRINT("GPIO_KEY %s pressed, zephyr_code=%u, value=%d\n", in test_gpio_keys_cb_handler()
50 * @brief TestPurpose: Verify gpio_keys_config pressed raw.
/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/basic/button/src/
Dmain.c34 * to turn on the LED whenever the button is pressed.
42 printk("Button pressed at %" PRIu32 "\n", k_cycle_get_32()); in button_pressed()
/Zephyr-latest/samples/boards/bbc/microbit/sound/src/
Dmain.c63 printk("A pressed\n"); in button_pressed()
68 printk("B pressed\n"); in button_pressed()
/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/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/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

1234