Zephyr API 3.6.99
Loading...
Searching...
No Matches
input_analog_axis.h File Reference
#include <stdint.h>
#include <zephyr/device.h>

Go to the source code of this file.

Data Structures

struct  analog_axis_calibration
 Analog axis calibration data structure. More...
 

Typedefs

typedef void(* analog_axis_raw_data_t) (const struct device *dev, int channel, int16_t raw_val)
 Analog axis raw data callback.
 

Functions

void analog_axis_set_raw_data_cb (const struct device *dev, analog_axis_raw_data_t cb)
 Set a raw data callback.
 
int analog_axis_num_axes (const struct device *dev)
 Get the number of defined axes.
 
int analog_axis_calibration_get (const struct device *dev, int channel, struct analog_axis_calibration *cal)
 Get the axis calibration data.
 
int analog_axis_calibration_set (const struct device *dev, int channel, struct analog_axis_calibration *cal)
 Set the axis calibration data.