Mmc_Devicedriver::startinterrupt - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MMC_DeviceDriver::StartInterrupt

Starts interrupt driver. This function is used when interrupt event wait functions are used for interrupt monitoring.
unsigned long StartInterrupt(
long priority
);
Detailed description
■Parameter
Argument
priority [in]
■Return value
Value
MMC_OK
MMERR_DEV_UNOPEN
MMERR_ARGUMENT_0
=1 to 9: Argument location
MMERR_INT_ALREADY_START_DRIVER
MMERR_WIN_CREATE_EVENT
MMERR_WIN_CREATE_THREAD
MMERR_WIN_SET_THREAD_PRIORITY
MMERR_WIN_RESUME_THREAD
MMERR_DEV_DEVICE_DRIVER
■Point
• Refer to the instruction manual of the operating system being used for details of the priority value.
• Call this method before calling the controller class EnableInterrupt method.
■Supported version
API version
1.00
■Reference
EndInterrupt (Page 97 MMC_DeviceDriver::EndInterrupt)
3 API LIBRARY DETAILS (BASIC FUNCTIONS)
96
3.6 MMC_DeviceDriver Class
Description
Priority value
Description
Function succeeded
The Open method of the device driver class has not been called.
The argument is outside the set range.
The interrupt driver is already started.
An error occurred in the CreateEvent function (Win32API). Call the GetLastError function of
Win32API and confirm the error details.
An error occurred in the CreateThread function (Win32API). Call the GetLastError function of
Win32API and confirm the error details.
An error occurred in the SetThreadPriority function (Win32API). Call the GetLastError function
of Win32API and confirm the error details.
An error occurred in the ResumeThread function (Win32API). Call the GetLastError function of
Win32API and confirm the error details.
An error occurred with a call of the device driver. Confirm that the device driver is installed.
Software version
01

Advertisement

Table of Contents
loading

Table of Contents