changeset 11 | a383e22204f2 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/adxl345.h Wed Oct 08 23:20:34 2014 +0300 @@ -0,0 +1,23 @@ +#ifndef QMSK_ADXL345_H +#define QMSK_ADXL345_H + +#include "port.h" +#include "stdlib.h" + +/* + * Setup ADXL345_CS as the chip-select pin. + */ +void adxl345_init (); + +byte adxl345_read_devid (); + +/* + * Setup for measurements. + */ +void adxl345_setup (); + +int16_t adxl345_read_x (); +int16_t adxl345_read_y (); +int16_t adxl345_read_z (); + +#endif