Represents a PCAN bit rate register value. According with the programming language, this type can be a group of defined values or an enumeration.
Syntax
#define TPCANBaudrate WORD #define PCAN_BAUD_1M 0x0014 #define PCAN_BAUD_800K 0x0016 #define PCAN_BAUD_500K 0x001C #define PCAN_BAUD_250K 0x011C #define PCAN_BAUD_125K 0x031C #define PCAN_BAUD_100K 0x432F #define PCAN_BAUD_95K 0xC34E #define PCAN_BAUD_83K 0x852B #define PCAN_BAUD_50K 0x472F #define PCAN_BAUD_47K 0x1414 #define PCAN_BAUD_33K 0x8B2F #define PCAN_BAUD_20K 0x532F #define PCAN_BAUD_10K 0x672F #define PCAN_BAUD_5K 0x7F7F
{$Z2} TPCANBaudrate = ( PCAN_BAUD_1M = $0014, PCAN_BAUD_800K = $0016, PCAN_BAUD_500K = $001C, PCAN_BAUD_250K = $011C, PCAN_BAUD_125K = $031C, PCAN_BAUD_100K = $432F, PCAN_BAUD_95K = $C34E, PCAN_BAUD_83K = $852B, PCAN_BAUD_50K = $472F, PCAN_BAUD_47K = $1414, PCAN_BAUD_33K = $8B2F, PCAN_BAUD_20K = $532F, PCAN_BAUD_10K = $672F, PCAN_BAUD_5K = $7F7F );
public enum TPCANBaudrate : ushort { PCAN_BAUD_1M = 0x0014, PCAN_BAUD_800K = 0x0016, PCAN_BAUD_500K = 0x001C, PCAN_BAUD_250K = 0x011C, PCAN_BAUD_125K = 0x031C, PCAN_BAUD_100K = 0x432F, PCAN_BAUD_95K = 0xC34E, PCAN_BAUD_83K = 0x852B, PCAN_BAUD_50K = 0x472F, PCAN_BAUD_47K = 0x1414, PCAN_BAUD_33K = 0x8B2F, PCAN_BAUD_20K = 0x532F, PCAN_BAUD_10K = 0x672F, PCAN_BAUD_5K = 0x7F7F, }
public enum class TPCANBaudrate : UInt16 { PCAN_BAUD_1M = 0x0014, PCAN_BAUD_800K = 0x0016, PCAN_BAUD_500K = 0x001C, PCAN_BAUD_250K = 0x011C, PCAN_BAUD_125K = 0x031C, PCAN_BAUD_100K = 0x432F, PCAN_BAUD_95K = 0xC34E, PCAN_BAUD_83K = 0x852B, PCAN_BAUD_50K = 0x472F, PCAN_BAUD_47K = 0x1414, PCAN_BAUD_33K = 0x8B2F, PCAN_BAUD_20K = 0x532F, PCAN_BAUD_10K = 0x672F, PCAN_BAUD_5K = 0x7F7F, };
Public Enum TPCANBaudrate As UInt16 PCAN_BAUD_1M = &H14 PCAN_BAUD_800K = &H16 PCAN_BAUD_500K = &H1C PCAN_BAUD_250K = &H11C PCAN_BAUD_125K = &H31C PCAN_BAUD_100K = &H432F PCAN_BAUD_95K = &C34E PCAN_BAUD_83K = &852B PCAN_BAUD_50K = &H472F PCAN_BAUD_47K = &1414 PCAN_BAUD_33K = &8B2F PCAN_BAUD_20K = &H532F PCAN_BAUD_10K = &H672F PCAN_BAUD_5K = &H7F7F End Enum
TPCANBaudrate = c_ushort PCAN_BAUD_1M = TPCANBaudrate(0x0014) PCAN_BAUD_800K = TPCANBaudrate(0x0016) PCAN_BAUD_500K = TPCANBaudrate(0x001C) PCAN_BAUD_250K = TPCANBaudrate(0x011C) PCAN_BAUD_125K = TPCANBaudrate(0x031C) PCAN_BAUD_100K = TPCANBaudrate(0x432F) PCAN_BAUD_95K = TPCANBaudrate(0xC34E) PCAN_BAUD_83K = TPCANBaudrate(0x852B) PCAN_BAUD_50K = TPCANBaudrate(0x472F) PCAN_BAUD_47K = TPCANBaudrate(0x1414) PCAN_BAUD_33K = TPCANBaudrate(0x8B2F) PCAN_BAUD_20K = TPCANBaudrate(0x532F) PCAN_BAUD_10K = TPCANBaudrate(0x672F) PCAN_BAUD_5K = TPCANBaudrate(0x7F7F)
Name |
Value |
Description |
PCAN_BAUD_1M |
20 |
1 MBit/s. |
PCAN_BAUD_800K |
22 |
800 kBit/s. |
PCAN_BAUD_500K |
28 |
500 kBit/s. |
PCAN_BAUD_250K |
284 |
250 kBit/s. |
PCAN_BAUD_125K |
796 |
125 kBit/s. |
PCAN_BAUD_100K |
17199 |
100 kBit/s. |
PCAN_BAUD_95K |
49998 |
95,238 kBit/s. |
PCAN_BAUD_83K |
34091 |
83,333 kBit/s. |
PCAN_BAUD_50K |
18223 |
50 kBit/s. |
PCAN_BAUD_47K |
5140 |
47,619 kBit/s. |
PCAN_BAUD_33K |
35631 |
33,333 kBit/s. |
PCAN_BAUD_20K |
21295 |
20 kBit/s. |
PCAN_BAUD_10K |
26415 |
10 kBit/s. |
PCAN_BAUD_5K |
32639 |
5 kBit/s. |
CAN_Initialize (class-method: Initialize)
Copyright © 2017. PEAK-System Technik GmbH. All rights reserved.
|
Send feedback to this documentation
|