Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed WDT MODSERIAL BME280
BMAG.h
00001 #pragma once 00002 #include <string> 00003 #include "mbed.h" 00004 #include "MODSERIAL/MODSERIAL.h" 00005 00006 using std::string; 00007 00008 00009 //! A BMAG string handling class 00010 /*! 00011 This class is used to handle / parse the default data logging string 00012 sent via rs232 to an external device from a GSM-19T magnetometer unit. 00013 Methods of this class parse the received rs232 string and convert them into 00014 individual data strings. (magTime, magnTMeasurement, and magMeasurementQuality) 00015 */ 00016 00017 class BMAG{ 00018 00019 public: 00020 00021 //! The default constructor. No arguments are needed for this class ever. 00022 BMAG(); 00023 00024 //string parser 00025 void parseBMAGString(string str); 00026 00027 //magtime string set method 00028 void setMagTimeStr(string magT); 00029 00030 //magnt string set method 00031 void setMagNTStr(string magNT); 00032 00033 //magsq string set method 00034 void setMagSqStr(string magSq); 00035 00036 //magtime string get method 00037 string getMagTimeStr(void); 00038 00039 //magnt string get method 00040 string getMagNTStr(void); 00041 00042 //magsq string get method 00043 string getMagSq(void); 00044 00045 //mag string returner 00046 string getColumn(string str, char n); 00047 00048 private: 00049 string lastMagTime; 00050 string lastMagNT; 00051 string lastMagSq; 00052 };
Generated on Wed Jul 13 2022 08:04:14 by
