TPCANTimestamp Structure

Defines a time-stamp of a CAN message. The time-stamp contains the number of microseconds since the start of Windows.

Definition

Namespace: Peak.Can.Basic.BackwardCompatibility
Assembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
C#
public struct TPCANTimestamp
Inheritance
Object    ValueType    TPCANTimestamp

Remarks

  Important

The TPCANTimestamp structure is intended only for retrieving the reception time of standard CAN messages of PCAN Channels initialized for standard CAN 2.0 A/B communication, this is, using the Initialize method for initialization and the Read(UInt16, TPCANMsg, TPCANTimestamp) method for data reading.

The members of this structure are sequentially byte aligned.

Calculation of total of microseconds : micros + 1000 * millis + 0x100000000 * 1000 * millis_overflow

Methods

EqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
GetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)

Fields

micros Represents the microseconds part of the timestamp (0..999).
millis Represents the base-value of the timestamp, in milliseconds (0.. 2^32-1).
millis_overflow Represents the roll-around value of millis.

See Also