MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
|
void extract_mip_base_comm_speed_command(microstrain_serializer *serializer, mip_base_comm_speed_command *self)
Definition: commands_base.c:188
@ MIP_BASE_GPS_TIME_UPDATE_COMMAND_FIELD_ID_TIME_OF_WEEK
Time of week in seconds.
Definition: commands_base.h:365
uint8_t port
Port ID number, starting with 1. When function is SAVE, LOAD, or DEFAULT, this can be 0 to apply to a...
Definition: commands_base.h:327
Definition: commands_base.h:201
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
mip_cmd_result mip_base_get_device_descriptors(mip_interface *device, uint16_t *descriptors_out, size_t descriptors_out_max, uint8_t *descriptors_out_count)
Definition: commands_base.c:91
void extract_mip_base_get_extended_descriptors_response(microstrain_serializer *serializer, mip_base_get_extended_descriptors_response *self)
Definition: commands_base.h:266
@ MIP_CMD_DESC_BASE_PING
Definition: commands_base.h:34
void insert_mip_base_get_device_descriptors_response(microstrain_serializer *serializer, const mip_base_get_device_descriptors_response *self)
Definition: commands_base.h:60
char model_number[16]
Definition: commands_base.h:64
char lot_number[16]
Definition: commands_base.h:66
@ MIP_CMD_DESC_BASE_CONTINUOUS_BIT
Definition: commands_base.h:41
struct mip_base_soft_reset_command mip_base_soft_reset_command
No parameters (empty struct not allowed in C)
Definition: commands_base.h:404
Definition: commands_base.h:381
char model_name[16]
Definition: commands_base.h:63
@ MIP_CMD_DESC_BASE_BUILT_IN_TEST
Definition: commands_base.h:38
mip_cmd_result
Represents the status of a MIP command.
Definition: mip_result.h:27
@ MIP_BASE_GPS_TIME_UPDATE_COMMAND_FIELD_ID_WEEK_NUMBER
Week number.
Definition: commands_base.h:364
@ MIP_CMD_DESC_BASE_SOFT_RESET
Definition: commands_base.h:44
void insert_mip_base_continuous_bit_response(microstrain_serializer *serializer, const mip_base_continuous_bit_response *self)
void microstrain_extract_u32(microstrain_serializer *serializer, uint32_t *value)
mip_cmd_result mip_base_get_device_info(mip_interface *device, mip_base_device_info *device_info_out)
Definition: commands_base.c:71
Definition: commands_base.h:335
uint32_t baud
Port baud rate. Must be a supported rate.
Definition: commands_base.h:328
struct microstrain::C::microstrain_serializer microstrain_serializer
Structure used for serialization.
struct mip_base_built_in_test_command mip_base_built_in_test_command
No parameters (empty struct not allowed in C)
Definition: commands_base.h:226
@ MIP_CMD_DESC_BASE_COMM_SPEED
Definition: commands_base.h:42
uint8_t result[16]
Device-specific bitfield (128 bits). See device user manual. Bits are least-significant-byte first....
Definition: commands_base.h:292
mip_cmd_result mip_base_resume(mip_interface *device)
Definition: commands_base.c:131
Definition: commands_base.h:177
@ MIP_REPLY_DESC_BASE_GET_EXTENDED_DESCRIPTORS
Definition: commands_base.h:51
@ MIP_REPLY_DESC_BASE_GPS_CORRELATION_WEEK
Definition: commands_base.h:49
@ MIP_CMD_DESC_BASE_SET_TO_IDLE
Definition: commands_base.h:35
void extract_mip_base_built_in_test_response(microstrain_serializer *serializer, mip_base_built_in_test_response *self)
mip_base_device_info device_info
Definition: commands_base.h:179
void microstrain_extract_u8(microstrain_serializer *serializer, uint8_t *value)
void insert_mip_base_comm_speed_response(microstrain_serializer *serializer, const mip_base_comm_speed_response *self)
Definition: commands_base.c:201
uint32_t baud
Port baud rate. Must be a supported rate.
Definition: commands_base.h:338
struct mip_base_continuous_bit_command mip_base_continuous_bit_command
No parameters (empty struct not allowed in C)
Definition: commands_base.h:288
mip_cmd_result mip_base_set_idle(mip_interface *device)
Definition: commands_base.c:67
void microstrain_insert_u32(microstrain_serializer *serializer, uint32_t value)
struct mip_base_resume_command mip_base_resume_command
No parameters (empty struct not allowed in C)
Definition: commands_base.h:249
void extract_mip_base_device_info(microstrain_serializer *serializer, mip_base_device_info *self)
Definition: commands_base.c:42
@ MIP_REPLY_DESC_BASE_GPS_CORRELATION_SECONDS
Definition: commands_base.h:50
void insert_mip_base_get_extended_descriptors_response(microstrain_serializer *serializer, const mip_base_get_extended_descriptors_response *self)
uint32_t value
Week number or time of week, depending on the field_id.
Definition: commands_base.h:385
Structure used for serialization.
Definition: serialization.h:42
mip_cmd_result mip_base_get_extended_descriptors(mip_interface *device, uint16_t *descriptors_out, size_t descriptors_out_max, uint8_t *descriptors_out_count)
Definition: commands_base.c:135
char serial_number[16]
Definition: commands_base.h:65
Definition: commands_base.h:228
uint32_t result
Definition: commands_base.h:230
mip_cmd_result mip_base_soft_reset(mip_interface *device)
Definition: commands_base.c:345
void microstrain_insert_u8(microstrain_serializer *serializer, uint8_t value)
Definition: commands_base.h:324
void insert_mip_base_device_info(microstrain_serializer *serializer, const mip_base_device_info *self)
Definition: commands_base.c:22
void extract_mip_base_gps_time_update_command(microstrain_serializer *serializer, mip_base_gps_time_update_command *self)
Definition: commands_base.c:316
void insert_mip_base_get_device_info_response(microstrain_serializer *serializer, const mip_base_get_device_info_response *self)
@ MIP_REPLY_DESC_BASE_DEVICE_INFO
Definition: commands_base.h:46
uint16_t firmware_version
Definition: commands_base.h:62
mip_cmd_result mip_base_save_comm_speed(mip_interface *device, uint8_t port)
Definition: commands_base.c:262
struct mip_base_set_idle_command mip_base_set_idle_command
No parameters (empty struct not allowed in C)
Definition: commands_base.h:163
uint8_t port
Port ID number, starting with 1. When function is SAVE, LOAD, or DEFAULT, this can be 0 to apply to a...
Definition: commands_base.h:337
mip_base_gps_time_update_command_field_id field_id
Determines how to interpret value.
Definition: commands_base.h:384
void insert_mip_base_gps_time_update_command(microstrain_serializer *serializer, const mip_base_gps_time_update_command *self)
Definition: commands_base.c:304
mip_cmd_result mip_base_continuous_bit(mip_interface *device, uint8_t *result_out)
Definition: commands_base.c:155
struct mip_base_get_device_descriptors_command mip_base_get_device_descriptors_command
No parameters (empty struct not allowed in C)
Definition: commands_base.h:199
State of the interface for communicating with a MIP device.
Definition: mip_interface.h:44
Definition: commands_base.h:290
mip_cmd_result mip_base_read_comm_speed(mip_interface *device, uint8_t port, uint32_t *baud_out)
Definition: commands_base.c:232
@ MIP_REPLY_DESC_BASE_COMM_SPEED
Definition: commands_base.h:53
@ MIP_CMD_DESC_BASE_GET_DEVICE_INFO
Definition: commands_base.h:36
@ MIP_CMD_DESC_BASE_GET_EXTENDED_DESCRIPTORS
Definition: commands_base.h:40
void extract_mip_base_get_device_info_response(microstrain_serializer *serializer, mip_base_get_device_info_response *self)
uint16_t descriptors[253]
Definition: commands_base.h:203
uint8_t descriptors_count
Definition: commands_base.h:269
mip_cmd_result mip_base_write_gps_time_update(mip_interface *device, mip_base_gps_time_update_command_field_id field_id, uint32_t value)
Definition: commands_base.c:329
void extract_mip_base_get_device_descriptors_response(microstrain_serializer *serializer, mip_base_get_device_descriptors_response *self)
mip_base_gps_time_update_command_field_id
Definition: commands_base.h:362
@ MIP_BASE_COMM_SPEED_COMMAND_ALL_PORTS
Definition: commands_base.h:322
mip_cmd_result mip_base_ping(mip_interface *device)
Definition: commands_base.c:63
@ MIP_CMD_DESC_BASE_GET_DEVICE_DESCRIPTORS
Definition: commands_base.h:37
mip_cmd_result mip_base_built_in_test(mip_interface *device, uint32_t *result_out)
Definition: commands_base.c:111
char device_options[16]
Definition: commands_base.h:67
uint16_t descriptors[253]
Definition: commands_base.h:268
struct mip_base_get_device_info_command mip_base_get_device_info_command
No parameters (empty struct not allowed in C)
Definition: commands_base.h:175
@ MIP_TIME_FORMAT_GPS
GPS time, a = week number since 1980, b = time of week in milliseconds.
Definition: commands_base.h:76
mip_time_format
Definition: commands_base.h:74
struct mip_base_ping_command mip_base_ping_command
No parameters (empty struct not allowed in C)
Definition: commands_base.h:147
@ MIP_REPLY_DESC_BASE_BUILT_IN_TEST
Definition: commands_base.h:48
@ MIP_BASE_CMD_DESC_SET
Definition: commands_base.h:32
mip_cmd_result mip_base_write_comm_speed(mip_interface *device, uint8_t port, uint32_t baud)
Definition: commands_base.c:216
struct mip_base_get_extended_descriptors_command mip_base_get_extended_descriptors_command
No parameters (empty struct not allowed in C)
Definition: commands_base.h:264
void extract_mip_base_continuous_bit_response(microstrain_serializer *serializer, mip_base_continuous_bit_response *self)
void extract_mip_base_comm_speed_response(microstrain_serializer *serializer, mip_base_comm_speed_response *self)
Definition: commands_base.c:208
uint8_t descriptors_count
Definition: commands_base.h:204
@ MIP_CMD_DESC_BASE_GPS_TIME_UPDATE
Definition: commands_base.h:43
@ MIP_REPLY_DESC_BASE_DEVICE_DESCRIPTORS
Definition: commands_base.h:47
uint32_t mip_commanded_test_bits_gq7
Definition: commands_base.h:91
@ MIP_CMD_DESC_BASE_RESUME
Definition: commands_base.h:39
@ MIP_REPLY_DESC_BASE_CONTINUOUS_BIT
Definition: commands_base.h:52
mip_cmd_result mip_base_default_comm_speed(mip_interface *device, uint8_t port)
Definition: commands_base.c:290
mip_cmd_result mip_base_load_comm_speed(mip_interface *device, uint8_t port)
Definition: commands_base.c:276
mip_function_selector
Definition: mip_descriptors.h:42
void insert_mip_base_comm_speed_command(microstrain_serializer *serializer, const mip_base_comm_speed_command *self)
Definition: commands_base.c:176
void insert_mip_base_built_in_test_response(microstrain_serializer *serializer, const mip_base_built_in_test_response *self)