versadac  1
versadac - Scalable Recorder Firmware
link.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 Controller */
14 /* Component : list manager */
15 /* $Workfile:: link.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 /* */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 
26 #ifndef LINK_H
27 #define LINK_H
28 
29 /*****************************************************************************/
30 /* link */
31 /*****************************************************************************/
32 typedef struct _ST_LINK ST_LINK, APP_FAR * PST_LINK;
33 typedef struct _ST_DESC_LINK ST_DESC_LINK, APP_FAR * PST_DESC_LINK;
34 
35 struct _ST_LINK
36 {
37  PST_LINK pNext;
38  PST_LINK pPrev;
39  PST_DESC_LINK pParent;
40 };
41 
43 {
44  ST_LINK stLink;
45  APP_DWORD dwOffset;
46  APP_WORD wPhase;
47  APP_WORD wNb;
48 };
49 
50 /*****************************************************************************/
51 /* Functions */
52 /*****************************************************************************/
53 /* link methods */
54 APP_VOID InitLink (PST_LINK pstLink);
55 APP_VOID InitDescLink (PST_DESC_LINK pstParent);
56 PST_DESC_LINK RemoveLink (PST_LINK pstLink);
57 PST_LINK PopLink (PST_DESC_LINK pstParent);
58 APP_VOID PushLink (PST_DESC_LINK pstParent,PST_LINK pstLink);
59 
60 APP_BOOL IsEmptyDescLink (PST_DESC_LINK pstParent);
61 APP_BOOL IsTailLink (PST_LINK pstLink);
62 PST_LINK GetHeadLink (PST_DESC_LINK pstParent);
63 PST_LINK GetLinkNext (PST_LINK pstLink);
64 
65 /*****************************************************************************/
66 #else
67 /* #error "Re-Include ERROR" */
68 #endif /* __DEF_TOOLS_H */
Definition: link.h:35
Definition: link.h:42