versadac  1
versadac - Scalable Recorder Firmware
fckrdcp.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:: fckrdcp.h $*/
16 /* $Revision:: 2 $*/
17 /* $Date:: 9/22/09 6:01p $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* Frame checker API definition */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 #ifndef _FRMCKRDCP_H
26 #define _FRMCKRDCP_H
27 
28 
29 APP_BOOL CheckDCPMCRFilters (LPST_MSG pMsg, APP_LPBOOL isPersonalIdent);
30 APP_VOID DCP_UC_DV (LPST_MSG pMsg, APP_BYTE bPDUBeginOffset);
31 APP_VOID DCP_MC_DV_Request (LPST_MSG pMsg, APP_BYTE bPDUBeginOffset);
32 APP_VOID DCP_MC_DV_Response (LPST_MSG pMsg, APP_BYTE bPDUBeginOffset);
33 APP_BOOL GetDCPMCR_Xid_Delay (LPST_MSG pMsg, APP_LPDWORD lpdwMCRXID, APP_LPWORD lpwMCDResponseDelay);
34 APP_WORD GetDCPUCR_Xid (LPST_MSG pMsg, APP_LPDWORD lpdwXid);
35 APP_BOOL CheckNameDCP (APP_LPBYTE lpdata, APP_LPBYTE APP_FAR *byDeviceName, APP_LPWORD lpwSizeName, APP_LPBOOL bHasToSave);
36 APP_BOOL CheckIPParamDCP (APP_LPBYTE lpdata, APP_LPDWORD lpwIP, APP_LPDWORD lpwMask, APP_LPDWORD lpwRouter,APP_LPBOOL bHasToSave);
37 APP_BOOL CheckDHCPParam (APP_LPBYTE lpdata, APP_LPWORD lwDhcp, APP_LPBYTE APP_FAR *lpbyDhcpData, APP_LPBOOL bHasToSave);
38 APP_BOOL checkDcpBlink (APP_LPBYTE lpdata, APP_LPBOOL bHaveToBlink);
39 
40 /**** Local Functions ****/
41 APP_BOOL Check_Response_Get_DCP_Service(APP_LPBYTE lpbyDCP_Frame, APP_WORD wDCPLength, APP_LPBYTE lpbyService);
42 APP_BOOL Check_Request_Get_DCP_Service(APP_LPBYTE lpbyDCP_Frame, APP_WORD wDCPLength, APP_LPBYTE lpbyService);
43 APP_BOOL Is_DCP_Request(APP_LPBYTE lpbyDCP_Frame);
44 #define DCP_IP_LEN 14
45 
46 /* bit state definition */
47 #define BIT0_CLEAR 0
48 #define BIT1_CLEAR 0
49 #define BIT2_CLEAR 0
50 #define BIT3_CLEAR 0
51 #define BIT4_CLEAR 0
52 #define BIT5_CLEAR 0
53 #define BIT6_CLEAR 0
54 #define BIT7_CLEAR 0
55 
56 #define BIT0_SET 1
57 #define BIT1_SET 2
58 #define BIT2_SET 4
59 #define BIT3_SET 8
60 #define BIT4_SET 16
61 #define BIT5_SET 32
62 #define BIT6_SET 64
63 #define BIT7_SET 128
64 
65 /* define for array of log */
66 
67 #define _CHECKDCPMCRFILTERS_ 0
68 #define _DCP_UC_ 1
69 #define _DCP_MC_REQUEST_ 2
70 #define _DCP_MC_RESPONSE_ 3
71 #define _GETDCPMCR_XID_DELAY_ 4
72 #define _GETDCPUCR_XID_ 5
73 #define _GETLISTOFOPTIONFROMUCSETREQUEST_ 6
74 #define _GETLISTOFOPTIONFROMUCGETREQUEST_ 7
75 #define _CHECKNAMEDCP_ 8
76 #define _CHECKIPPARAMDCP_ 9
77 #define _CHECK_RESPONSE_GET_DCP_SERVICE_ 10
78 #define _CHECK_REQUEST_GET_DCP_SERVICE_ 11
79 #define _CHECKDHCP_ 12
80 
81 #define NB_FCKRDCP_LOG 13
82 
83 
84 
85 
86 
87 #endif
Definition: message.h:1163