Ccpu_Entrywdtint - Mitsubishi Electric MELIPC MI5000 Series Programming Manual

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

Advertisement

CCPU_EntryWDTInt

Registers a routine to be called when a user WDT error interrupt of the VxWorks part occurs.
Format
short CCPU_EntryWDTInt(short sType, CCPU_FUNCPTR pFuncPtr)
Argument
Argument
Name
sType
WDT type
*1
pFuncPtr
Registered routine
*1 The data type is defined as a void type in the include file "CCPUFunc.h".
Description
• Registers a routine to be called when a user WDT error interrupt of the VxWorks part occurs.
• When this function is executed several times, the last registered routine will be in effect.
• The routine registered with this function is executed as an interrupt service routine (ISR) when a user WDT error occurs. (If
the CCPU_ResetWDT function is not executed within the time interval specified by this function, the WDT error will occur.) )
Precautions
• The registered routine is not executed while the operating system is in the interrupt-disabled state.
• For processing a routine to be registered in the registered routine (pFuncPtr), note the following:
A routine to be registered must not have an argument. (Do not pass an argument from an interrupt.)
When registering a routine, observe the considerations on the interrupt service routine (ISR).
Register minimal processing of a routine so that the processing time is as short as possible.
Only the C Controller module dedicated function (for ISR) can be used for a routine to be registered. Do not use any other
function. (An error of a function to be registered is not checked.)
Warning
If a routine that does not observe the considerations on interrupt service routine (ISR) is registered, the operating system will
be out of control.
Make sure to use the routine after carefully verifying the operation and performance.
Return value
Return value
0(0000H)
-220(FF24H)
-28158(9202H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 60 CCPU_ResetWDT
Page 71 CCPU_StartWDT
Page 72 CCPU_StopWDT
Description
Specify the WDT type.
(When 'Reserved' is specified, an error is returned.)
• 0: User WDT
• Others: Reserved
Specify a routine to be registered.
(The routine is deregistered by specifying NULL.) )
Description
Normal
WDT type error
WDT error
3 DETAILS OF FUNCTIONS
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
35

Advertisement

Table of Contents
loading

Table of Contents