NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
msp.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "build_config.h"
#include "debug.h"
#include <platform.h>
#include "common/axis.h"
#include "common/utils.h"
#include "common/color.h"
#include "common/maths.h"
#include "common/streambuf.h"
#include "config/config.h"
#include "config/feature.h"
#include "config/profile.h"
#include "drivers/system.h"
#include "drivers/sensor.h"
#include "drivers/accgyro.h"
#include "drivers/compass.h"
#include "drivers/serial.h"
#include "drivers/bus_i2c.h"
#include "drivers/sdcard.h"
#include "drivers/flashfs.h"
#include "common/buf_writer.h"
#include "rx/rx.h"
#include "rx/msp.h"
#include "flight/rate_profile.h"
#include "io/rc_adjustments.h"
#include "io/serial.h"
#include "io/ledstrip.h"
#include "io/transponder_ir.h"
#include "io/msp_protocol.h"
#include "io/serial_msp.h"
#include "io/serial_4way.h"
#include "sensors/boardalignment.h"
#include "sensors/battery.h"
#include "sensors/gps.h"
#include "sensors/sonar.h"
#include "sensors/acceleration.h"
#include "sensors/barometer.h"
#include "sensors/compass.h"
#include "sensors/gyro.h"
#include "sensors/instruments.h"
#include "flight/mixer.h"
#include "flight/anglerate.h"
#include "flight/failsafe.h"
#include "flight/navigation.h"
#include "flight/altitudehold.h"
#include "blackbox/blackbox.h"
#include "ninja_config.h"
#include "ninjaflight.h"
#include "version.h"
#include "msp.h"

Data Structures

struct  box_e
 

Macros

#define IS_ENABLED(mask)   (mask == 0 ? 0 : 1)
 

Typedefs

typedef struct box_e box_t
 

Enumerations

enum  mspSDCardState_e {
  MSP_SDCARD_STATE_NOT_PRESENT = 0, MSP_SDCARD_STATE_FATAL = 1, MSP_SDCARD_STATE_CARD_INIT = 2, MSP_SDCARD_STATE_FS_INIT = 3,
  MSP_SDCARD_STATE_READY = 4
}
 
enum  mspSDCardFlags_e { MSP_SDCARD_FLAG_SUPPORTTED = 1 }
 
enum  mspFlashfsFlags_e { MSP_FLASHFS_BIT_READY = 1, MSP_FLASHFS_BIT_SUPPORTED = 2 }
 

Functions

void resetPidProfile (struct pid_config *pidProfile)
 
void msp_init (struct msp *self, struct ninja *nin, struct config *config)
 
int msp_process (struct msp *self, mspPacket_t *command, mspPacket_t *reply)
 

Macro Definition Documentation

#define IS_ENABLED (   mask)    (mask == 0 ? 0 : 1)

Typedef Documentation

typedef struct box_e box_t

Enumeration Type Documentation

Enumerator
MSP_FLASHFS_BIT_READY 
MSP_FLASHFS_BIT_SUPPORTED 
Enumerator
MSP_SDCARD_FLAG_SUPPORTTED 
Enumerator
MSP_SDCARD_STATE_NOT_PRESENT 
MSP_SDCARD_STATE_FATAL 
MSP_SDCARD_STATE_CARD_INIT 
MSP_SDCARD_STATE_FS_INIT 
MSP_SDCARD_STATE_READY 

Function Documentation

void msp_init ( struct msp self,
struct ninja nin,
struct config config 
)
int msp_process ( struct msp self,
mspPacket_t command,
mspPacket_t reply 
)
void resetPidProfile ( struct pid_config pidProfile)