Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 89

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

Advertisement

CCPU_ReadDevice_ISR
Reads data from the internal user devices and internal system devices of a MELIPC.
Format
short CCPU_ReadDevice_ISR(short sDevType, unsigned long ulDevNo, unsigned long ulSize, unsigned short* pusDataBuf)
Argument
Argument
Name
sDevType
Device type
ulDevNo
Start device number
ulSize
Data size
pusDataBuf
Data storage destination
Description
This function reads data in a device after one specified to the device type (sDevType) and the start device number (ulDevNo)
for the size specified to the data size (ulSize), and 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.
Assure a read data area of the read word count.
Do not specify a device outside of the range.
Return value
Return value
0(0000H)
Relevant function
Page 97 CCPU_WriteDevice_ISR
Description
Specify the device type.
Page 8 Device type
Specify the start device number.
(Only multiples of 16 can be specified for bit devices.)
Specify the read data size in word units.
Specify the storage destination of read data.
Description
Normal
3 DETAILS OF FUNCTIONS
3.2 C Controller Module Dedicated Functions (for ISR)
3
IN/OUT
IN
IN
IN
OUT
87

Advertisement

Table of Contents
loading

Table of Contents