Represents a PCAN-hardware channel handle.
#define TPCANHandle WORD
TPCANHandle = Word;
using TPCANHandle = System.UInt16;
#define TPCANHandle System::UInt16
Imports TPCANHandle = System.UInt16
TPCANHandle = c_ushort
FD capable Hardware:
Some hardware can transmit using a flexible data rate (FD capable). Although there are no special PCAN-Handles to identify these hardware, it is possible to ask if a hardware is able to communicate using the FD protocol. The PCAN-Basic parameter PCAN_CHANNEL_FEATURES allows to investigate whether a hardware is FD capable before being initialized.
.NET Framework programming languages:
An alias is used to represent a Channel handle under Microsoft .NET in order to originate an homogeneity between all programming languages listed above.
Aliases are defined in the Peak.Can.Basic Namespace for C# and VB .NET. However, including a namespace does not include the defined aliases.
If it is wished to work with aliases, those must be copied to the working file, right after the inclusion of the Peak.Can.Basic Namespace. Otherwise, just use the native type, which in this case is a UInt16.
C#:
using System; using Peak.Can.Basic; using TPCANHandle = System.UInt16; // Alias's declaration for System.UInt16
Visual Basic:
Imports System Imports Peak.Can.Basic Imports TPCANHandle = System.UInt16 ' Alias declaration for System.UInt16
Copyright © 2017. PEAK-System Technik GmbH. All rights reserved.
|
Send feedback to this documentation
|