7 #ifndef __PVDEVICESERIALPORT_H__
8 #define __PVDEVICESERIALPORT_H__
10 #include <PvSerialLib.h>
12 #include <IPvDeviceAdapter.h>
18 class DeviceSerialPort;
115 PvResult Write(
const uint8_t *aBuffer, uint32_t aSize, uint32_t &aBytesWritten );
134 PvResult GetWriteProgress( uint32_t &aWritten, uint32_t &aTotal );
154 PvResult Read( uint8_t *aBuffer, uint32_t aBufferSize, uint32_t &aBytesRead, uint32_t aTimeout = 0 );
183 PvResult GetRxBytesReady( uint32_t &aBytes );
197 PvResult GetRxBufferSize( uint32_t &aSize );
212 PvResult SetRxBufferSize( uint32_t aSize );
258 uint64_t GetBytesSent()
const;
265 uint64_t GetBytesReceived()
const;
270 void ResetStatistics();
278 PvSerialLib::DeviceSerialPort * mThis;
282 #endif // __PVDEVICESERIALPORT_H__