Object Generation Functions; Mmfcreateem340Gf (C++) - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

3.7

Object Generation Functions

These functions generate the objects of the classes used by the API library. Use the object generation functions when
generating objects.
• For objects generated using the object generation functions, delete them with the Delete method.
• Only one controller object and one device driver object can be generated per Simple Motion board.

MmfCreateEM340GF (C++)

Generates the objects of the MMC_EM340GF class.
unsigned long MmfCreateEM340GF(
MMC_DeviceDriver *deviceDriver,
MMC_EM340GF **controller
);
Detailed description
■Parameter
Argument
deviceDriver [in]
controller [out]
■Return value
Value
MMC_OK
MMERR_ARGUMENT_0
=1 to 9: Argument location
MMERR_ALREADY_CREATED
MMERR_CREATE_OBJECT
■Point
None.
■Supported version
API version
1.00
■Reference
None.
3 API LIBRARY DETAILS (BASIC FUNCTIONS)
102
3.7 Object Generation Functions
Description
Pointer to the device driver class object
Pointer to the controller class object
Description
Function succeeded
The argument is outside the set range.
The object of the same board ID has already been generated.
Failed to generate object.
Software version
01

Advertisement

Table of Contents
loading

Table of Contents