Davide Urbano
/
microSDreader
Working version. ADXL355 data saved to microSD.
utility.h
- Committer:
- DUR
- Date:
- 2017-09-29
- Revision:
- 0:e2579e8d9b13
File content as of revision 0:e2579e8d9b13:
#ifndef __UTILITY_H #define __UTILITY_H #include "mbed.h" #include <ctype.h> #include <stdio.h> #include "adxl355.h" #include "define.h" typedef struct { /* Index */ uint32_t index; /* Error */ uint16_t error; /* Timestamp */ uint32_t timestamp; /* ADXL 355 */ uint32_t adxl355_rawX; uint32_t adxl355_rawY; uint32_t adxl355_rawZ; uint32_t adxl355_rawT; /* ADXL 354 */ uint32_t adxl354_rawX; uint32_t adxl354_rawY; uint32_t adxl354_rawZ; uint32_t adxl354_rawT; /* COLIBRYS */ uint32_t colibrys_rawVal; uint32_t colibrys_rawTEMPval; }record_t; /* Funzione di gestione interrupt pulsante */ //void pressed(void); /* Funzione di gestione dell'interrupt dell'ADXL355 */ //void adxl355_int_handler(void); /* Funzione di salvataggio su SD Card */ //void save_data_SD_card(uint8_t* data2save, uint16_t length); #endif