2016-02-17 21:25:23 -04:00
|
|
|
#pragma once
|
2012-12-14 21:55:38 -04:00
|
|
|
|
2015-08-11 03:28:43 -03:00
|
|
|
#include "AP_HAL_Empty.h"
|
2012-12-14 21:55:38 -04:00
|
|
|
|
2015-12-07 14:53:55 -04:00
|
|
|
class Empty::UARTDriver : public AP_HAL::UARTDriver {
|
2012-12-14 21:55:38 -04:00
|
|
|
public:
|
2015-12-07 14:53:55 -04:00
|
|
|
UARTDriver();
|
2012-12-14 21:55:38 -04:00
|
|
|
/* Empty implementations of UARTDriver virtual methods */
|
|
|
|
void begin(uint32_t b);
|
|
|
|
void begin(uint32_t b, uint16_t rxS, uint16_t txS);
|
|
|
|
void end();
|
|
|
|
void flush();
|
|
|
|
bool is_initialized();
|
|
|
|
void set_blocking_writes(bool blocking);
|
|
|
|
bool tx_pending();
|
|
|
|
|
|
|
|
/* Empty implementations of Stream virtual methods */
|
2016-08-02 10:42:50 -03:00
|
|
|
uint32_t available() override;
|
|
|
|
uint32_t txspace() override;
|
|
|
|
int16_t read() override;
|
2012-12-14 21:55:38 -04:00
|
|
|
|
|
|
|
/* Empty implementations of Print virtual methods */
|
|
|
|
size_t write(uint8_t c);
|
2013-10-02 04:37:11 -03:00
|
|
|
size_t write(const uint8_t *buffer, size_t size);
|
2012-12-14 21:55:38 -04:00
|
|
|
};
|