Download CIF Device Driver - IntervalZero RTX
Transcript
Programming
5.2.3
21/30
DevGetInfo
The function DevGetInfo() offers the new selection GET_CIF_PLC_DRIVER_INFO to get the
pointer to the I/O process image and the size of it.
The pointers are needed to directly access the I/O process data image of a CIF card.
short DevGetInfo(
DRIVERHANDLE
CIFHANDLE
unsigned short
unsigned short
void
hDriver,
hCif,
usFunction
usSize
*pvData);
Parameter
Type
Parameter
Description
DRIVERHANDLE hDriver
Driver handle for this device
CIFHANDLE
hCIF
Device handle
unsigned short *
usFunction
Mode of the information to read
GET_CIF_PLC_DRIVER_INFO
unsigned short
usSize
Size of information buffer
void*
pvData
Pointer to informationstructure
/* PLC information structure */
typedef struct tagCIF_PLC_DRIVER_INFO
void
pvInput;
/*
unsigned long
ulInputSize;
/*
void
*pvOutput;
/*
unsigned long
ulOutputSize;
/*
TASKSTATE
*ptTaskState;
/*
} CIF_PLC_DRIVER_INFO;
{
Pointer to input data */
Size of the input image */
Pointer to output data */
Size of the output image */
Protocol specific structure*/
CIF Device Driver | IntervalZero RTX®
DOC010801DRV06EN | Revision 6 | English | 2014-05 | Released | Public
© Hilscher, 2001-2014