Zephyr API Documentation
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
input_nunchuk.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
11
12
#ifndef ZEPHYR_INCLUDE_INPUT_INPUT_NUNCHUCK_H_
13
#define ZEPHYR_INCLUDE_INPUT_INPUT_NUNCHUCK_H_
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
#include <
zephyr/device.h
>
20
27
33
#define INPUT_NUNCHUK_ACCEL_X 0
34
40
#define INPUT_NUNCHUK_ACCEL_Y 1
41
47
#define INPUT_NUNCHUK_ACCEL_Z 2
48
63
int
nunchuk_read
(
const
struct
device
*dev);
64
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* ZEPHYR_INCLUDE_INPUT_INPUT_NUNCHUCK_H_ */
device.h
nunchuk_read
int nunchuk_read(const struct device *dev)
Starts the reading process of the current button states, joystick position and optionally the acceler...
device
Runtime device structure (in ROM) per driver instance.
Definition
device.h:513
zephyr
input
input_nunchuk.h
Generated on
for Zephyr API Documentation by
1.16.1