A library for talking to Multi-Tech's Cellular SocketModem Devices.

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

utils/Vars.h

Committer:
sgodinez
Date:
2013-12-18
Revision:
32:629e6b1c8e22
Parent:
1:f641337952a9
Child:
39:6e94520a3217

File content as of revision 32:629e6b1c8e22:

#ifndef VARS_H
#define VARS_H

#include <string>

#ifndef MAX
#define MAX(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a > _b ? _a : _b; })
#endif
     
#ifndef MIN
#define MIN(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; })
#endif


// An array of strings for printing the names of the Radio enum.
const string RadioNames[] = {"NA", "E1", "G2", "EV2", "H4", "EV3", "H5"};

/** This class holds several enum types and other static variables
* that are used throughout the rest of the SDK.
*/
class Vars
{
public:
    /// Enumeration for different cellular radio types.
    enum Radio {NA, E1, G2, EV2, H4, EV3, H5};

    enum RelationalOperator {GREATER, LESS, EQUAL, GREATER_EQUAL, LESS_EQUAL};
};

//Test Commit!!!

#endif /* VARS_H */