QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSTransport.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
9{
10public:
11 virtual ~GPSTransport() = default;
12
15 virtual int read(uint8_t *buffer, int length, int timeoutMs) = 0;
16
18 virtual int write(const uint8_t *buffer, int length) = 0;
19
21 virtual bool setBaudrate(unsigned baudrate) = 0;
22};
virtual bool setBaudrate(unsigned baudrate)=0
Set the link baud rate. Returns true on success.
virtual int write(const uint8_t *buffer, int length)=0
Write length bytes. Returns bytes written, or -1 on error.
virtual int read(uint8_t *buffer, int length, int timeoutMs)=0
virtual ~GPSTransport()=default