versadac  1
versadac - Scalable Recorder Firmware
tools.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 : */
15 /* $Workfile:: tools.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 __TOOLS_H__
27  #define __TOOLS_H__
28 
29 APP_BOOL CompMacAdr ( APP_LPBYTE MacAddr1 , APP_LPBYTE MacAddr2 );
30 
31 
32 APP_WORD schedule_remove ( LPST_CBF APP_FAR* lpCbf );
33 APP_WORD schedule_insert ( LPST_CBF APP_FAR* lpCbf , APP_DWORD dwExpiry,APP_DWORD dwPeriod,APP_WORD wNb,APP_LPVOID lpData,APP_WORD wId,APP_DWORD dwTic,APP_LPBYTE lpSync);
34 
35 /*interface provider*/
36 APP_WORD ppm_insert (LPST_CBF APP_FAR* lpCbf,APP_WORD wPhase,APP_WORD wReductionRatio,APP_DWORD dwPeriod,APP_WORD wNb,APP_LPVOID lpCrep, APP_DWORD dwUniqueId);
37 APP_WORD ppm_remove (LPST_CBF APP_FAR* lpCbf,APP_LPVOID lpCrep , APP_DWORD dwId);
38 APP_WORD cb_ppm_sendframe (APP_LPVOID lpData, APP_WORD wDummy);
39 
40 /*interface consumer*/
41 APP_WORD cpm_insert (LPST_CBF APP_FAR* lpCbf,APP_DWORD dwExpiry,APP_DWORD dwPeriod,APP_WORD wNb,APP_LPVOID lpCrep, APP_DWORD dwId);
42 APP_WORD cpm_remove (LPST_CBF APP_FAR* lpCbf,APP_LPVOID lpCrep , APP_DWORD dwId);
43 APP_WORD cb_cpm_watchdog (APP_LPVOID lpData, APP_WORD wDummy);
44 
45 /*interface write*/
46 /*#define A_DATA_REQ(a,b) HW_SendData (a, b)*/
47 #define A_DATA_REQ(a,b,c) a_data_req(a, b, c)
48 APP_WORD a_data_req (APP_LPBYTE pFrame , APP_WORD wLen, APP_LPDWORD lpvHandle);
49 
50 #define A_DATA_REQ_SPEC_PORT(a,b,c, d) a_data_req_specific_port(a, b, c, d)
51 APP_WORD a_data_req_specific_port (APP_LPBYTE lpFrame , APP_WORD wLen, APP_DWORD dwPort, APP_LPDWORD lpvHandle);
52 
53 #endif
Definition: schedule.h:40