MIP_SDK
v3.0.0
MicroStrain Communications Library for embedded systems
|
Go to the documentation of this file.
16 namespace commands_system {
47 static constexpr
const uint8_t MIP_SYSTEM_COMMAND_COMM_MODE_PASSTHRU = 0x00;
48 static constexpr
const uint8_t MIP_SYSTEM_COMMAND_COMM_MODE_NORMAL = 0x01;
49 static constexpr
const uint8_t MIP_SYSTEM_COMMAND_COMM_MODE_IMU = 0x02;
50 static constexpr
const uint8_t MIP_SYSTEM_COMMAND_COMM_MODE_GPS = 0x03;
80 static constexpr
const char*
NAME =
"CommMode";
81 static constexpr
const char*
DOC_NAME =
"CommMode";
86 return std::make_tuple(
mode);
91 return std::make_tuple(std::ref(
mode));
114 static constexpr
const char*
NAME =
"CommMode::Response";
115 static constexpr
const char*
DOC_NAME =
"CommMode Response";
120 return std::make_tuple(
mode);
125 return std::make_tuple(std::ref(
mode));
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
@ CMD_HARDWARE_CONTROL_2
Definition: commands_system.hpp:36
@ CMD_HARDWARE_CONTROL
Definition: commands_system.hpp:35
TypedResult< CommMode > defaultCommMode(C::mip_interface &device)
Definition: commands_system.cpp:90
void insert(Serializer &serializer) const
Serialization.
Definition: commands_system.cpp:23
Serializes or deserializes data to/from a byte buffer.
Definition: serializer.hpp:125
void extract(Serializer &serializer)
Definition: commands_system.cpp:33
auto asTuple()
Definition: commands_system.hpp:89
@ CMD_ENUMERATE
Definition: commands_system.hpp:33
auto asTuple() const
Definition: commands_system.hpp:118
struct mip::C::mip_interface mip_interface
State of the interface for communicating with a MIP device.
static constexpr const char * DOC_NAME
Definition: commands_system.hpp:115
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_system.hpp:112
static CommMode create_sld_all(::mip::FunctionSelector function)
Definition: commands_system.hpp:94
void insert(Serializer &serializer) const
Serialization.
Definition: commands_system.cpp:44
auto asTuple() const
Definition: commands_system.hpp:84
@ REPLY_COM_MODE
Definition: commands_system.hpp:38
TypedResult< CommMode > writeCommMode(C::mip_interface &device, uint8_t mode)
Definition: commands_system.cpp:55
FunctionSelector
Definition: mip_descriptors.hpp:68
Definition: commands_system.hpp:105
auto asTuple()
Definition: commands_system.hpp:123
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_system.hpp:116
static constexpr const char * NAME
Definition: commands_system.hpp:114
static constexpr const char * NAME
Definition: commands_system.hpp:80
static constexpr const bool HAS_FUNCTION_SELECTOR
Definition: commands_system.hpp:82
static constexpr const uint8_t FIELD_DESCRIPTOR
Definition: commands_system.hpp:78
@ REPLY_HARDWARE_CONTROL_2
Definition: commands_system.hpp:40
@ CMD_COM_MODE
Definition: commands_system.hpp:34
State of the interface for communicating with a MIP device.
Definition: mip_interface.h:44
@ REPLY_HARDWARE_CONTROL
Definition: commands_system.hpp:39
static constexpr const char * DOC_NAME
Definition: commands_system.hpp:81
FunctionSelector function
Parameters.
Definition: commands_system.hpp:73
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_system.hpp:79
uint8_t mode
Parameters.
Definition: commands_system.hpp:108
TypedResult< CommMode > readCommMode(C::mip_interface &device, uint8_t *modeOut)
Definition: commands_system.cpp:67
void extract(Serializer &serializer)
Definition: commands_system.cpp:49
static constexpr const CompositeDescriptor DESCRIPTOR
Definition: commands_system.hpp:113
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_system.hpp:77
static constexpr const uint8_t DESCRIPTOR_SET
Descriptors.
Definition: commands_system.hpp:111
Convenience struct holding both descriptor set and field descriptor.
Definition: mip_descriptors.hpp:22
@ DESCRIPTOR_SET
Definition: commands_system.hpp:31
Definition: commands_system.hpp:70
A CmdResult that knows the corresponding command type.
Definition: mip_descriptors.hpp:100
uint8_t mode
Definition: commands_system.hpp:74