Download XPAC/PC - ICP DAS

Transcript
Examples
[C] pac_ClearDICNT
Example 1:
// If the module is 87k local
HANDLE hPort;
hPort = uart_Open(“”);
BYTE iSlot=1;
int iChannel=2;
int iDI_TotalCh=8;
BOOL iRet = pac_ClearDICNT(hPort, iSlot,iChannel,iDI_TotalCh);
uart_Close(hPort);
Example 2:
// If the module is 8k local
BYTE iSlot=1;
int iChannel=2;
int iDI_TotalCh=8;
BOOL iRet = pac_ClearDICNT(0, iSlot,iChannel,iDI_TotalCh);
[C] pac_ClearDICNT_MF
Example 1:
// If the module is 87k local
HANDLE hPort;
hPort = uart_Open(“”);
BYTE iSlot=1;
int iChannel=2;
int iDI_TotalCh=8;
BOOL iRet = pac_ClearDICNT_MF(hPort, iSlot,iChannel,iDI_TotalCh);
uart_Close(hPort);
PAC Standard API Manual, v1.1.0
Last Revised: January 2013
Page: 261
Copyright © 2013 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]