Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 84

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

Advertisement

3.2
C Controller Module Dedicated Functions (for ISR)
The following table shows details on the C Controller module dedicated functions (for ISR).
CCPU_FromBuf_ISR
Reads data from the buffer memory of a MELIPC.
Format
short CCPU_FromBuf_ISR(unsigned short usIoNo, unsigned long ulOffset, unsigned long ulSize, unsigned short*
pusDataBuf)
Argument
Argument
usIoNo
ulOffset
ulSize
pusDataBuf
Description
Reads data of the data size (ulSize) from an address moved by the amount of the offset (ulOffset) from the start of the buffer
memory, and then stores it in the data storage destination (pusDataBuf).
Do not execute this function in a routine other than an interrupt routine.
Warning
• If any function to which an invalid argument is specified is executed, an error such as hardware failure (3C02H) may occur
on the MELIPC.
• This function does not check the specified arguments.
Pay attention to the following points when creating a program.
Specify the address for the read data as a multiple of 2.
Assure a read data area of the read word count.
Do not specify nonexistent CPU buffer memory.
Do not specify nonexistent buffer memory.
Return value
Return value
0(0000H)
-28158(9202H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 96 CCPU_ToBuf_ISR
3 DETAILS OF FUNCTIONS
82
3.2 C Controller Module Dedicated Functions (for ISR)
Name
Module position
Offset
Data size
Data storage destination
Description
Normal
WDT error
Description
Specify 0x03E0.
Specify the offset in word units.
Specify the read data size in word units.
Specify the storage destination of read data.
IN/OUT
IN
IN
IN
OUT

Advertisement

Table of Contents
loading

Table of Contents