47 mraa_aio_context ai_x;
49 mraa_aio_context ai_y;
51 float m_count_offset_x;
53 float m_count_offset_y;
55 float m_count_scale_x;
57 float m_count_scale_y;
upm_result_t joystick12_get_value_y(const joystick12_context dev, float *value)
Definition: joystick12.c:133
upm_result_t joystick12_get_value_x(const joystick12_context dev, float *value)
Definition: joystick12.c:110
upm_result_t joystick12_set_scale_y(const joystick12_context dev, float scale)
Definition: joystick12.c:104
void joystick12_close(joystick12_context dev)
Definition: joystick12.c:64
joystick12_context joystick12_init(int16_t apin_x, int16_t apin_y)
Definition: joystick12.c:30
Definition: joystick12.h:45
upm_result_t joystick12_set_scale_x(const joystick12_context dev, float scale)
Definition: joystick12.c:98
upm_result_t joystick12_calibrate_y(const joystick12_context dev)
Definition: joystick12.c:194
upm_result_t joystick12_zero(const joystick12_context dev)
Definition: joystick12.c:156
struct _joystick12_context * joystick12_context
upm_result_t joystick12_set_offset_y(const joystick12_context dev, float offset)
Definition: joystick12.c:92
upm_result_t joystick12_calibrate_x(const joystick12_context dev)
Definition: joystick12.c:172
upm_result_t joystick12_read_data(const joystick12_context dev, int *values)
Definition: joystick12.c:71
upm_result_t joystick12_set_offset_x(const joystick12_context dev, float offset)
Definition: joystick12.c:86