Table of Contents

Class Device

Namespace
Harp.Behavior
Assembly
Harp.Behavior.dll

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

Use the Harp device pattern to initialize the device, log data, and send commands to and receive messages from the Behavior board.

Harp Device Pattern

Check out the following in-depth guides to learn how to access the device functionality with the Harp.Behavior package:

[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.Behavior device registers.

WhoAmI

Represents the unique identity class of the Harp.Behavior 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 Behavior devices on the specified serial port.