Aron Virginas-Tar | 1a0f691 | 2019-08-23 15:18:44 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "Packet.hpp" |
| 9 | |
| 10 | #include <cstdint> |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | namespace profiling |
| 16 | { |
| 17 | |
| 18 | class IProfilingConnection |
| 19 | { |
| 20 | public: |
Matteo Martincigh | 2e7c885 | 2019-09-09 09:23:53 +0100 | [diff] [blame] | 21 | virtual ~IProfilingConnection() {} |
| 22 | |
Aron Virginas-Tar | 1a0f691 | 2019-08-23 15:18:44 +0100 | [diff] [blame] | 23 | virtual bool IsOpen() = 0; |
| 24 | |
| 25 | virtual void Close() = 0; |
| 26 | |
Matteo Martincigh | 24e8f92 | 2019-09-19 11:57:46 +0100 | [diff] [blame] | 27 | virtual bool WritePacket(const unsigned char* buffer, uint32_t length) = 0; |
Aron Virginas-Tar | 1a0f691 | 2019-08-23 15:18:44 +0100 | [diff] [blame] | 28 | |
| 29 | virtual Packet ReadPacket(uint32_t timeout) = 0; |
| 30 | }; |
| 31 | |
| 32 | } // namespace profiling |
| 33 | |
| 34 | } // namespace armnn |