LMMS - Linux MultiMedia Studio Computer Accessories MN1278 用户手册
Mint v4 PC Programming Guide
10
MN1278 05.2001
3.1 C++
The Mint Interface Library was written in C++. The source code is provided and can be included in your project.
The only supported compilers are Visual C++ v6.0 and Watcom 11. All other compilers must use the ActiveX
control to communicate with controllers.
The only supported compilers are Visual C++ v6.0 and Watcom 11. All other compilers must use the ActiveX
control to communicate with controllers.
3.1.1
C++ : the Classes
The Mint Interface Library contains a C++ class for each controller.
In each case the class is defined in the header file in the right of the table. All of these headers are included in
precomp.h (see later).
precomp.h (see later).
Controller
Class
Header file to include
NextMove PC
CNextMovePC
nextmove.h
NextMove PCI
CNextMovePCI1
nm_pci1.h
NextMove BX
CNextMoveBX
nm_bx.h
MintDrive CMintDrive
mintdrv.h
ServoNode 51
CServoNode51
snode51.h
The simplest way to interface to any of these controllers is to create an instance of the object and call any of the
functions described later in the manual.
functions described later in the manual.
For example, to download nmpci.out to a NextMove PCI a CNextMovePCI1 object can be created.
Hint : All controllers referenced in the Mint v4 PC Programming Guide are derived from the CController
class (defined in BASE.H.) All functions are virtual, so it is safe to pass pointers to objects as
(CController*) if the class type to be created is not known at compile time.
The following files should be included in your C++ project.
File Controller
base.cpp All
baldorserial.cpp All
baldorserial.cpp All
Serial
host_def.cpp All
logfile.cpp All
mme.cpp
logfile.cpp All
mme.cpp
MintDrive, NextMove BX, ServoNode 51
mml.cpp All
nextmove.cpp NextMove
nextmove.cpp NextMove
PC
nm_nt.cpp NextMove
PC
nm_pci1.cpp NextMove
PCI
nm_win32
NextMove PC & PCI