versadac  1
versadac - Scalable Recorder Firmware
fckrrpc.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:: fckrrpc.h $*/
16 /* $Revision:: 3 $*/
17 /* $Date:: 18/06/10 16:37 $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* Frame checker API definition */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 #ifndef _FRMCKRRPC_H
26 #define _FRMCKRRPC_H
27 
28 
29 APP_BOOL Check_Control_res (LPST_MSG* ppMsg);
30 APP_BOOL Check_Connect_req (LPST_MSG* ppMsg, LPST_AREP APP_FAR *lpArep);
31 APP_BOOL Check_Write_req (LPST_MSG* ppMsg, LPST_AREP APP_FAR *lpArep);
32 APP_BOOL Check_Read_req (LPST_MSG* ppMsg, LPST_AREP APP_FAR *lpArep);
33 APP_BOOL Check_DControl_req (LPST_MSG* ppMsg, LPST_AREP APP_FAR *lpArep);
34 APP_BOOL Check_Release_req (LPST_MSG* ppMsg, LPST_AREP APP_FAR *lpArep);
35 APP_BOOL Check_IO_connnect_req (LPST_MSG* ppMsg, APP_WORD wNumberOfAPI,APP_LPBYTE lpbyFirtsApiIndex, APP_WORD wIOCRType, APP_LPWORD wNumberOfinputCR, APP_LPDWORD dwLen, LPST_AREP lppArep, LPST_CR lpstCr);
36 APP_BOOL Check_expected_Module_req (LPST_MSG* ppMsg, APP_WORD wNumberOfAPI,APP_LPBYTE lpbyFirtsApiIndex, LPST_AREP lpstArep, APP_LPDWORD dwLen,APP_LPDWORD lpdwNbExpectedModule);
37 
38 APP_WORD checkIocrAndEC(LPST_MSG* ppMsg, LPST_AREP lpArep, LPST_IOCR_BLOCK_REQ lpstIOCR);
39 APP_WORD Encode_Rpc_Error(LPST_MSG pMsg, LPST_RPC_CALL lpRpcCall, LPST_AREP lpstArep);
40 
41 /* bit state definition */
42 #define BIT0_CLEAR 0
43 #define BIT1_CLEAR 0
44 #define BIT2_CLEAR 0
45 #define BIT3_CLEAR 0
46 #define BIT4_CLEAR 0
47 #define BIT5_CLEAR 0
48 #define BIT6_CLEAR 0
49 #define BIT7_CLEAR 0
50 
51 #define BIT0_SET 1
52 #define BIT1_SET 2
53 #define BIT2_SET 4
54 #define BIT3_SET 8
55 #define BIT4_SET 16
56 #define BIT5_SET 32
57 #define BIT6_SET 64
58 #define BIT7_SET 128
59 
60 
61 #endif
Definition: message.h:1163