29 #ifndef __DATALOG_APPLICATION_H 30 #define __DATALOG_APPLICATION_H 40 #define SAMPLING_100Hz 42 #if defined( SAMPLING_25Hz) 43 #define DEFAULT_uhCCR1_Val 390 44 #define ACCELERO_ODR 25.0f 45 #define GYRO_ODR 26.0f 46 #define MAGNETO_ODR 20.0f 47 #define PRESSURE_ODR 25.0f 48 #define DATA_PERIOD_MS (40) 50 #elif defined( SAMPLING_50Hz) 51 #define DEFAULT_uhCCR1_Val 190 52 #define ACCELERO_ODR 50.0f 53 #define GYRO_ODR 52.0f 54 #define MAGNETO_ODR 50.0f 55 #define PRESSURE_ODR 50.0f 56 #define DATA_PERIOD_MS (20) 58 #elif defined( SAMPLING_100Hz) 59 #define DEFAULT_uhCCR1_Val 100 60 #define ACCELERO_ODR 100.0f 61 #define GYRO_ODR 104.0f 62 #define MAGNETO_ODR 100.0f 63 #define PRESSURE_ODR 50.0f 64 #define DATA_PERIOD_MS (10) 67 #define TEMPERATURE_ODR 12.5f 68 #define HUMIDITY_ODR 12.5f 74 } LogInterface_TypeDef;
88 extern LogInterface_TypeDef LoggingInterface;
89 extern volatile uint8_t SD_Log_Enabled;
91 void floatToInt(
float in, int32_t *out_int, int32_t *out_dec, int32_t dec_prec );
95 uint8_t DATALOG_SD_writeBuf(
char *s, uint32_t size);
97 void DATALOG_SD_DeInit(
void);
void floatToInt(float in, int32_t *out_int, int32_t *out_dec, int32_t dec_prec)
Splits a float into two integer values.
void DATALOG_SD_NewLine(void)
Write New Line to file.
uint8_t DATALOG_SD_Log_Enable(void)
Start SD-Card demo.
void DATALOG_SD_Log_Disable(void)
Disable SDCard Log.
Header for cube_hal_l4.c.
void DATALOG_SD_Init(void)
Start SD-Card demo.