Skip to content

Commit 56b1ea5

Browse files
authored
Merge pull request #21 from uv-software/development
Release candidate 1 for version 0.5.1
2 parents 19a8b0e + 9222545 commit 56b1ea5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+6637
-1841
lines changed

Deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### CAN API V3 Wrapper Library for Peak-System PCAN® Interfaces (Windows®)
1+
### CAN API V3 Wrapper Library for PEAK-System PCAN® Interfaces (Windows®)
22

33
_Copyright © 2005-2024 Uwe Vogt, UV Software, Berlin ([email protected])_ \
44
_All rights reserved._

Doxygen/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ PROJECT_NUMBER = v0.5
5454
# for a project that appears at the top of each page and should give viewer a
5555
# quick idea about the purpose of the project. Keep the description short.
5656

57-
PROJECT_BRIEF = "CAN API V3 Wrapper Library for Peak-System PCAN Interfaces (Windows)"
57+
PROJECT_BRIEF = "CAN API V3 Wrapper Library for PEAK-System PCAN Interfaces (Windows)"
5858

5959
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
6060
# in the documentation. The maximum height of the logo should not exceed 55

Libraries/CANAPI/uvcanpcb.rc

20 Bytes
Binary file not shown.

Libraries/PeakCAN/PeakCAN.rc

24 Bytes
Binary file not shown.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### CAN API V3 Wrapper Library for Peak-System PCAN® Interfaces (Windows®)
1+
### CAN API V3 Wrapper Library for PEAK-System PCAN® Interfaces (Windows®)
22

33
_Copyright © 2005-2024 Uwe Vogt, UV Software, Berlin ([email protected])_
44

@@ -10,14 +10,14 @@ CAN API V3 is a wrapper specification to have a uniform CAN Interface API for va
1010

1111
## PCANBasic-Wrapper
1212

13-
This repo contains the source code for a CAN API V3 compatible wrapper library under Windows for PCAN Interfaces from Peak-System Technik GmbH.
13+
This repo contains the source code for a CAN API V3 compatible wrapper library under Windows for PCAN Interfaces from PEAK-System Technik GmbH.
1414
The wrapper library is build upon Peak´s PCANBasic DLL.
1515

1616
### CAN Interface API, Version 3
1717

1818
```C++
1919
/// \name PeakCAN API
20-
/// \brief CAN API V3 driver for Peak-System PCAN interfaces
20+
/// \brief CAN API V3 driver for PEAK-System PCAN interfaces
2121
/// \note See CCanApi for a description of the overridden methods
2222
/// \{
2323
class CPeakCAN : public CCanApi {
@@ -146,7 +146,7 @@ For a list of known bugs and caveats see tab [Issues](https://github.com/uv-soft
146146
147147
### PCANBasic DLL for Windows®
148148
149-
The PCANBasic DLL can be downloaded form [Peak-System](https://www.peak-system.com/) website. \
149+
The PCANBasic DLL can be downloaded form [PEAK-System](https://www.peak-system.com/) website. \
150150
Please note the copyright and license agreements.
151151
152152
### Wrapper Library for macOS® and Linux®
@@ -168,7 +168,7 @@ You can choose between one of them if you use these portions of this work in who
168168
### Trademarks
169169
170170
Windows is a registered trademark of Microsoft Corporation in the United States and/or other countries. \
171-
PCAN is a registered trademark of Peak-System Technik GmbH, Darmstadt, Germany. \
171+
PCAN is a registered trademark of PEAK-System Technik GmbH, Darmstadt, Germany. \
172172
Mac and macOS are trademarks of Apple Inc., registered in the U.S. and other countries. \
173173
Linux is a registered trademark of Linus Torvalds. \
174174
All other company, product and service names mentioned herein may be trademarks, registered trademarks, or service marks of their respective owners.

Sources/CANAPI/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
# we don't use the JSON files yet
33
can_dev.?
44
vanilla.?
5+
# other blacklisted files
6+
SerialCAN_Defines.h
7+
SocketCAN_Defines.h
8+
RocketCAN_Defines.h

Sources/CANAPI/CANAPI.h

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
///
7676
/// \author $Author: quaoar $
7777
//
78-
/// \version $Rev: 1286 $
78+
/// \version $Rev: 1294 $
7979
//
8080
/// \defgroup can_api CAN Interface API, Version 3
8181
/// \{
@@ -477,8 +477,16 @@ class CANCPP CCanApi {
477477
//
478478
virtual char *GetFirmwareVersion() = 0; // deprecated
479479

480-
/// \brief retrieves version information of the CAN API V3 driver
481-
/// as a zero-terminated string.
480+
#if (OPTION_CANAPI_LIBRARY != 0)
481+
/// \brief retrieves version information of the CAN API V3 wrapper
482+
/// library as a zero-terminated string.
483+
//
484+
/// \returns pointer to a zero-terminated string, or NULL on error.
485+
//
486+
virtual char *GetSoftwareVersion() = 0; // deprecated
487+
#endif
488+
/// \brief retrieves version information of the CAN API V3 wrapper
489+
/// (or loader) library as a zero-terminated string.
482490
//
483491
/// \returns pointer to a zero-terminated string, or NULL on error.
484492
//
@@ -528,4 +536,4 @@ class CANCPP CCanApi {
528536
/// \}
529537
#endif // CANAPI_H_INCLUDED
530538
/// \}
531-
// $Id: CANAPI.h 1286 2024-05-10 17:03:31Z quaoar $ Copyright (c) UV Software //
539+
// $Id: CANAPI.h 1294 2024-05-16 19:50:25Z quaoar $ Copyright (c) UV Software //

Sources/CANAPI/CANAPI_Defines.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
*
5050
* @brief CAN API V3 for generic CAN Interfaces - Definitions and Options
5151
*
52-
* @author $Author: eris $
52+
* @author $Author: quaoar $
5353
*
54-
* @version $Rev: 1270 $
54+
* @version $Rev: 1293 $
5555
*
5656
* @addtogroup can_api
5757
* @{
@@ -79,23 +79,25 @@ extern "C" {
7979

8080
/** @name Library IDs
8181
* @brief Unique IDs to identify a CAN API library (CAN API V1 compatible)
82+
* @note These defines are still valid, but IDs are taken from JSON files.
8283
* @{ */
8384
#define CANLIB_IXXAT_VCI 100 /**< IXXAT Virtual CAN interfaces */
8485
#define CANLIB_IXXAT_CAC 800 /**< IXXAT canAnalyzer/32 Client */
85-
#define CANLIB_PEAK_PCAN 200 /**< PEAK PCAN interfaces */
86+
#define CANLIB_PEAK_PCAN 200 /**< PEAK PCAN-Light interfaces */
8687
#define CANLIB_VECTOR_XL 300 /**< Vector XL-Driver library */
8788
#define CANLIB_PCANBASIC 400 /**< PEAK PCAN-Basic interfaces */
88-
#define CANLIB_RUSOKU_LT 500 /**< Rusuko TouCAN interfaces */
89+
#define CANLIB_RUSOKU_LT 500 /**< Rusoku TouCAN interfaces */
8990
#define CANLIB_KVASER_32 600 /**< Kvaser CANLIB (canlib32) */
9091
#define CANLIB_ROCKETCAN 700 /**< CAN-over-IP (RocketCAN) */
9192
#define CANLIB_SERIALCAN 900 /**< Serial-Line (SerialCAN) */
92-
#define CANLIB_SOCKETCAN 1000 /**< Linux CAN (SocketCAN) */
93+
#define CANLIB_SOCKETCAN 1000 /**< Linux-CAN (SocketCAN) */
9394
#define CANLIB_CANAPILIB (-1) /**< CAN API Main Library */
94-
/** @note Peak's PCAN-Light DLL is outdated, so the library ID can be reused.
95+
/** @note PCAN-Light is outdated, its ID is reused by macCAN-PeakCAN.
9596
* @} */
9697

9798
/** @name Library Names
9899
* @brief Filenames of the CAN API libraries (depending on the platform)
100+
* @note Theses defines are outdated. DLL names are taken from JSON files.
99101
* @{ */
100102
#if defined(__linux__)
101103
#define CANAPI_PLATFORM "Linux"
@@ -154,9 +156,9 @@ extern "C" {
154156
#define CAN_API_WEBSITE "www.uv-software.com"
155157
#define CAN_API_CONTACT "[email protected]"
156158
#define CAN_API_LICENSE "BSD-2-Clause OR GPL-3.0-or-later"
157-
#define CAN_API_COPYRIGHT "Copyright (c) 2005-20%02u, UV Software, Berlin"
158-
#define CAN_API_HAZARD_NOTE "Do not connect your CAN device to a real CAN network when using this program.\n" \
159-
"This can damage your application."
159+
#define CAN_API_COPYRIGHT "Copyright (c) 2004-20%02u, UV Software, Berlin"
160+
#define CAN_API_HAZARD_NOTE "If you connect your CAN device to a real CAN network when using this library,\n" \
161+
"you might damage your application."
160162
/** @} */
161163

162164

Sources/CANAPI/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
_Copyright &copy; 2004-2024 Uwe Vogt, UV Software, Berlin ([email protected])_ \
44
_All rights reserved._
55

6-
Version $Rev: 1289 $
6+
Version $Rev: 1312 $
77

88
# A CAN Interface Wrapper Specification
99

Sources/PeakCAN.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
#endif
5454
#endif
5555
#include "PeakCAN.h"
56-
#include "Version.h"
5756

5857
#include "can_defs.h"
5958
#include "can_api.h"

0 commit comments

Comments
 (0)