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

Committer:
mfiore
Date:
Thu Dec 19 19:49:58 2013 +0000
Revision:
39:6e94520a3217
Parent:
32:629e6b1c8e22
Child:
71:82205735732b
add mts namespace to files in cellular/, io/, and utils/ directories; prepend CELL_ to some enums in cellular.h to avoid conflict with HTTPClient class; added AxedaWrapper class for sending data to Axeda backend

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jengbrecht 0:563b70517320 1 #ifndef VARS_H
jengbrecht 0:563b70517320 2 #define VARS_H
jengbrecht 0:563b70517320 3
jengbrecht 0:563b70517320 4 #include <string>
jengbrecht 0:563b70517320 5
mfiore 39:6e94520a3217 6 namespace mts {
mfiore 39:6e94520a3217 7
sgodinez 32:629e6b1c8e22 8 #ifndef MAX
sgodinez 32:629e6b1c8e22 9 #define MAX(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a > _b ? _a : _b; })
sgodinez 32:629e6b1c8e22 10 #endif
sgodinez 32:629e6b1c8e22 11
sgodinez 32:629e6b1c8e22 12 #ifndef MIN
sgodinez 32:629e6b1c8e22 13 #define MIN(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; })
sgodinez 32:629e6b1c8e22 14 #endif
sgodinez 32:629e6b1c8e22 15
sgodinez 32:629e6b1c8e22 16
jengbrecht 0:563b70517320 17 // An array of strings for printing the names of the Radio enum.
jengbrecht 0:563b70517320 18 const string RadioNames[] = {"NA", "E1", "G2", "EV2", "H4", "EV3", "H5"};
jengbrecht 0:563b70517320 19
jengbrecht 0:563b70517320 20 /** This class holds several enum types and other static variables
jengbrecht 0:563b70517320 21 * that are used throughout the rest of the SDK.
jengbrecht 0:563b70517320 22 */
jengbrecht 0:563b70517320 23 class Vars
jengbrecht 0:563b70517320 24 {
jengbrecht 0:563b70517320 25 public:
jengbrecht 0:563b70517320 26 /// Enumeration for different cellular radio types.
jengbrecht 0:563b70517320 27 enum Radio {NA, E1, G2, EV2, H4, EV3, H5};
jengbrecht 0:563b70517320 28
jengbrecht 0:563b70517320 29 enum RelationalOperator {GREATER, LESS, EQUAL, GREATER_EQUAL, LESS_EQUAL};
jengbrecht 0:563b70517320 30 };
jengbrecht 0:563b70517320 31
mfiore 39:6e94520a3217 32 }
mfiore 39:6e94520a3217 33
jengbrecht 1:f641337952a9 34 //Test Commit!!!
jengbrecht 1:f641337952a9 35
jengbrecht 0:563b70517320 36 #endif /* VARS_H */