MIP_SDK  v3.0.0
MicroStrain Communications Library for embedded systems
data_system.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include <mip/mip_descriptors.h>
5 #include <mip/mip_result.h>
6 #include <mip/mip_interface.h>
7 
8 #include <stdint.h>
9 #include <stddef.h>
10 #include <stdbool.h>
11 
12 #ifdef __cplusplus
13 namespace mip {
14 namespace C {
15 extern "C" {
16 
17 #endif // __cplusplus
18 
25 
27 // Descriptors
29 
30 enum
31 {
33 
38 
39 };
40 
42 // Shared Type Definitions
44 
45 
47 // Mip Fields
49 
73 
75 {
76  uint8_t result[16];
77 };
79 
83 
84 
92 
94 {
95  bool time_sync;
96  uint8_t last_pps_rcvd;
97 };
99 
103 
104 
130 
132 {
133  uint8_t states;
134 };
136 
140 
141 
150 
152 {
153  uint8_t gpio_id;
154  float value;
155 };
157 
161 
162 
165 
170 #ifdef __cplusplus
171 } // extern "C"
172 } // namespace C
173 } // namespace mip
174 #endif // __cplusplus
175 
mip::C::extract_mip_system_gpio_analog_value_data_from_field
bool extract_mip_system_gpio_analog_value_data_from_field(const mip_field_view *field, void *ptr)
Definition: data_system.c:102
mip::C::insert_mip_system_gpio_state_data
void insert_mip_system_gpio_state_data(microstrain_serializer *serializer, const mip_system_gpio_state_data *self)
Definition: data_system.c:68
mip
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
mip::C::insert_mip_system_built_in_test_data
void insert_mip_system_built_in_test_data(microstrain_serializer *serializer, const mip_system_built_in_test_data *self)
Definition: data_system.c:22
mip::C::MIP_DATA_DESC_SYSTEM_GPIO_STATE
@ MIP_DATA_DESC_SYSTEM_GPIO_STATE
Definition: data_system.h:36
mip::C::extract_mip_system_gpio_state_data_from_field
bool extract_mip_system_gpio_state_data_from_field(const mip_field_view *field, void *ptr)
Definition: data_system.c:78
mip::C::mip_system_built_in_test_data::result
uint8_t result[16]
Device-specific bitfield (128 bits). See device user manual. Bits are least-significant-byte first....
Definition: data_system.h:76
mip::C::mip_system_time_sync_status_data::time_sync
bool time_sync
True if sync with the PPS signal is currently valid. False if PPS feature is disabled or a PPS signal...
Definition: data_system.h:95
mip::C::extract_mip_system_gpio_analog_value_data
void extract_mip_system_gpio_analog_value_data(microstrain_serializer *serializer, mip_system_gpio_analog_value_data *self)
Definition: data_system.c:95
mip::C::mip_system_gpio_analog_value_data::value
float value
Value of the GPIO line in scaled volts.
Definition: data_system.h:154
mip::C::mip_system_gpio_state_data::states
uint8_t states
Bitfield containing the states for each GPIO pin. Bit 0 (0x01): pin 1 Bit 1 (0x02): pin 2 Bit 2 (0...
Definition: data_system.h:133
mip_result.h
microstrain::C::microstrain_serializer
Structure used for serialization.
Definition: serialization.h:42
mip::C::MIP_DATA_DESC_SYSTEM_GPIO_ANALOG_VALUE
@ MIP_DATA_DESC_SYSTEM_GPIO_ANALOG_VALUE
Definition: data_system.h:37
mip::C::mip_field_view
A structure representing a MIP field.
Definition: mip_field.h:52
mip::C::extract_mip_system_built_in_test_data
void extract_mip_system_built_in_test_data(microstrain_serializer *serializer, mip_system_built_in_test_data *self)
Definition: data_system.c:28
mip::C::mip_system_gpio_analog_value_data::gpio_id
uint8_t gpio_id
GPIO pin number starting with 1.
Definition: data_system.h:153
mip::C::mip_system_gpio_analog_value_data
Definition: data_system.h:151
mip_interface.h
mip::C::mip_system_gpio_state_data
Definition: data_system.h:131
mip::C::MIP_DATA_DESC_SYSTEM_TIME_SYNC_STATUS
@ MIP_DATA_DESC_SYSTEM_TIME_SYNC_STATUS
Definition: data_system.h:35
common.h
mip::C::mip_system_time_sync_status_data::last_pps_rcvd
uint8_t last_pps_rcvd
Elapsed time in seconds since last PPS was received, with a maximum value of 255.
Definition: data_system.h:96
mip::C::insert_mip_system_time_sync_status_data
void insert_mip_system_time_sync_status_data(microstrain_serializer *serializer, const mip_system_time_sync_status_data *self)
Definition: data_system.c:44
mip::C::extract_mip_system_time_sync_status_data
void extract_mip_system_time_sync_status_data(microstrain_serializer *serializer, mip_system_time_sync_status_data *self)
Definition: data_system.c:51
mip_descriptors.h
mip::C::mip_system_built_in_test_data
Definition: data_system.h:74
mip::C::mip_system_time_sync_status_data
Definition: data_system.h:93
mip::C::extract_mip_system_built_in_test_data_from_field
bool extract_mip_system_built_in_test_data_from_field(const mip_field_view *field, void *ptr)
Definition: data_system.c:34
mip::C::extract_mip_system_gpio_state_data
void extract_mip_system_gpio_state_data(microstrain_serializer *serializer, mip_system_gpio_state_data *self)
Definition: data_system.c:73
mip::C::MIP_SYSTEM_DATA_DESC_SET
@ MIP_SYSTEM_DATA_DESC_SET
Definition: data_system.h:32
mip::C::extract_mip_system_time_sync_status_data_from_field
bool extract_mip_system_time_sync_status_data_from_field(const mip_field_view *field, void *ptr)
Definition: data_system.c:58
mip::C::insert_mip_system_gpio_analog_value_data
void insert_mip_system_gpio_analog_value_data(microstrain_serializer *serializer, const mip_system_gpio_analog_value_data *self)
Definition: data_system.c:88
mip::C::MIP_DATA_DESC_SYSTEM_BUILT_IN_TEST
@ MIP_DATA_DESC_SYSTEM_BUILT_IN_TEST
Definition: data_system.h:34