MIP SDK  0.0.1
MicroStrain Communications Library for embedded systems
commands_system.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "descriptors.h"
4 #include "../mip_result.h"
5 
6 #include <stdint.h>
7 #include <stddef.h>
8 #include <stdbool.h>
9 
10 #ifdef __cplusplus
11 namespace mip {
12 namespace C {
13 extern "C" {
14 
15 #endif // __cplusplus
16 struct mip_interface;
17 struct mip_serializer;
18 struct mip_field;
19 
26 
28 // Descriptors
30 
31 enum
32 {
34 
39 
43 };
44 
46 // Shared Type Definitions
48 
53 
55 // Mip Fields
57 
71 
73 {
75  uint8_t mode;
76 
77 };
81 
83 {
84  uint8_t mode;
85 
86 };
90 
91 mip_cmd_result mip_system_write_comm_mode(struct mip_interface* device, uint8_t mode);
92 mip_cmd_result mip_system_read_comm_mode(struct mip_interface* device, uint8_t* mode_out);
96 
101 #ifdef __cplusplus
102 } // namespace C
103 } // namespace mip
104 } // extern "C"
105 #endif // __cplusplus
106 
mip_cmd_result mip_system_write_comm_mode(struct mip_interface *device, uint8_t mode)
Definition: commands_system.c:62
void insert_mip_system_comm_mode_command(mip_serializer *serializer, const mip_system_comm_mode_command *self)
Definition: commands_system.c:30
void extract_mip_system_comm_mode_command(mip_serializer *serializer, mip_system_comm_mode_command *self)
Definition: commands_system.c:40
void extract_mip_system_comm_mode_response(mip_serializer *serializer, mip_system_comm_mode_response *self)
Definition: commands_system.c:56
mip_cmd_result mip_system_default_comm_mode(struct mip_interface *device)
Definition: commands_system.c:102
mip_cmd_result mip_system_read_comm_mode(struct mip_interface *device, uint8_t *mode_out)
Definition: commands_system.c:76
void insert_mip_system_comm_mode_response(mip_serializer *serializer, const mip_system_comm_mode_response *self)
Definition: commands_system.c:51
mip_cmd_result
Represents the status of a MIP command.
Definition: mip_result.h:24
@ MIP_SYSTEM_COMMAND_COMM_MODE_NORMAL
Definition: commands_system.h:50
@ MIP_REPLY_DESC_SYSTEM_COM_MODE
Definition: commands_system.h:40
@ MIP_CMD_DESC_MIPNET_ENUMERATE
Definition: commands_system.h:35
@ MIP_CMD_DESC_SYSTEM_HARDWARE_CONTROL_2
Definition: commands_system.h:38
@ MIP_CMD_DESC_SYSTEM_COM_MODE
Definition: commands_system.h:36
@ MIP_CMD_DESC_SYSTEM_HARDWARE_CONTROL
Definition: commands_system.h:37
@ MIP_REPLY_DESC_SYSTEM_HARDWARE_CONTROL
Definition: commands_system.h:41
@ MIP_SYSTEM_CMD_DESC_SET
Definition: commands_system.h:33
@ MIP_REPLY_DESC_SYSTEM_HARDWARE_CONTROL_2
Definition: commands_system.h:42
@ MIP_SYSTEM_COMMAND_COMM_MODE_PASSTHRU
Definition: commands_system.h:49
@ MIP_SYSTEM_COMMAND_COMM_MODE_GPS
Definition: commands_system.h:52
@ MIP_SYSTEM_COMMAND_COMM_MODE_IMU
Definition: commands_system.h:51
mip_function_selector
Definition: descriptors.h:44
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
A structure representing a MIP field.
Definition: mip_field.h:53
State of the interface for communicating with a MIP device.
Definition: mip_interface.h:52
Structure used for serialization.
Definition: serialization.h:44
Definition: commands_system.h:73
uint8_t mode
Definition: commands_system.h:75
Definition: commands_system.h:83
uint8_t mode
Definition: commands_system.h:84