Table of Contents

Hobgoblin device

WhoAmI
123
Log files
Hobgoblin_<address>.bin

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

Registers

The core registers implemented by every Harp device, such as WhoAmI and OperationControl, are described in the Device Registers and Operation specification.

Name Address Type Access DefaultĀ [range] Description
DigitalInputState 32 U8 Event Reflects the state of the digital input lines.
DigitalOutputSet 33 U8 Write, Event Sets the specified output lines and reports each pulse start. Setting a line stops its pulse train.
DigitalOutputClear 34 U8 Write Clears the specified output lines. Clearing a line stops its pulse train.
DigitalOutputToggle 35 U8 Write Toggles the specified output lines. Toggling a line stops its pulse train.
DigitalOutputState 36 U8 Write Writes the state of all output lines. Writing the state stops every pulse train.
AnalogData 37 U16[3] Event Reports the sampled analog signal on each of the ADC input channels. The ADC is capped at 12 bits of resolution.
PulseTrainGP15 38 U32[3] Write, Event Starts a pulse train on digital output GP15, or stops it if the pulse width is zero.
PulseTrainGP16 39 U32[3] Write, Event Starts a pulse train on digital output GP16, or stops it if the pulse width is zero.
PulseTrainGP17 40 U32[3] Write, Event Starts a pulse train on digital output GP17, or stops it if the pulse width is zero.
PulseTrainGP18 41 U32[3] Write, Event Starts a pulse train on digital output GP18, or stops it if the pulse width is zero.
PulseTrainGP19 42 U32[3] Write, Event Starts a pulse train on digital output GP19, or stops it if the pulse width is zero.
PulseTrainGP20 43 U32[3] Write, Event Starts a pulse train on digital output GP20, or stops it if the pulse width is zero.
PulseTrainGP21 44 U32[3] Write, Event Starts a pulse train on digital output GP21, or stops it if the pulse width is zero.
PulseTrainGP22 45 U32[3] Write, Event Starts a pulse train on digital output GP22, or stops it if the pulse width is zero.
PulseEventEnable 46 U8 Write 255 Specifies the digital output lines whose pulse trains report the start of each pulse on DigitalOutputSet.