MIP_SDK  v3.0.0
MicroStrain Communications Library for embedded systems
Classes | Functions
(0x01,0x09) Comm Speed

Controls the baud rate of a specific port on the device. More...

Classes

struct  mip::commands_base::CommSpeed
 

Functions

TypedResult< CommSpeedmip::commands_base::writeCommSpeed (C::mip_interface &device, uint8_t port, uint32_t baud)
 
TypedResult< CommSpeedmip::commands_base::readCommSpeed (C::mip_interface &device, uint8_t port, uint32_t *baudOut)
 
TypedResult< CommSpeedmip::commands_base::saveCommSpeed (C::mip_interface &device, uint8_t port)
 
TypedResult< CommSpeedmip::commands_base::loadCommSpeed (C::mip_interface &device, uint8_t port)
 
TypedResult< CommSpeedmip::commands_base::defaultCommSpeed (C::mip_interface &device, uint8_t port)
 

Detailed Description

Controls the baud rate of a specific port on the device.

Please see the device user manual for supported baud rates on each port.

The device will wait until all incoming and outgoing data has been sent, up to a maximum of 250 ms, before applying any change.

No guarantee is provided as to what happens to commands issued during this delay period; They may or may not be processed and any responses aren't guaranteed to be at one rate or the other. The same applies to data packets.

It is highly recommended that the device be idle before issuing this command and that it be issued in its own packet. Users should wait 250 ms after sending this command before further interaction.

Function Documentation

◆ defaultCommSpeed()

TypedResult< CommSpeed > mip::commands_base::defaultCommSpeed ( C::mip_interface device,
uint8_t  port 
)

◆ loadCommSpeed()

TypedResult< CommSpeed > mip::commands_base::loadCommSpeed ( C::mip_interface device,
uint8_t  port 
)

◆ readCommSpeed()

TypedResult< CommSpeed > mip::commands_base::readCommSpeed ( C::mip_interface device,
uint8_t  port,
uint32_t *  baudOut 
)

◆ saveCommSpeed()

TypedResult< CommSpeed > mip::commands_base::saveCommSpeed ( C::mip_interface device,
uint8_t  port 
)

◆ writeCommSpeed()

TypedResult< CommSpeed > mip::commands_base::writeCommSpeed ( C::mip_interface device,
uint8_t  port,
uint32_t  baud 
)