Defines a time-stamp of a CAN message. The time-stamp contains the number of microseconds since the start of Windows.
Syntax
typedef struct { DWORD millis; WORD millis_overflow; WORD micros; } TPCANTimestamp;
TPCANTimestamp = record millis: Longword; millis_overflow: Word; micros: Word; end;
public struct TPCANTimestamp { public uint millis; public ushort millis_overflow; public ushort micros; }
public value struct TPCANTimestamp { UInt32 millis; UInt16 millis_overflow; UInt16 micros; };
Public Structure TPCANTimestamp Public millis As UInt32 Public millis_overflow As UInt16 Public micros As UInt16 End Structure
from ctypes import * class TPCANTimestamp (Structure): _fields_ = [ ("millis", c_uint), ("millis_overflow", c_ushort), ("micros", c_ushort) ]
The members of this structure are sequentially byte aligned.
Calculation of total of microseconds : micros + 1000 * millis + 0x100000000 * 1000 * millis_overflow
Name |
Description |
millis |
Base-value: milliseconds: 0.. 2^32-1. |
millis_overflow |
Roll-arounds of millis. |
micros |
Microseconds: 0..999. |
Copyright © 2017. PEAK-System Technik GmbH. All rights reserved.
|
Send feedback to this documentation
|