versadac  1
versadac - Scalable Recorder Firmware
hwif.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:: hwif.h $*/
16 /* $Revision:: 6 $*/
17 /* $Date:: 6/08/10 15:48 $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 #ifndef _HWIF_H
26 #define _HWIF_H
27 
28 APP_HANDLE HW_OpenRead ( APP_HANDLE lpszInterfaceName ,APP_DWORD dwInterfaceNumber );
29 APP_HANDLE HW_OpenWrite ( APP_HANDLE lpszInterfaceName ,APP_DWORD dwInterfaceNumber );
30 APP_BOOL HW_Close ( APP_HANDLE DeviceHandleRead ,APP_HANDLE DeviceHandleWrite );
31 APP_BOOL HW_SendData ( APP_LPVOID pData ,APP_WORD wLen , APP_HANDLE DeviceHandle );
32 APP_BOOL HW_SendDataSpecificPort( APP_LPVOID pData ,APP_WORD wLen , APP_DWORD dwPort, APP_HANDLE DeviceHandle);
33 APP_BOOL HW_ReceiveData ( APP_LPBYTE pBuffer ,APP_LPWORD pLength , APP_HANDLE DeviceHandle );
34 APP_BOOL HW_ReceiveDataPort ( APP_LPBYTE pBuffer ,APP_LPWORD pLength , APP_LPWORD lpwPort, APP_HANDLE DeviceHandle);
35 APP_BOOL HW_GetMacAddr ( APP_LPBYTE pMacAddr ,APP_HANDLE DeviceHandle );
36 APP_BOOL HW_GetMacAddrPort ( APP_LPBYTE pSrcMacAddr ,APP_BYTE byPortNumber, APP_HANDLE DeviceHandle );
37 APP_WORD OsArpGetMacAdr ( APP_DWORD dwIpAddr ,APP_LPBYTE MacAddr );
38 APP_DWORD OsDnsGetHostName ( APP_LPCHAR pStationName);
39 APP_VOID HW_SetSeletedDevice ( APP_DWORD dwCombo);
40 APP_DWORD HW_GetSeletedDevice ();
41 APP_DWORD HW_getInterfaceName (APP_LPCHAR lpszInterfaceName, APP_LPCHAR dwMasterIP);
42 APP_BOOL HW_CancelRead (APP_HANDLE Handle);
43 
44 #endif
45