You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
459 B

#ifndef __AP_HAL_CONSOLE_DRIVER_H__
#define __AP_HAL_CONSOLE_DRIVER_H__
#include "AP_HAL_Namespace.h"
class AP_HAL::ConsoleDriver : public AP_HAL::BetterStream {
public:
virtual void init(void*implspecific) = 0;
virtual void backend_open() = 0;
virtual void backend_close() = 0;
virtual int backend_read(uint8_t *data, int len) = 0;
virtual int backend_write(const uint8_t *data, int len) = 0;
};
#endif // __AP_HAL_CONSOLE_DRIVER_H__