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:
sgodinez
Date:
Wed Dec 18 22:45:53 2013 +0000
Revision:
32:629e6b1c8e22
Parent:
1:f641337952a9
Child:
39:6e94520a3217
Successfully recognizes when remote endpoint closes socket.

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