MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
|
Indicates the state of all of the user GPIO pins. More...
Classes | |
struct | mip::C::mip_system_gpio_state_data |
Typedefs | |
typedef struct mip_system_gpio_state_data | mip::C::mip_system_gpio_state_data |
Functions | |
void | mip::C::insert_mip_system_gpio_state_data (microstrain_serializer *serializer, const mip_system_gpio_state_data *self) |
void | mip::C::extract_mip_system_gpio_state_data (microstrain_serializer *serializer, mip_system_gpio_state_data *self) |
bool | mip::C::extract_mip_system_gpio_state_data_from_field (const mip_field_view *field, void *ptr) |
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.
typedef struct mip_system_gpio_state_data mip::C::mip_system_gpio_state_data |
void mip::C::extract_mip_system_gpio_state_data | ( | microstrain_serializer * | serializer, |
mip_system_gpio_state_data * | self | ||
) |
bool mip::C::extract_mip_system_gpio_state_data_from_field | ( | const mip_field_view * | field, |
void * | ptr | ||
) |
void mip::C::insert_mip_system_gpio_state_data | ( | microstrain_serializer * | serializer, |
const mip_system_gpio_state_data * | self | ||
) |