Class Device
- Namespace
- Harp.Synchronizer
- Assembly
- Harp.Synchronizer.dll
Represents an observable source of messages from the Harp device connected at the specified serial port.
Synchronizer | |
---|---|
whoAmI | 1104 |
firmwareVersion | 1.7 |
hardwareTargets | 1.0 |
Registers
name | address | type | length | access | description | range | interfaceType |
---|---|---|---|---|---|---|---|
DigitalInputState | 32 | U16 | Event | State of the digital input pins. An event will be emitted when the value of any digital input pin changes. | DigitalInputs | ||
DigitalOutputState | 33 | U8 | Write | Status of the digital output pin 0. | DigitalOutputs | ||
DigitalInputsSamplingMode | 34 | U8 | Write | Sets the sampling mode for digital input pins. | DigitalInputsSamplingConfig | ||
DO0Config | 35 | U8 | Write | Configures how the DO0 pin behaves. | DO0ConfigMode | ||
EnableEvents | 40 | U8 | Write | Specifies all the active events in the device. | SynchronizerEvents |
[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.Synchronizer device. This field is constant.
public const int WhoAmI = 1104
Field Value
Properties
RegisterMap
Gets a read-only mapping from address to register type.
public static IReadOnlyDictionary<int, Type> RegisterMap { get; }
Property Value
Methods
CreateAsync(string)
Initializes a new instance of the asynchronous API to configure and interface with Synchronizer devices on the specified serial port.
public static Task<AsyncDevice> CreateAsync(string portName)
Parameters
portName
stringThe 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.