Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
input_nunchuk.h File Reference

Header file for Nunchuk input driver synchronous reading. More...

#include <zephyr/device.h>

Go to the source code of this file.

Macros

#define INPUT_NUNCHUK_ACCEL_X   0
 Acceleration on the X axis reported by the Nunchuk.
#define INPUT_NUNCHUK_ACCEL_Y   1
 Acceleration on the Y axis reported by the Nunchuk.
#define INPUT_NUNCHUK_ACCEL_Z   2
 Acceleration on the Z axis reported by the Nunchuk.

Functions

int nunchuk_read (const struct device *dev)
 Starts the reading process of the current button states, joystick position and optionally the acceleration (if CONFIG_INPUT_NUNCHUK_ACCELERATION is enabled) from the Nunchuk.

Detailed Description

Header file for Nunchuk input driver synchronous reading.