zephyr/drivers/input/linux_evdev_bottom.h
Fabio Baltieri f9313b1745 input: add a linux-evdev device
Add a device driver to read events from a Linux evdev device node and
inject them back as Zephyr input events.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-12-18 12:23:59 +01:00

18 lines
424 B
C

/*
* Copyright 2023 Google LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_INPUT_LINUX_EVDEV_BOTTOM_H_
#define ZEPHYR_DRIVERS_INPUT_LINUX_EVDEV_BOTTOM_H_
#include <stdint.h>
#define NATIVE_LINUX_EVDEV_NO_DATA INT32_MIN
int linux_evdev_read(int fd, uint16_t *type, uint16_t *code, int32_t *value);
int linux_evdev_open(const char *path);
#endif /* ZEPHYR_DRIVERS_INPUT_LINUX_EVDEV_BOTTOM_H_ */