All pages
Powered by GitBook
1 of 1

Loading...

MTCMS Library Enumerations and Structures

The MTCMS Library uses the following constants and data structures.

Device connection types:

Device connection states:

Device information structure:

MTCMSMessage structure:

enum MTConnectionType
{
        USB, IP,
                Serial
};

MTConnectionType Values

MTConnectionState Values

MTDeviceInformation

MTCMSMessage

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;
};