TwiceAsNice  2019-02-18
Classes | Typedefs | Enumerations
mgen.h File Reference
#include <exception>
#include <string>
#include <typeinfo>
Include dependency graph for mgen.h:
This graph shows which files directly or indirectly include this file:

Classes

class  IOError
 Exception returned when there is I/O malfunction with the device. More...
 

Macros

#define _S(msg, ...)
 
#define _D(msg, ...)
 
#define _E(msg, ...)
 

Typedefs

typedef unsigned char IOByte
 One word in the I/O protocol. More...
 
typedef std::vector< IOByteIOBuffer
 A buffer of protocol words. More...
 

Enumerations

enum  IOMode { OPM_UNKNOWN, OPM_COMPATIBLE, OPM_APPLICATION }
 A protocol mode in which the command is valid. More...
 
enum  IOResult { CR_SUCCESS, CR_FAILURE }
 The result of a command. More...
 

Macro Definition Documentation

◆ _D

#define _D (   msg,
  ... 
)
Value:
__LINE__, "%s::%s: " msg, __FUNCTION__, typeid(*this).name(), __VA_ARGS__)
msg
Definition: MoccaWheelServiceWorkerPyTest.py:66
static MGenAutoguider & instance()
Definition: mgenautoguider.cpp:64
static Logger & getInstance()
Method to get a reference to the object (i.e., Singleton) It is a static method.
Definition: indilogger.cpp:360
Definition: indilogger.h:194
void print(const char *devicename, const unsigned int verbosityLevel, const std::string &sourceFile, const int codeLine, const char *message,...)
Definition: indilogger.cpp:393

◆ _E

#define _E (   msg,
  ... 
)
Value:
__LINE__, "%s::%s: " msg, __FUNCTION__, typeid(*this).name(), __VA_ARGS__)
msg
Definition: MoccaWheelServiceWorkerPyTest.py:66
static MGenAutoguider & instance()
Definition: mgenautoguider.cpp:64
static Logger & getInstance()
Method to get a reference to the object (i.e., Singleton) It is a static method.
Definition: indilogger.cpp:360
Definition: indilogger.h:191
void print(const char *devicename, const unsigned int verbosityLevel, const std::string &sourceFile, const int codeLine, const char *message,...)
Definition: indilogger.cpp:393

◆ _S

#define _S (   msg,
  ... 
)
Value:
__LINE__, "%s::%s: " msg, __FUNCTION__, typeid(*this).name(), __VA_ARGS__)
msg
Definition: MoccaWheelServiceWorkerPyTest.py:66
static MGenAutoguider & instance()
Definition: mgenautoguider.cpp:64
Definition: indilogger.h:193
static Logger & getInstance()
Method to get a reference to the object (i.e., Singleton) It is a static method.
Definition: indilogger.cpp:360
void print(const char *devicename, const unsigned int verbosityLevel, const std::string &sourceFile, const int codeLine, const char *message,...)
Definition: indilogger.cpp:393

Typedef Documentation

◆ IOBuffer

typedef std::vector<IOByte> IOBuffer

A buffer of protocol words.

◆ IOByte

typedef unsigned char IOByte

One word in the I/O protocol.

Enumeration Type Documentation

◆ IOMode

enum IOMode

A protocol mode in which the command is valid.

Enumerator
OPM_UNKNOWN 

Unknown mode, no exchange done yet or connection error

OPM_COMPATIBLE 

Compatible mode, to check device state

OPM_APPLICATION 

Normal applicative mode

◆ IOResult

enum IOResult

The result of a command.

Enumerator
CR_SUCCESS 

Command is successful, result is available through helpers or in field 'answer'

CR_FAILURE 

Command is not successful, no acknowledge or unexpected data returned