Test program for SPS30

Dependencies:   SPS30-sensor

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers conversions.h Source File

conversions.h

00001 /*******************************************************************************
00002  * Copyright (c) 2018-2019, Sensors and IoT Capability Centre (SIOT) at GovTech.
00003  *
00004  * Contributor(s):
00005  *    Lau Lee Hong  lau_lee_hong@tech.gov.sg
00006  *    Lee Tze Han
00007  *******************************************************************************/
00008 #ifndef CONVERSIONS_H
00009 #define CONVERSIONS_H
00010 
00011 #include <string>
00012 #include <stdint.h>
00013 
00014 char* StringToChar(const std::string& str);
00015 std::string IntToHex(uint32_t i);
00016 std::string IntToString(int v);
00017 char* DoubleToChar(char* str, double v, int decimalDigits);
00018 int StringToInt(const std::string& str);
00019 //std::string TimeToString(const std::time_t time);
00020 //std::time_t StringToTime(const std::string& str);
00021 
00022 #endif  // CONVERSIONS_H