Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 58

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

CCPU_ReceiveInterOSEvent
Waits for notification of inter OS events.
Format
short CCPU_ReceiveInterOSEvent(short sOsEventNo, unsigned long ulTimeout)
Argument
Argument
sOsEventNo
ulTimeout
Description
• Waits for notification of the inter OS event specified by the inter OS event number (sOsEventNo).
• When an inter OS event was already reported when this function was executed, the user application restarts soon after the
inter OS event wait status.
• The specified timeout value is rounded (rounding up after the decimal point) to tick units. Specify a timeout value of 1 tick or
higher.
• When the same inter OS event was reported multiple times when this function was executed, the user application
processes them as a single inter OS event notification.
• When an inter OS event was reported when multiple tasks were waiting for the same inter OS event notification, only the
task that executed this function first receives the notification and restarts execution.
Return value
Return value
0(0000H)
-231(FF19H)
-234(FF16H)
-366(FE92H)
For details on error codes, refer to the following section.
Page 116 Function error codes
3 DETAILS OF FUNCTIONS
56
3.1 C Controller Module Dedicated Functions
Name
Inter OS event number
Timeout
Description
Normal
Event timeout error
Event wait error
Event number specification error
Description
Specifies '1'.
If a value other than "1" is specified, an error is returned.
Specify the timeout value in milliseconds. (0H to FFFFFFFFH)
(When 'FFFFFFFFH' is specified, the function waits for an event infinitely.)
IN/OUT
IN
IN

Advertisement

Table of Contents
loading

Table of Contents