All pages
Powered by GitBook
1 of 1

Loading...

MTCMS Library Enumerations and Structures

The MTCMS Library uses the following constants and data structures.

MTConnectionType Values

Device connection types:

MTConnectionState Values

Device connection states:

MTDeviceInformation

Device information structure:

MTCMSMessage

MTCMSMessage structure:

enum MTConnectionType
{
        USB, IP,
                Serial
};
enum MTConnectionState
{
    Disconnected, 
    Connecting,
    Error, 
    Connected, 
    Disconnecting
};
struct MTDeviceInformation
{
    const char* Id; 
    const char* Name; 
    const char* Address;
    const char* ProductId;
};
struct MTCMSMessage
{
    int messageType; 
    int applicationID; 
    int commandID;
    int resultCode; 
    int dataTag;
    const unsigned char* data; 
    int dataLength;
    const unsigned char* messageBytes; 
    int messageBytesLength;
};