versadac  1
versadac - Scalable Recorder Firmware
dcpucr.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 : DCP multi cast header */
15 /* $Workfile:: dcpucr.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 /* DCP uni cast header */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 
26 #ifndef _DCPUCR_H
27 #define _DCPUCR_H
28 
29 #define DCPUCR_POWERON 0
30 #define DCPUCR_OPEN 1
31 #define DCPUCR_WACK 2
32 
33 #define DCPUCR_INDEX_MAIN_OPTION 0
34 #define DCPUCR_INDEX_SUB_OPTION 1
35 
36 APP_DWORD APP_FAR dcpucr_set_req (LPST_MSG* ppMsg);
37 APP_DWORD APP_FAR dcpucr_get_req (LPST_MSG* ppMsg);
38 APP_DWORD APP_FAR dcpucr_activate_req (LPST_MSG* ppMsg);
39 APP_DWORD APP_FAR dcpucr_timeout (LPST_MSG* ppMsg);
40 APP_DWORD APP_FAR dcpucr_set_rsp_pos (LPST_MSG* ppMsg);
41 APP_DWORD APP_FAR dcpucr_set_rsp_neg (LPST_MSG* ppMsg);
42 APP_DWORD APP_FAR dcpucr_get_rsp_pos (LPST_MSG* ppMsg);
43 APP_DWORD APP_FAR dcpucr_get_rsp_neg (LPST_MSG* ppMsg);
44 APP_DWORD APP_FAR dcpucr_close_req (LPST_MSG* ppMsg);
45 APP_DWORD APP_FAR dcpucr_build_and_send_rsp (LPST_MSG* ppMsg, APP_BYTE wServiceID);
46 
47 #define RETURN_RMPM_ID_DCPUCR_INIT_CNF_POS (*ppMsg)->dwQueue = ID_QUEUE_RMPM; (*ppMsg)->wCodeFnct = ID_RMPM_DCPUCR_ACTIVATE_CNF_POS; return SEND_MESSAGE
48 #define RETURN_RMPM_GET_IND (*ppMsg)->dwQueue = ID_QUEUE_RMPM; (*ppMsg)->wCodeFnct = ID_RMPM_DCPUCR_GET_IND; return SEND_MESSAGE
49 #define RETURN_RMPM_SET_IND (*ppMsg)->dwQueue = ID_QUEUE_RMPM; (*ppMsg)->wCodeFnct = ID_RMPM_DCPUCR_SET_IND; return SEND_MESSAGE
50 
51 
52 
53 #endif
Definition: message.h:1163