MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
Classes | Namespaces | Enumerations | Functions
commands_system.hpp File Reference
#include <mip/definitions/common.hpp>
#include <mip/mip_descriptors.hpp>
#include <mip/mip_result.hpp>
#include <mip/mip_interface.hpp>
#include <stdint.h>
#include <stddef.h>

Go to the source code of this file.

Classes

struct  mip::commands_system::CommsProtocol
 
struct  mip::commands_system::CommMode
 
struct  mip::commands_system::CommMode::Response
 
struct  mip::commands_system::InterfaceControl
 
struct  mip::commands_system::InterfaceControl::Response
 

Namespaces

 mip
 A collection of C++ classes and functions covering the full mip api.
 
 mip::C
 
 mip::commands_system
 

Enumerations

enum  {
  mip::commands_system::DESCRIPTOR_SET = 0x7F, mip::commands_system::CMD_ENUMERATE = 0x01, mip::commands_system::CMD_INTERFACE_CONTROL = 0x02, mip::commands_system::CMD_COM_MODE = 0x10,
  mip::commands_system::CMD_HARDWARE_CONTROL = 0x11, mip::commands_system::CMD_HARDWARE_CONTROL_2 = 0x12, mip::commands_system::REPLY_COM_MODE = 0x90, mip::commands_system::REPLY_HARDWARE_CONTROL = 0x91,
  mip::commands_system::REPLY_HARDWARE_CONTROL_2 = 0x92, mip::commands_system::REPLY_INTERFACE_CONTROL = 0x82
}
 
enum  mip::commands_system::CommsInterface : uint8_t {
  mip::commands_system::CommsInterface::ALL = 0, mip::commands_system::CommsInterface::MAIN = 1, mip::commands_system::CommsInterface::UART_1 = 17, mip::commands_system::CommsInterface::UART_2 = 18,
  mip::commands_system::CommsInterface::UART_3 = 19, mip::commands_system::CommsInterface::USB_1 = 33, mip::commands_system::CommsInterface::USB_2 = 34
}
 

Functions

TypedResult< CommMode > mip::commands_system::writeCommMode (C::mip_interface &device, uint8_t mode)
 
TypedResult< CommMode > mip::commands_system::readCommMode (C::mip_interface &device, uint8_t *modeOut)
 
TypedResult< CommMode > mip::commands_system::defaultCommMode (C::mip_interface &device)
 
TypedResult< InterfaceControl > mip::commands_system::writeInterfaceControl (C::mip_interface &device, CommsInterface port, CommsProtocol protocolsIncoming, CommsProtocol protocolsOutgoing)
 
TypedResult< InterfaceControl > mip::commands_system::readInterfaceControl (C::mip_interface &device, CommsInterface port, CommsProtocol *protocolsIncomingOut, CommsProtocol *protocolsOutgoingOut)
 
TypedResult< InterfaceControl > mip::commands_system::saveInterfaceControl (C::mip_interface &device, CommsInterface port)
 
TypedResult< InterfaceControl > mip::commands_system::loadInterfaceControl (C::mip_interface &device, CommsInterface port)
 
TypedResult< InterfaceControl > mip::commands_system::defaultInterfaceControl (C::mip_interface &device, CommsInterface port)