base program for tilt measurement

Dependencies:   COG4050_ADT7420 ADXL362

Fork of COG4050_adxl355_adxl357-ver2 by ADI_CAC

Revision:
3:ee052fdb4331
Parent:
2:14dc1ec57f3b
Child:
4:23b53636b576
diff -r 14dc1ec57f3b -r ee052fdb4331 ADXL35x/ADXL355.h
--- a/ADXL35x/ADXL355.h	Tue Aug 07 12:49:37 2018 +0000
+++ b/ADXL35x/ADXL355.h	Wed Aug 08 08:56:00 2018 +0000
@@ -129,7 +129,6 @@
     // ADXL general register R/W methods 
     void set_power_ctl_reg(uint8_t data);
     void set_filter_ctl_reg(ADXL355_filter_ctl_t hpf, ADXL355_filter_ctl_t odr);
-    void set_mode(ADXL355_modes_t mode);
     void set_clk(ADXL355_sync_ctl_t data);
     void set_device(ADXL355_range_ctl_t range);
     uint8_t read_status();
@@ -141,7 +140,7 @@
     // ADXL activity methods 
     void set_activity_axis(ADXL355_act_ctl_t axis);
     void set_activity_cnt(uint8_t count);
-    void set_activity_threshold(uint16_t data_h, uint16_t data_l);
+    void set_activity_threshold(uint8_t data_h, uint8_t data_l);
     void set_inactivity();
     // ADXL interrupt methods 
     void set_interrupt1_pin(PinName in, ADXL355_intmap_ctl_t mode);
@@ -155,12 +154,11 @@
     bool get_int1();
     bool get_int2();
     // ADXL FIFO methods 
-    uint16_t fifo_read_nr_of_entries();
+    uint8_t fifo_read_nr_of_entries();
     void fifo_setup(uint8_t nr_of_entries);
     uint32_t fifo_read_u32();
     uint64_t fifo_scan();
-    
-    // ADXL tilt methods 
+    // ADXL tilt methods and calibration
     // TBD
 private:
     // SPI adxl355;                 ///< SPI instance of the ADXL