drivers/can_peak_win32/cancfg.h
author Laurent Bessard
Wed, 31 Oct 2012 12:06:29 +0100
changeset 761 efff55931763
parent 713 ca2c2dad3a22
permissions -rw-r--r--
Fix bug when Drag'n Dropping located variables on Windows
713
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
     1
/*
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
     2
This file is part of CanFestival, a library implementing CanOpen Stack. 
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
     3
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
     4
Copyright (C): Edouard TISSERANT and Francis DUPIN
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
     5
Modified by: Jaroslav Fojtik
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
     6
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
     7
See COPYING file for copyrights details.
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
     8
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
     9
This library is free software; you can redistribute it and/or
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    10
modify it under the terms of the GNU Lesser General Public
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    11
License as published by the Free Software Foundation; either
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    12
version 2.1 of the License, or (at your option) any later version.
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    13
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    14
This library is distributed in the hope that it will be useful,
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    15
but WITHOUT ANY WARRANTY; without even the implied warranty of
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    17
Lesser General Public License for more details.
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    18
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    19
You should have received a copy of the GNU Lesser General Public
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    20
License along with this library; if not, write to the Free Software
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    21
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    22
*/
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    23
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    24
#ifndef __CANCFG_H__
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    25
#define __CANCFG_H__
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    26
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    27
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    28
#if defined(__CYGWIN__)
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    29
#include <windef.h>
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    30
#else
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    31
#include <windows.h>
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    32
#endif
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    33
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    34
// Following part of the file is copied by configure script
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    35
// from choosen PcanLight header file
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    36
//-------------------------------------------------------------------------------
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    37
//-------------------------------------------------------------------------------
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    38
//-------------------------------------------------------------------------------
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    39
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    40
#ifdef PCAN2_HEADER_
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    41
 #include "pcan_2usb.h"
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    42
 #define CAN_Init(wBTR0BTR1,Type) CAN2_Init(wBTR0BTR1,Type)
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    43
 #define CAN_Close()		  CAN2_Close()
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    44
 #define CAN_Status()		  CAN2_Status()
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    45
 #define CAN_Write(PCANMsg)	  CAN2_Write(PCANMsg)
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    46
 #define CAN_Read(PCANMsg)	  CAN2_Read(PCANMsg)  
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    47
 #define CAN_VersionInfo(lpszTextBuff) CAN2_VersionInfo(lpszTextBuff)
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    48
 #define CAN_ResetClient()       CAN2_ResetClient() 
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    49
 #define CAN_MsgFilter(FromID,ToID,Type) CAN2_MsgFilter(FromID,ToID,Type)
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    50
 #define CAN_ReadEx(pMsgBuff,pRcvTime) CAN2_ReadEx(pMsgBuff,pRcvTime)
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    51
 #define CAN_SetRcvEvent(hEvent) CAN2_SetRcvEvent(hEvent)
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    52
#else
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    53
 #include "pcan_usb.h"
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    54
#endif
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    55
ca2c2dad3a22 Fixed PEAK Win 32 driver, for PEAK Light API 1.x and 2.x
JaFojtik
parents:
diff changeset
    56
#endif