MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
Classes | Functions
(0x7F,0x02) Interface Control

Reassign data protocols, both incoming and outgoing. More...

Classes

struct  mip::commands_system::InterfaceControl
 

Functions

TypedResult< InterfaceControlmip::commands_system::writeInterfaceControl (C::mip_interface &device, CommsInterface port, CommsProtocol protocolsIncoming, CommsProtocol protocolsOutgoing)
 
TypedResult< InterfaceControlmip::commands_system::readInterfaceControl (C::mip_interface &device, CommsInterface port, CommsProtocol *protocolsIncomingOut, CommsProtocol *protocolsOutgoingOut)
 
TypedResult< InterfaceControlmip::commands_system::saveInterfaceControl (C::mip_interface &device, CommsInterface port)
 
TypedResult< InterfaceControlmip::commands_system::loadInterfaceControl (C::mip_interface &device, CommsInterface port)
 
TypedResult< InterfaceControlmip::commands_system::defaultInterfaceControl (C::mip_interface &device, CommsInterface port)
 

Detailed Description

Reassign data protocols, both incoming and outgoing.

Responds over the port that sent the command with an ACK/NACK immediately after the operation is complete. It is the user's responsibility to not send any critical information or commands while awaiting a response! Doing so while this command processes may cause those packets to be dropped.

Constraints:

If response is NACK, no change was made. Here's what can cause a NACK:

Function Documentation

◆ defaultInterfaceControl()

TypedResult< InterfaceControl > mip::commands_system::defaultInterfaceControl ( C::mip_interface device,
CommsInterface  port 
)

◆ loadInterfaceControl()

TypedResult< InterfaceControl > mip::commands_system::loadInterfaceControl ( C::mip_interface device,
CommsInterface  port 
)

◆ readInterfaceControl()

TypedResult< InterfaceControl > mip::commands_system::readInterfaceControl ( C::mip_interface device,
CommsInterface  port,
CommsProtocol protocolsIncomingOut,
CommsProtocol protocolsOutgoingOut 
)

◆ saveInterfaceControl()

TypedResult< InterfaceControl > mip::commands_system::saveInterfaceControl ( C::mip_interface device,
CommsInterface  port 
)

◆ writeInterfaceControl()

TypedResult< InterfaceControl > mip::commands_system::writeInterfaceControl ( C::mip_interface device,
CommsInterface  port,
CommsProtocol  protocolsIncoming,
CommsProtocol  protocolsOutgoing 
)