STSW-STLKT01: Projects/SensorTile/Applications/DataLog/Inc/datalog_application.h File Reference

STSW-STLKT01

datalog_application.h File Reference

Header for datalog_application.c module. More...

#include "cube_hal.h"

Go to the source code of this file.

Data Structures

struct  T_SensorsData
 

Macros

#define SAMPLING_100Hz
 
#define DEFAULT_uhCCR1_Val   100
 
#define ACCELERO_ODR   100.0f
 
#define GYRO_ODR   104.0f
 
#define MAGNETO_ODR   100.0f
 
#define PRESSURE_ODR   50.0f
 
#define DATA_PERIOD_MS   (10)
 
#define TEMPERATURE_ODR   12.5f
 
#define HUMIDITY_ODR   12.5f
 

Enumerations

enum  LogInterface_TypeDef { USB_Datalog = 0, SDCARD_Datalog }
 

Functions

void floatToInt (float in, int32_t *out_int, int32_t *out_dec, int32_t dec_prec)
 Splits a float into two integer values. More...
 
void DATALOG_SD_Init (void)
 Start SD-Card demo. More...
 
uint8_t DATALOG_SD_Log_Enable (void)
 Start SD-Card demo. More...
 
uint8_t DATALOG_SD_writeBuf (char *s, uint32_t size)
 
void DATALOG_SD_Log_Disable (void)
 Disable SDCard Log. More...
 
void DATALOG_SD_DeInit (void)
 
void DATALOG_SD_NewLine (void)
 Write New Line to file. More...
 
DrvStatusTypeDef getSensorsData (T_SensorsData *mptr)
 

Variables

LogInterface_TypeDef LoggingInterface
 
volatile uint8_t SD_Log_Enabled
 

Detailed Description

Header for datalog_application.c module.

Author
Central Labs
Version
V2.0.0
Date
27-April-2017
Attention

© COPYRIGHT(c) 2014 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file datalog_application.h.

Function Documentation

◆ DATALOG_SD_Init()

void DATALOG_SD_Init ( void  )

Start SD-Card demo.

Parameters
None
Return values
None

Definition at line 66 of file datalog_application.c.

◆ DATALOG_SD_Log_Disable()

void DATALOG_SD_Log_Disable ( void  )

Disable SDCard Log.

Parameters
None
Return values
None

Definition at line 135 of file datalog_application.c.

◆ DATALOG_SD_Log_Enable()

uint8_t DATALOG_SD_Log_Enable ( void  )

Start SD-Card demo.

Parameters
None
Return values
None

Definition at line 90 of file datalog_application.c.

◆ DATALOG_SD_NewLine()

void DATALOG_SD_NewLine ( void  )

Write New Line to file.

Parameters
None
Return values
None

Definition at line 153 of file datalog_application.c.

◆ floatToInt()

void floatToInt ( float  in,
int32_t *  out_int,
int32_t *  out_dec,
int32_t  dec_prec 
)

Splits a float into two integer values.

Parameters
inthe float value as input
out_intthe pointer to the integer part as output
out_decthe pointer to the decimal part as output
dec_precthe decimal precision to be used
Return values
None

Definition at line 219 of file datalog_application.c.

Generated by   doxygen 1.8.13