[r5]: / trunk / IoDrvFB / Generic / IoDrvFB / ICmpIoDrv / IoDrvUpdateConfiguration / svnobj  Maximize  Restore  History

Download this file

15 lines (14 with data), 6.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
m_pConnector := IoMgrConfigGetConnector(pConnectorList, ADR(nCount), m_wModuleType, m_dwInstance);
IF m_pConnector = 0 THEN
	IoDrvUpdateConfiguration := ERRORS.ERR_PARAMETER;
//check if device is enabled in the device tree
		IoMgrSetDriverProperties(m_hInterface, DRVPROP_CONSISTENCY OR DRVPROP_BACKGROUND_GETDIAG);
	{END_IF}										
	// Map config-, input- and output parameters
	pParameter := IoMgrConfigGetParameter(m_pConnector, 1000);
	IF (pParameter <> 0) THEN
		pParameter^.dwDriverSpecific := ADR(_instance.udtInput);
	END_IF
	pParameter := IoMgrConfigGetParameter(m_pConnector, 2000);
		pParameter^.dwDriverSpecific := ADR(_instance.udtOutput);
	pParameter := IoMgrConfigGetParameter(m_pConnector, 3000);