mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
19 lines
321 B
C++
19 lines
321 B
C++
#pragma once
|
|
|
|
#include "config.hpp"
|
|
|
|
namespace ecode {
|
|
|
|
class Bus {
|
|
public:
|
|
typedef std::function<void( const char* bytes, size_t n )> ReadFn;
|
|
|
|
virtual bool start() = 0;
|
|
|
|
virtual void startAsyncRead( ReadFn readFn ) = 0;
|
|
|
|
virtual size_t write( const char* buffer, const size_t& size ) = 0;
|
|
};
|
|
|
|
} // namespace ecode
|