MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
Classes | Enumerations | Functions
mip::commands_system Namespace Reference

Classes

struct  CommMode
 
struct  CommsProtocol
 
struct  InterfaceControl
 

Enumerations

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

Functions

TypedResult< CommModewriteCommMode (C::mip_interface &device, uint8_t mode)
 
TypedResult< CommModereadCommMode (C::mip_interface &device, uint8_t *modeOut)
 
TypedResult< CommModedefaultCommMode (C::mip_interface &device)
 
TypedResult< InterfaceControlwriteInterfaceControl (C::mip_interface &device, CommsInterface port, CommsProtocol protocolsIncoming, CommsProtocol protocolsOutgoing)
 
TypedResult< InterfaceControlreadInterfaceControl (C::mip_interface &device, CommsInterface port, CommsProtocol *protocolsIncomingOut, CommsProtocol *protocolsOutgoingOut)
 
TypedResult< InterfaceControlsaveInterfaceControl (C::mip_interface &device, CommsInterface port)
 
TypedResult< InterfaceControlloadInterfaceControl (C::mip_interface &device, CommsInterface port)
 
TypedResult< InterfaceControldefaultInterfaceControl (C::mip_interface &device, CommsInterface port)