Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
msp Namespace Reference

Namespaces

namespace  client
namespace  msg

Classes

struct  DataID
 The DataID struct. More...
class  MalformedHeader
struct  Message
class  MSP
 The MSP class. More...
class  NoConnection
class  NoData
class  PeriodicTimer
struct  Request
struct  Response
class  UnknownMsgId
class  WrongCRC

Typedefs

typedef std::vector< uint8_t > ByteVector
 ByteVector vector of bytes.
typedef unsigned int uint

Enumerations

enum  ID {
  MSP_API_VERSION = 1, MSP_FC_VARIANT = 2, MSP_FC_VERSION = 3, MSP_BOARD_INFO = 4,
  MSP_BUILD_INFO = 5, MSP_BATTERY_CONFIG = 32, MSP_SET_BATTERY_CONFIG = 33, MSP_MODE_RANGES = 34,
  MSP_SET_MODE_RANGE = 35, MSP_FEATURE = 36, MSP_SET_FEATURE = 37, MSP_BOARD_ALIGNMENT = 38,
  MSP_SET_BOARD_ALIGNMENT = 39, MSP_AMPERAGE_METER_CONFIG = 40, MSP_SET_AMPERAGE_METER_CONFIG = 41, MSP_MIXER = 42,
  MSP_SET_MIXER = 43, MSP_RX_CONFIG = 44, MSP_SET_RX_CONFIG = 45, MSP_LED_COLORS = 46,
  MSP_SET_LED_COLORS = 47, MSP_LED_STRIP_CONFIG = 48, MSP_SET_LED_STRIP_CONFIG = 49, MSP_RSSI_CONFIG = 50,
  MSP_SET_RSSI_CONFIG = 51, MSP_ADJUSTMENT_RANGES = 52, MSP_SET_ADJUSTMENT_RANGE = 53, MSP_CF_SERIAL_CONFIG = 54,
  MSP_SET_CF_SERIAL_CONFIG = 55, MSP_VOLTAGE_METER_CONFIG = 56, MSP_SET_VOLTAGE_METER_CONFIG = 57, MSP_SONAR_ALTITUDE = 58,
  MSP_ARMING_CONFIG = 61, MSP_SET_ARMING_CONFIG = 62, MSP_RX_MAP = 64, MSP_SET_RX_MAP = 65,
  MSP_REBOOT = 68, MSP_BF_BUILD_INFO = 69, MSP_DATAFLASH_SUMMARY = 70, MSP_DATAFLASH_READ = 71,
  MSP_DATAFLASH_ERASE = 72, MSP_LOOP_TIME = 73, MSP_SET_LOOP_TIME = 74, MSP_FAILSAFE_CONFIG = 75,
  MSP_SET_FAILSAFE_CONFIG = 76, MSP_RXFAIL_CONFIG = 77, MSP_SET_RXFAIL_CONFIG = 78, MSP_SDCARD_SUMMARY = 79,
  MSP_BLACKBOX_CONFIG = 80, MSP_SET_BLACKBOX_CONFIG = 81, MSP_TRANSPONDER_CONFIG = 82, MSP_SET_TRANSPONDER_CONFIG = 83,
  MSP_OSD_CHAR_WRITE = 87, MSP_VTX = 88, MSP_OSD_VIDEO_CONFIG = 180, MSP_SET_OSD_VIDEO_CONFIG = 181,
  MSP_OSD_VIDEO_STATUS = 182, MSP_OSD_ELEMENT_SUMMARY = 183, MSP_OSD_LAYOUT_CONFIG = 184, MSP_SET_OSD_LAYOUT_CONFIG = 185,
  MSP_3D = 124, MSP_RC_DEADBAND = 125, MSP_SENSOR_ALIGNMENT = 126, MSP_LED_STRIP_MODECOLOR = 127,
  MSP_VOLTAGE_METERS = 128, MSP_AMPERAGE_METERS = 129, MSP_BATTERY_STATE = 130, MSP_PILOT = 131,
  MSP_SET_3D = 217, MSP_SET_RC_DEADBAND = 218, MSP_SET_RESET_CURR_PID = 219, MSP_SET_SENSOR_ALIGNMENT = 220,
  MSP_SET_LED_STRIP_MODECOLOR = 221, MSP_SET_PILOT = 222, MSP_PASSTHROUGH_SERIAL = 244, MSP_UID = 160,
  MSP_GPSSVINFO = 164, MSP_SERVO_MIX_RULES = 241, MSP_SET_SERVO_MIX_RULE = 242, MSP_SET_4WAY_IF = 245,
  MSP_IDENT = 100, MSP_STATUS = 101, MSP_RAW_IMU = 102, MSP_SERVO = 103,
  MSP_MOTOR = 104, MSP_RC = 105, MSP_RAW_GPS = 106, MSP_COMP_GPS = 107,
  MSP_ATTITUDE = 108, MSP_ALTITUDE = 109, MSP_ANALOG = 110, MSP_RC_TUNING = 111,
  MSP_PID = 112, MSP_BOX = 113, MSP_MISC = 114, MSP_MOTOR_PINS = 115,
  MSP_BOXNAMES = 116, MSP_PIDNAMES = 117, MSP_WP = 118, MSP_BOXIDS = 119,
  MSP_SERVO_CONF = 120, MSP_NAV_STATUS = 121, MSP_NAV_CONFIG = 122, MSP_CELLS = 130,
  MSP_SET_RAW_RC = 200, MSP_SET_RAW_GPS = 201, MSP_SET_PID = 202, MSP_SET_BOX = 203,
  MSP_SET_RC_TUNING = 204, MSP_ACC_CALIBRATION = 205, MSP_MAG_CALIBRATION = 206, MSP_SET_MISC = 207,
  MSP_RESET_CONF = 208, MSP_SET_WP = 209, MSP_SELECT_SETTING = 210, MSP_SET_HEAD = 211,
  MSP_SET_SERVO_CONF = 212, MSP_SET_MOTOR = 214, MSP_SET_NAV_CONFIG = 215, MSP_SET_ACC_TRIM = 239,
  MSP_ACC_TRIM = 240, MSP_BIND = 241, MSP_EEPROM_WRITE = 250, MSP_DEBUGMSG = 253,
  MSP_DEBUG = 254
}

Functions

int16_t deserialise_int16 (const ByteVector &data, const size_t start)
int32_t deserialise_int32 (const ByteVector &data, const size_t start)
uint16_t deserialise_uint16 (const ByteVector &data, const size_t start)
uint32_t deserialise_uint32 (const ByteVector &data, const size_t start)
void serialise_int16 (const int16_t val, ByteVector &data)
void serialise_uint16 (const uint16_t val, ByteVector &data)
void serialise_uint32 (const uint32_t val, ByteVector &data)

Variables

static const uint FRAME_SIZE = 6

Typedef Documentation

typedef std::vector<uint8_t> msp::ByteVector

ByteVector vector of bytes.

Definition at line 15 of file types.hpp.

typedef unsigned int msp::uint

Definition at line 10 of file types.hpp.


Enumeration Type Documentation

enum msp::ID
Enumerator:
MSP_API_VERSION 
MSP_FC_VARIANT 
MSP_FC_VERSION 
MSP_BOARD_INFO 
MSP_BUILD_INFO 
MSP_BATTERY_CONFIG 
MSP_SET_BATTERY_CONFIG 
MSP_MODE_RANGES 
MSP_SET_MODE_RANGE 
MSP_FEATURE 
MSP_SET_FEATURE 
MSP_BOARD_ALIGNMENT 
MSP_SET_BOARD_ALIGNMENT 
MSP_AMPERAGE_METER_CONFIG 
MSP_SET_AMPERAGE_METER_CONFIG 
MSP_MIXER 
MSP_SET_MIXER 
MSP_RX_CONFIG 
MSP_SET_RX_CONFIG 
MSP_LED_COLORS 
MSP_SET_LED_COLORS 
MSP_LED_STRIP_CONFIG 
MSP_SET_LED_STRIP_CONFIG 
MSP_RSSI_CONFIG 
MSP_SET_RSSI_CONFIG 
MSP_ADJUSTMENT_RANGES 
MSP_SET_ADJUSTMENT_RANGE 
MSP_CF_SERIAL_CONFIG 
MSP_SET_CF_SERIAL_CONFIG 
MSP_VOLTAGE_METER_CONFIG 
MSP_SET_VOLTAGE_METER_CONFIG 
MSP_SONAR_ALTITUDE 
MSP_ARMING_CONFIG 
MSP_SET_ARMING_CONFIG 
MSP_RX_MAP 
MSP_SET_RX_MAP 
MSP_REBOOT 
MSP_BF_BUILD_INFO 
MSP_DATAFLASH_SUMMARY 
MSP_DATAFLASH_READ 
MSP_DATAFLASH_ERASE 
MSP_LOOP_TIME 
MSP_SET_LOOP_TIME 
MSP_FAILSAFE_CONFIG 
MSP_SET_FAILSAFE_CONFIG 
MSP_RXFAIL_CONFIG 
MSP_SET_RXFAIL_CONFIG 
MSP_SDCARD_SUMMARY 
MSP_BLACKBOX_CONFIG 
MSP_SET_BLACKBOX_CONFIG 
MSP_TRANSPONDER_CONFIG 
MSP_SET_TRANSPONDER_CONFIG 
MSP_OSD_CHAR_WRITE 
MSP_VTX 
MSP_OSD_VIDEO_CONFIG 
MSP_SET_OSD_VIDEO_CONFIG 
MSP_OSD_VIDEO_STATUS 
MSP_OSD_ELEMENT_SUMMARY 
MSP_OSD_LAYOUT_CONFIG 
MSP_SET_OSD_LAYOUT_CONFIG 
MSP_3D 
MSP_RC_DEADBAND 
MSP_SENSOR_ALIGNMENT 
MSP_LED_STRIP_MODECOLOR 
MSP_VOLTAGE_METERS 
MSP_AMPERAGE_METERS 
MSP_BATTERY_STATE 
MSP_PILOT 
MSP_SET_3D 
MSP_SET_RC_DEADBAND 
MSP_SET_RESET_CURR_PID 
MSP_SET_SENSOR_ALIGNMENT 
MSP_SET_LED_STRIP_MODECOLOR 
MSP_SET_PILOT 
MSP_PASSTHROUGH_SERIAL 
MSP_UID 
MSP_GPSSVINFO 
MSP_SERVO_MIX_RULES 
MSP_SET_SERVO_MIX_RULE 
MSP_SET_4WAY_IF 
MSP_IDENT 
MSP_STATUS 
MSP_RAW_IMU 
MSP_SERVO 
MSP_MOTOR 
MSP_RC 
MSP_RAW_GPS 
MSP_COMP_GPS 
MSP_ATTITUDE 
MSP_ALTITUDE 
MSP_ANALOG 
MSP_RC_TUNING 
MSP_PID 
MSP_BOX 
MSP_MISC 
MSP_MOTOR_PINS 
MSP_BOXNAMES 
MSP_PIDNAMES 
MSP_WP 
MSP_BOXIDS 
MSP_SERVO_CONF 
MSP_NAV_STATUS 
MSP_NAV_CONFIG 
MSP_CELLS 
MSP_SET_RAW_RC 
MSP_SET_RAW_GPS 
MSP_SET_PID 
MSP_SET_BOX 
MSP_SET_RC_TUNING 
MSP_ACC_CALIBRATION 
MSP_MAG_CALIBRATION 
MSP_SET_MISC 
MSP_RESET_CONF 
MSP_SET_WP 
MSP_SELECT_SETTING 
MSP_SET_HEAD 
MSP_SET_SERVO_CONF 
MSP_SET_MOTOR 
MSP_SET_NAV_CONFIG 
MSP_SET_ACC_TRIM 
MSP_ACC_TRIM 
MSP_BIND 
MSP_EEPROM_WRITE 
MSP_DEBUGMSG 
MSP_DEBUG 

Definition at line 6 of file msp_id.hpp.


Function Documentation

int16_t msp::deserialise_int16 ( const ByteVector &  data,
const size_t  start 
)

Definition at line 26 of file deserialise.hpp.

int32_t msp::deserialise_int32 ( const ByteVector &  data,
const size_t  start 
)

Definition at line 30 of file deserialise.hpp.

uint16_t msp::deserialise_uint16 ( const ByteVector &  data,
const size_t  start 
)

Definition at line 17 of file deserialise.hpp.

uint32_t msp::deserialise_uint32 ( const ByteVector &  data,
const size_t  start 
)

Definition at line 41 of file deserialise.hpp.

void msp::serialise_int16 ( const int16_t  val,
ByteVector &  data 
)

Definition at line 21 of file deserialise.hpp.

void msp::serialise_uint16 ( const uint16_t  val,
ByteVector &  data 
)

de-/serialization for 16 and 32 bit unsigned integer

Definition at line 12 of file deserialise.hpp.

void msp::serialise_uint32 ( const uint32_t  val,
ByteVector &  data 
)

Definition at line 34 of file deserialise.hpp.


Variable Documentation

const uint msp::FRAME_SIZE = 6 [static]

Definition at line 15 of file MSP.hpp.



msp
Author(s): Christian Rauch
autogenerated on Mon Oct 9 2017 03:02:14