versadac  1
versadac - Scalable Recorder Firmware
pncbdev.h
1 /*---------------------------------------------------------------------------*/
2 /* Copyright (C) 2006 Woodhead Software & Electonics. All rights reserved. */
3 /*---------------------------------------------------------------------------*/
4 /* This program is protected by international copyright. */
5 /* */
6 /* The use of this software including but not limited to its Source Code */
7 /* is subject to restrictions as agreed in the license agreement between */
8 /* you and Woodhead. */
9 /* Copying or distribution is not allowed unless expressly permitted */
10 /* according to your license agreement with Woodhead. */
11 /*---------------------------------------------------------------------------*/
12 /* */
13 /* Project : STACK PROFINET device */
14 /* Component : pncbdev header */
15 /* $Workfile:: pncbdev.h $*/
16 /* $Revision:: 4 $*/
17 /* $Date:: 3/06/10 10:57 $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* callback from stack to device user application header */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 #ifndef _PNCBDEV_H
26 #define _PNCBDEV_H
27 
28 /* Remanent Value */
29 #define PND_Is_Remanent 1
30 #define PND_Is_Not_Remanent 0
31 
32 
33 
34 
35 typedef struct _ST_PNIO_RW_STATUS
36 {
37  APP_BYTE ErrorCode;
38  APP_BYTE ErrorDecode;
39  APP_BYTE ErrorCode1;
40  APP_BYTE ErrorCode2;
42 
43 APP_WORD APP_FAR PND_CB_DcpDeviceBlinkInd (APP_DWORD dwDRContextInd);
44 APP_WORD APP_FAR PND_CB_DcpFactoryResetInd (APP_DWORD dwDRContextInd);
45 APP_WORD APP_FAR PND_CB_DcpDeviceNameInd (APP_DWORD dwDRContextInd, APP_LPBYTE lpDeviceName, APP_WORD wSizeName, APP_BYTE byRemanent);
46 APP_WORD APP_FAR PND_CB_DcpDeviceIpInd (APP_DWORD dwDRContextInd, APP_BYTE byType, APP_DWORD dwIp, APP_DWORD dwSubMask, APP_DWORD dwGateway, APP_BYTE byRemanent);
47 APP_WORD APP_FAR PND_CB_Start_Cnf_Pos (APP_DWORD dwDRContextInd);
48 APP_WORD APP_FAR PND_CB_Start_Cnf_Neg (APP_DWORD dwDRContextInd);
49 #ifdef DHCP_ACTIVATE
50 APP_WORD APP_FAR PND_CB_DcpDHCPInd (APP_DWORD dwDRContextInd, APP_DWORD dwDHCPType, APP_LPBYTE lpbyData, APP_WORD wSizeOfParam, APP_BYTE byRemanent);
51 #endif
52 
53 APP_WORD APP_FAR PND_CB_PlugSubModule_Cnf_Neg (APP_DWORD dwIRContextInd, APP_DWORD dwApi, APP_WORD wSlot, APP_WORD wSubSlot, APP_WORD wStatus);
54 APP_WORD APP_FAR PND_CB_PlugSubModule_Cnf_Pos (APP_DWORD dwIRContextInd, APP_DWORD dwApi, APP_WORD wSlot, APP_WORD wSubSlot);
55 APP_WORD APP_FAR PND_CB_PullSubModule_Cnf_Neg (APP_DWORD dwIRContextInd, APP_DWORD dwApi, APP_WORD wSlot, APP_WORD wSubSlot, APP_WORD wStatus);
56 APP_WORD APP_FAR PND_CB_PullSubModule_Cnf_Pos (APP_DWORD dwIRContextInd, APP_DWORD dwApi, APP_WORD wSlot, APP_WORD wSubSlot);
57 APP_WORD APP_FAR PND_CB_ArOpenedInd (APP_DWORD dwIRContextInd, LPST_AREP lpstArep, APP_LPDWORD lpdwARContextInd ,APP_WORD wARType, APP_DWORD dwARProperties, LPST_CLR_RPC_UUID lpstARUUID, LPST_CLR_RPC_UUID lpstCMIOUUID, APP_LPBYTE lpbyCMI_Mac, APP_LPBYTE lpbyCMI_Name, APP_WORD wCMI_Name_Len, APP_DWORD dwIPAddr);
58 APP_WORD APP_FAR PND_CB_ArCheckInd (APP_DWORD dwIRContextInd, APP_DWORD dwARContextInd, APP_DWORD dwApi, APP_WORD wSlot, APP_WORD wSubSlot, APP_DWORD dwRealModuleID, APP_DWORD dwExpectedModuleID, APP_DWORD dwRealSubModuleID, APP_DWORD dwExpectedSubmoduleID);
59 
60 APP_WORD APP_FAR PND_CB_ArClosedInd (APP_DWORD dwARContextInd);
61 APP_WORD APP_FAR PND_CB_ApplicationReady_Cnf_Pos(APP_DWORD dwARContextInd);
62 APP_WORD APP_FAR PND_CB_ApplicationReady_Cnf_Neg(APP_DWORD dwARContextInd);
63 APP_WORD APP_FAR PND_CB_ParamEndInd (APP_DWORD dwARContextInd);
64 APP_WORD APP_FAR PND_CB_ReleaseInd (APP_DWORD dwARContextInd);
65 APP_WORD APP_FAR PND_CB_Alarm_Ack (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_WORD wStatus);
66 APP_WORD APP_FAR PND_CB_WriteInd (APP_DWORD dwARContextInd, APP_DWORD dwDRContextInd, APP_DWORD dwApi, APP_WORD wIndex, APP_WORD wSlot, APP_WORD wSubSlot, APP_DWORD dwSizeOfData, APP_LPBYTE lpbyData, LPST_PNIO_RW_STATUS lpStatus, APP_LPBYTE lpbyAddData1, APP_LPBYTE lpbyAddData2);
67 APP_WORD APP_FAR PND_CB_ReadInd (APP_DWORD dwARContextInd, APP_DWORD dwDRContextInd, APP_DWORD dwApi, APP_WORD wIndex, APP_WORD wSlot, APP_WORD wSubSlot, APP_LPDWORD lpdwSizeOfData, APP_LPBYTE lpbyData, LPST_PNIO_RW_STATUS lpstStatus, APP_LPBYTE lpbyAddData1, APP_LPBYTE lpbyAddData2);
68 APP_WORD APP_FAR PND_CB_Set_Output_Cnf_Pos (APP_DWORD dwARContextInd, APP_LPVOID lpContext);
69 APP_WORD APP_FAR PND_CB_Set_Output_Cnf_Neg (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_WORD wStatus);
70 APP_WORD APP_FAR PND_CB_Get_Input_Cnf_Pos (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_LPBYTE lpData, APP_WORD wDataLen, APP_BYTE byIops);
71 APP_WORD APP_FAR PND_CB_Get_Input_Cnf_Neg (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_WORD wStatus);
72 APP_WORD APP_FAR PND_CB_Set_Output_Apdu_Cnf_Neg (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_WORD wStatus);
73 APP_WORD APP_FAR PND_CB_Set_Output_Apdu_Cnf_Pos (APP_DWORD dwARContextInd, APP_LPVOID lpContext);
74 APP_WORD APP_FAR PND_CB_Get_Output_Iocs_Cnf_Pos (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_BYTE byIOCS);
75 APP_WORD APP_FAR PND_CB_Get_Output_Iocs_Cnf_Neg (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_WORD wStatus);
76 APP_WORD APP_FAR PND_CB_Ctrl_Alarm_Ind (APP_DWORD dwARContextInd, APP_WORD wAlarmType, APP_DWORD wApi, APP_WORD wSlot, APP_WORD wSubSlot, APP_DWORD dwModuleIdentNumber, APP_DWORD dwSubModuleIdentNumber, APP_WORD wDataLength, APP_LPBYTE lpbydata);
77 
78 APP_WORD APP_FAR PND_CB_Get_Input_Apdu_Cnf_Neg (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_WORD wStatus);
79 APP_WORD APP_FAR PND_CB_Get_Input_Apdu_Cnf_Pos (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_BYTE byApduStatus);
80 
81 APP_WORD APP_FAR PND_CB_Set_Input_Iocs_Cnf_Pos (APP_DWORD dwARContextInd, APP_LPVOID lpContext);
82 APP_WORD APP_FAR PND_CB_Set_Input_Iocs_Cnf_Neg (APP_DWORD dwARContextInd, APP_LPVOID lpContext, APP_WORD wStatus);
83 
84 
85 #ifdef NEW_INPUT_DATA_MODE
86 APP_WORD APP_FAR PND_CB_NewInputInd (APP_DWORD dwARContextInd, APP_DWORD dwDRContextInd);
87 APP_WORD APP_FAR PND_CB_NewInputAPDUDataStatus (APP_DWORD dwARContextInd, APP_DWORD dwDRContextInd);
88 #endif
89 
90 #endif
Definition: pncbdev.h:35