dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
msp.h File Reference
#include "pios.h"
#include "msp_messages.h"

Go to the source code of this file.

Typedefs

typedef bool(* msp_handler_t )(enum msp_message_id msg_id, void *data, uint8_t len, void *context)
 Handler to be called when valid MSP messages are recieved. More...
 

Enumerations

enum  msp_parser_type { MSP_PARSER_SERVER, MSP_PARSER_CLIENT }
 

Functions

struct msp_parsermsp_parser_init (enum msp_parser_type type)
 Initialize a new parser instance. More...
 
int32_t msp_process_buffer (struct msp_parser *parser, void *buf, uint8_t len)
 Process MSP stream from buffer. More...
 
int32_t msp_process_com (struct msp_parser *parser, struct pios_com_dev *com)
 Process MSP stream from PIOS_COM. More...
 
int32_t msp_send_com (struct msp_parser *parser, struct pios_com_dev *com, enum msp_message_id msg_id, void *payload, uint8_t len)
 Construct and send an MSP message via PIOS_COM. More...
 
int32_t msp_register_handler (struct msp_parser *parser, msp_handler_t handler, void *context)
 Register a handler for valid received messages. More...
 

Detailed Description

Author
dRonin, http://dRonin.org/, Copyright (C) 2016

Definition in file msp.h.