
Using the MintMT ActiveX Control 4-9
4.8.1 Accessing Dual Port RAM
There are a number of functions to read and write data to Dual Port RAM.
Dual Port RAM is 32-bits wide and is addressable in the range 0x000 to 0xFFF. See section 8 for details
on the contents of Dual Port RAM.
Read / write a floating point value:
getFloat ( short nAddress, float *pfValue );
setFloat ( short nAddress, float fValue );
Read / write a signed 32-bit value
getLong ( short nAddress, long *plValue );
setLong ( short nAddress, long lValue );
Read / write a signed 16-bit value
getWord ( short nAddress, short *pnValue );
setWord ( short nAddress, short nValue );
4.8.2 Event handling
There are a number of event types supported by MintMT such as ONERROR, FASTIN, TIMER, etc. The
MintMT ActiveX control allows event handlers to be installed in the PC application rather than in a MintMT
application. When an event occurs, the controller will interrupt the PC application passing details of the
event type and any associated parameters.
This allows the PC application to install event handing routines that will be called by the controller
interrupting the PC. Support for events allows complete MintMT programs to be converted to run on a PC
application rather than on the controller.
Note: Event generation within a PC application relies on the ability of the controller to interrupt the PC
application and is currently only supported by NextMove PCI. For other controllers, the event
handlers must be placed in a MintMT program.
Kommentare zu diesen Handbüchern