Table of Contents

Class Device

Namespace
Harp.TimestampGeneratorGen3
Assembly
Harp.TimestampGeneratorGen3.dll

Represents an observable source of messages from the Harp device connected at the specified serial port.

TimestampGeneratorGen3
whoAmI1158
firmwareVersion1.1
hardwareTargets1.2

Registers

name address type length access description range interfaceType
Config 32 U8 Write Specifies the device configuration ConfigurationFlags
DevicesConnected 33 U8 Event Reads whether the port has a device connected to (bitmask)
RepeaterStatus 34 U8 Write Check whether device is a repeater or spreading internal timestamp RepeaterFlags
BatteryRate 35 U8 Write Configure how often the battery calue is sent to computer BatteryRateConfiguration
Battery 36 Float Event Reads the current battery charge
BatteryThresholdLow 37 Float Write Specifies the low threshold from where the battery should start to be charged
BatteryThresholdHigh 38 Float Write Specifies the high threshold from where the battery stops being charged
BatteryCalibration0 39 U16 Write
BatteryCalibration1 40 U16 Write
[Combinator(MethodName = "Generate")]
[WorkflowElementCategory(ElementCategory.Source)]
public class Device : Device, INamedElement
Inheritance
Device
Implements
Inherited Members

Constructors

Device()

Initializes a new instance of the Device class.

public Device()

Fields

WhoAmI

Represents the unique identity class of the Harp.TimestampGeneratorGen3 device. This field is constant.

public const int WhoAmI = 1158

Field Value

int

Properties

RegisterMap

Gets a read-only mapping from address to register type.

public static IReadOnlyDictionary<int, Type> RegisterMap { get; }

Property Value

IReadOnlyDictionary<int, Type>

Methods

CreateAsync(string)

Initializes a new instance of the asynchronous API to configure and interface with TimestampGeneratorGen3 devices on the specified serial port.

public static Task<AsyncDevice> CreateAsync(string portName)

Parameters

portName string

The name of the serial port used to communicate with the Harp device.

Returns

Task<AsyncDevice>

A task that represents the asynchronous initialization operation. The value of the Result parameter contains a new instance of the AsyncDevice class.