diff options
author | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-06 21:29:00 +0100 |
---|---|---|
committer | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-06 21:29:00 +0100 |
commit | d533794099cccf2f8499a640ee2f2728b7a544c1 (patch) | |
tree | 3579e5d52cf0dd8eb998e5de355d845e8f219b3f /src/Serial.hpp | |
parent | c702f17669a8fd6403895db154d75787de447e6b (diff) |
implement Serial::setWriteDelay() interface
Diffstat (limited to 'src/Serial.hpp')
-rw-r--r-- | src/Serial.hpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/Serial.hpp b/src/Serial.hpp index 2fa3a8b..46b2e0f 100644 --- a/src/Serial.hpp +++ b/src/Serial.hpp @@ -23,18 +23,19 @@ namespace antpm{ class Serial { public: - virtual ~Serial() {} - virtual bool open() = 0; - virtual void close() = 0; - virtual bool read(char* dst, const size_t sizeBytes, size_t& bytesRead) = 0; - virtual bool readBlocking(char* dst, const size_t sizeBytes, size_t& bytesRead) = 0; + virtual ~Serial() {} + virtual bool open() = 0; + virtual void close() = 0; + virtual bool read(char* dst, const size_t sizeBytes, size_t& bytesRead) = 0; + virtual bool readBlocking(char* dst, const size_t sizeBytes, size_t& bytesRead) = 0; // synchronous data writing, blocks until sent - virtual bool write(const char* src, const size_t sizeBytes, size_t& bytesWritten) = 0; + virtual bool write(const char* src, const size_t sizeBytes, size_t& bytesWritten) = 0; //virtual void wait() = 0; /// number of raw bytes in the receive queue virtual const size_t getQueueLength() const = 0; - virtual const char* getImplName() = 0; - virtual bool isOpen() const = 0; + virtual const char* getImplName() = 0; + virtual bool isOpen() const = 0; + virtual bool setWriteDelay(const size_t ms) = 0; }; } |