UARTDriver.h 777 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "AP_HAL_Empty.h"
  3. class Empty::UARTDriver : public AP_HAL::UARTDriver {
  4. public:
  5. UARTDriver();
  6. /* Empty implementations of UARTDriver virtual methods */
  7. void begin(uint32_t b) override;
  8. void begin(uint32_t b, uint16_t rxS, uint16_t txS) override;
  9. void end() override;
  10. void flush() override;
  11. bool is_initialized() override;
  12. void set_blocking_writes(bool blocking) override;
  13. bool tx_pending() override;
  14. /* Empty implementations of Stream virtual methods */
  15. uint32_t available() override;
  16. uint32_t txspace() override;
  17. int16_t read() override;
  18. /* Empty implementations of Print virtual methods */
  19. size_t write(uint8_t c) override;
  20. size_t write(const uint8_t *buffer, size_t size) override;
  21. };