versadac  1
versadac - Scalable Recorder Firmware
frmgendv.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 : FRAME managment */
15 /* $Workfile:: frmgendv.h $*/
16 /* $Revision:: 3 $*/
17 /* $Date:: 30/08/10 10:04 $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* Frame generator API definition */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 #ifndef _FRMGENDV_H
26 #define _FRMGENDV_H
27 
28 APP_BOOL build_sendto_rpc_Connect_Rsp_Pos (LPST_MSG *pMsg,LPST_AREP lpArep, LPST_POOL lpstPoolTmpEc);
29 APP_BOOL build_sendto_rpc_Write_Rsp_Pos (LPST_MSG *pMsg,LPST_AREP lpArep);
30 APP_BOOL build_sendto_rpc_DControl_Rsp_Pos(LPST_MSG *pMsg,LPST_AREP lpArep);
31 APP_BOOL build_sendto_rpc_ccontrol_Req (LPST_MSG* ppMsg);
32 APP_BOOL build_sendto_rpc_Release_Rsp_Pos (LPST_MSG *pMsg,LPST_AREP lpArep);
33 APP_BOOL build_sendto_rpc_Read_Rsp_Pos(LPST_MSG *pMsg,LPST_AREP lpArep);
34 APP_BOOL build_sendto_rpc_lookup_rsp(LPST_MSG *ppMsg,LPST_AREP lpstArep, APP_LPBYTE byHandle);
35 APP_BOOL build_sendto_rpc_lookup_free_rsp(LPST_MSG *ppMsg,LPST_AREP lpstArep);
36 
37 APP_BOOL BuildBlocHeader(LPST_AREP pArep, APP_WORD wBlocType, APP_WORD wBlocLenReq);
38 
39 APP_BOOL AddBloc_ArBlock_Res (LPST_AREP pArep, LPST_ARBLOCK_RES lpstArBlockRes );
40 APP_BOOL AddBloc_IOCRBlock_Res (LPST_AREP pArep, LPST_IOCR_BLOCK_RES lpstIOCRBlockRes );
41 APP_BOOL AddBloc_AlarmBlock_Res (LPST_AREP pArep, LPST_ALARM_BLOCK_RES lpstAlarmBlockRes);
42 APP_BOOL AddBloc_WriteReadBlock_Res(LPST_AREP pArep, LPST_IOD_READ_WRITE lpstWriteReadRspPos, APP_WORD wBlocType);
43 APP_BOOL AddBloc_DControlBlock_Res (LPST_AREP pArep, LPST_CONTROL_REQ_BLOCK lpstControlBlockReq, APP_WORD wBlocType);
44 APP_BOOL AddBloc_IOXControlBlock_Req(LPST_AREP pArep, LPST_CONTROL_REQ_BLOCK lpstControlReqBlock, APP_WORD wBlocType);
45 APP_BOOL AddBloc_ReleaseBlock_Res (LPST_AREP pArep, LPST_CONTROL_REQ_BLOCK lpstReleaseBlockReq);
46 APP_BOOL AddBloc_SubModuleDiffBloc(LPST_AREP pArep, LPST_EXPECTED_SUBMODULE_STATE_RES lpstModifBlock);
47 APP_BOOL AddBloc_ModuleDiffBloc(LPST_AREP pArep, LPST_EXPECTED_MODULE_STATE_BLOCK_REQ lpstModifBlock);
48 APP_BOOL AddBloc_ApiBloc(LPST_AREP pArep, LPST_EXPECTED_API_MODULE_BLOCK_RES lpstModifBlock);
49 APP_BOOL AddBloc_DiffBloc(LPST_AREP pArep, LPST_EXPECTED_MODULE_BLOCK_RES lpstModifBlock);
50 APP_WORD GetRPCCallBuffer(LPST_AREP pArep);
51 APP_WORD ReleaseRPCCallBuffer(LPST_AREP pArep);
52 APP_BOOL AddBloc_ReadWriteData(LPST_AREP pArep, APP_LPBYTE pdata, APP_WORD wDataLen);
53 
54 /* define for array of log */
55 
56 #define _BUILD_SENDTO_RPC_CONNECT_RSP_POS_ 0
57 #define _BUILD_SENDTO_RPC_WRITE_RSP_POS_ 1
58 #define _BUILD_SENDTO_RPC_DCONTROL_RSP_POS_ 2
59 #define _BUILD_SENDTO_RPC_CCONTROL_REQ_ 3
60 #define _BUILD_SENDTO_RPC_RELEASE_RSP_POS_ 4
61 #define _BUILDBLOCHEADER_ 5
62 #define _ADDBLOC_ARBLOCK_RES_ 6
63 #define _ADDBLOC_IOCRBLOCK_RES_ 7
64 #define _ADDBLOC_ALARMBLOCK_RES_ 8
65 #define _ADDBLOC_WRITEREADBLOCK_RES_ 9
66 #define _ADDBLOC_DCONTROLBLOCK_RES_ 10
67 #define _ADDBLOC_IOXCONTROLBLOCK_REQ_ 11
68 #define _ADDBLOC_RELEASEBLOCK_RES_ 12
69 #define _GETRPCCALLBUFFER_ 13
70 
71 #define _ADDBLOC_SUBMODULE_DIFF_BLOC_ 14
72 #define _ADDBLOC_MODULE_DIFF_BLOC_ 15
73 #define _ADDBLOC_API_BLOC_ 16
74 #define _ADDBLOC_DIFF_BLOC_ 17
75 #define _BUILD_SENDTO_RPC_READ_RSP_POS_ 18
76 
77 #define NB_FRMGENERDEV_LOG 19
78 
79 #endif
Definition: message.h:1163