include/adxl345.h
changeset 11 a383e22204f2
equal deleted inserted replaced
10:d485c5b3ab4d 11:a383e22204f2
       
     1 #ifndef QMSK_ADXL345_H
       
     2 #define QMSK_ADXL345_H
       
     3 
       
     4 #include "port.h"
       
     5 #include "stdlib.h"
       
     6 
       
     7 /*
       
     8  * Setup ADXL345_CS as the chip-select pin.
       
     9  */
       
    10 void adxl345_init ();
       
    11 
       
    12 byte adxl345_read_devid ();
       
    13 
       
    14 /*
       
    15  * Setup for measurements.
       
    16  */
       
    17 void adxl345_setup ();
       
    18 
       
    19 int16_t adxl345_read_x ();
       
    20 int16_t adxl345_read_y ();
       
    21 int16_t adxl345_read_z ();
       
    22 
       
    23 #endif