X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fadapter%2FAdapterCommunication.h;h=5178e4f4c3717678c06b48940e7e84a2e101c30d;hb=b5f787b969b7e0517321ebbfe069ac65c330982e;hp=bdc3de30f3f543e8bfd30d46528ef1a1d01e973f;hpb=5dcf9f25c9b94a9c7a1892cce6e94857ae413a48;p=deb_libcec.git diff --git a/src/lib/adapter/AdapterCommunication.h b/src/lib/adapter/AdapterCommunication.h index bdc3de3..5178e4f 100644 --- a/src/lib/adapter/AdapterCommunication.h +++ b/src/lib/adapter/AdapterCommunication.h @@ -32,7 +32,7 @@ */ #include -#include "platform/os.h" +#include "../platform/os.h" namespace PLATFORM { @@ -53,7 +53,6 @@ namespace CEC bool Open(const char *strPort, uint16_t iBaudRate = 38400, uint32_t iTimeoutMs = 10000); bool Read(CCECAdapterMessage &msg, uint32_t iTimeout = 1000); bool Write(CCECAdapterMessage *data); - bool PingAdapter(void); void Close(void); bool IsOpen(void); std::string GetError(void) const; @@ -63,6 +62,8 @@ namespace CEC bool SetLineTimeout(uint8_t iTimeout); bool StartBootloader(void); bool SetAckMask(uint16_t iMask); + bool PingAdapter(void); + uint16_t GetFirmwareVersion(void); bool WaitForTransmitSucceeded(CCECAdapterMessage *message); @@ -79,5 +80,6 @@ namespace CEC PLATFORM::CMutex m_mutex; PLATFORM::CCondition m_rcvCondition; uint8_t m_iLineTimeout; + uint16_t m_iFirmwareVersion; }; };