PX4 Firmware
PX4 Autopilot Software http://px4.io
protocol_splitter.cpp File Reference

NuttX Driver to multiplex mavlink and RTPS on a single serial port. More...

#include <lib/cdev/CDev.hpp>
#include <px4_platform_common/sem.hpp>
#include <px4_platform_common/log.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <cstdint>
#include <string.h>
Include dependency graph for protocol_splitter.cpp:

Go to the source code of this file.

Classes

struct  StaticData
 
class  ReadBuffer
 
class  DevCommon
 
class  Mavlink2Dev
 
class  RtpsDev
 

Functions

__EXPORT int protocol_splitter_main (int argc, char *argv[])
 

Detailed Description

NuttX Driver to multiplex mavlink and RTPS on a single serial port.

Makes sure the two protocols can be read & written simultanously by 2 processes. It will create two devices: /dev/mavlink /dev/rtps

Definition in file protocol_splitter.cpp.

Function Documentation

◆ protocol_splitter_main()

int protocol_splitter_main ( int  argc,
char *  argv[] 
)

Definition at line 542 of file protocol_splitter.cpp.

References RtpsDev::RtpsDev().

Here is the call graph for this function: