30 #include "mraa/gpio.h" 49 mraa_aio_context aio_x;
50 mraa_aio_context aio_y;
51 mraa_aio_context aio_z;
54 mraa_gpio_context gpio_selftest;
57 mraa_gpio_context gpio_sleep;
60 mraa_gpio_context gpio_freefall;
63 mraa_gpio_context gpio_range;
129 int selftest_pin,
int sleep_pin,
130 int freefall_pin,
int range_pin,
220 float *x,
float *y,
float *z);
232 float *x,
float *y,
float *z);
244 float *x,
float *y,
float *z);
upm_result_t mma7361_sleep(const mma7361_context dev, bool sleep)
Definition: mma7361.c:239
upm_result_t mma7361_update(const mma7361_context dev)
Definition: mma7361.c:307
void mma7361_set_offset(const mma7361_context dev, float x, float y, float z)
Definition: mma7361.c:289
upm_result_t mma7361_freefall(const mma7361_context dev, bool *freefall)
Definition: mma7361.c:256
struct _mma7361_context * mma7361_context
upm_result_t mma7361_selftest(const mma7361_context dev, bool selftest)
Definition: mma7361.c:224
void mma7361_set_range(const mma7361_context dev, bool range)
Definition: mma7361.c:268
void mma7361_close(mma7361_context dev)
Definition: mma7361.c:199
void mma7361_get_volts(const mma7361_context dev, float *x, float *y, float *z)
Definition: mma7361.c:373
void mma7361_set_scale(const mma7361_context dev, float x, float y, float z)
Definition: mma7361.c:298
mma7361_context mma7361_init(int x_pin, int y_pin, int z_pin, int selftest_pin, int sleep_pin, int freefall_pin, int range_pin, float a_ref)
Definition: mma7361.c:43
void mma7361_get_normalized(const mma7361_context dev, float *x, float *y, float *z)
Definition: mma7361.c:388
void mma7361_get_acceleration(const mma7361_context dev, float *x, float *y, float *z)
Definition: mma7361.c:358