Table of Contents

Class Device

Namespace
Harp.Hobgoblin
Assembly
Harp.Hobgoblin.dll

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

Hobgoblin
whoAmI123
firmwareVersion0.1
hardwareTargets1.0

Registers

name address type length access description range interfaceType
DigitalInputState 32 U8 Event Reflects the state of the digital input lines. DigitalInputs
DigitalOutputSet 33 U8 Write, Event Sets the specified digital output lines. DigitalOutputs
DigitalOutputClear 34 U8 Write, Event Clears the specified digital output lines. DigitalOutputs
DigitalOutputToggle 35 U8 Write, Event Toggles the specified digital output lines. DigitalOutputs
DigitalOutputState 36 U8 Write, Event Writes the state of all digital output lines. DigitalOutputs
StartPulseTrain 37 U32 4 Write Starts a pulse train driving the specified digital output lines. StartPulseTrainPayload
StopPulseTrain 38 U8 Write, Event Stops the pulse train running on the specified digital output lines. DigitalOutputs
AnalogData 39 U16 3 Event Reports the sampled analog signal on each of the ADC input channels. The ADC is capped at 12 bits of resolution. AnalogDataPayload
[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.

Fields

Metadata

Gets the contents of the metadata file describing the Harp.Hobgoblin device registers.

WhoAmI

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

Properties

RegisterMap

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

Methods

CreateAsync(string, CancellationToken)

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