SkyTEM BMAG / Mbed 2 deprecated BMAGThrRev

Dependencies:   mbed WDT MODSERIAL BME280

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BMAG.h Source File

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 };