MIP_SDK  v3.0.0
MicroStrain Communications Library for embedded systems
Classes
(0xA0,0x03) Gpio State

Indicates the state of all of the user GPIO pins. More...

Classes

struct  mip::data_system::GpioState
 

Detailed Description

Indicates the state of all of the user GPIO pins.

This message can be used to correlate external signals with the device time or other data quantities. It should generally be used with slow GPIO signals as brief pulses shorter than the scheduled data rate will be missed.

To synchronize with faster signals and pulses, or for more accurate timestamping, utilize the event system and set the GPIO feature to TIMESTAMP in the 3DM GPIO Configuration command (0x0C,0x41).

These GPIO states are sampled within one base period of the system data descriptor set.

To obtain valid readings, the desired pin(s) must be configured to the GPIO feature (either input or output behavior) using the 3DM GPIO Configuration command (0x0C,0x41). Other gpio features may work on some devices but this is not guaranteed. Consult the factory before producing a design relying on reading pins configured to other feature types.