Digital Inputs Outputs
The digital inputs outputs service is used to control digital inputs and outputs of the device. By configuring and requesting/releasing a digital input or output channel, the user can use the digital inputs or control the outputs in the main connector.
Digital Inputs
There are two kinds of inputs available, pure digital and analog-as-digital.
The DIN prefixed inputs, as well as ONSW, are purely digital and have a hardware debounce circuit. Due to this circuit the inputs should not be used for signals that change very rapidly (e.g. more frequently than a few times per second).
When requested the pure digital inputs are sampled periodically and each sampling is provided
through the digital_input_channel_status_publish_ind
message. Additional messages are
sent as the signal changes.
The AIN prefixed inputs are analog and are the same inputs as provided via the Analog Inputs. Using them through the digital inputs service is a simple way to re-purpose them as digital. The high and low state of the input is determined by a configurable hysteresis filter.
Note
While requested through the digital inputs services the configured inputs are no longer fully available through the Analog Inputs.
When requested the analog-as-ditigal inputs are sampled periodically and each sampling is provided
through the digital_input_channel_status_publish_ind
message. Additional messages on
change are not available for these inputs.
Reference
IPC Module - Digital Inputs Service IPC Module - Digital Outputs Service