summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/keyboard_scan/include/keyboard_test_utils.h
blob: 0117fea09cd6f789138ad1a4ef0e4e4300d7ce0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Copyright 2022 The ChromiumOS Authors.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/**
 * @brief Press or release a key through the keyboard emulator
 *
 * @param row Key row
 * @param col Key column
 * @param pressed 1 if pressed, 0 otherwise
 * @return int 0 if successful
 */
int emulate_keystate(int row, int col, int pressed);

/**
 * @brief Clears any pressed keys in the keyboard emulator
 */
void clear_emulated_keys(void);