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 | |
Finn Williams | 56b465d | 2020-05-15 13:34:12 +0100 | [diff] [blame] | 8 | #include <Packet.hpp> |
Jim Flynn | 4e755a5 | 2020-03-29 17:48:26 +0100 | [diff] [blame] | 9 | #include <armnn/profiling/ILocalPacketHandler.hpp> |
Aron Virginas-Tar | 1a0f691 | 2019-08-23 15:18:44 +0100 | [diff] [blame] | 10 | |
| 11 | #include <cstdint> |
| 12 | |
| 13 | namespace armnn |
| 14 | { |
| 15 | |
| 16 | namespace profiling |
| 17 | { |
| 18 | |
| 19 | class IProfilingConnection |
| 20 | { |
| 21 | public: |
Matteo Martincigh | 2e7c885 | 2019-09-09 09:23:53 +0100 | [diff] [blame] | 22 | virtual ~IProfilingConnection() {} |
| 23 | |
Matteo Martincigh | 54fb957 | 2019-10-02 12:50:57 +0100 | [diff] [blame] | 24 | virtual bool IsOpen() const = 0; |
Aron Virginas-Tar | 1a0f691 | 2019-08-23 15:18:44 +0100 | [diff] [blame] | 25 | |
| 26 | virtual void Close() = 0; |
| 27 | |
Matteo Martincigh | 24e8f92 | 2019-09-19 11:57:46 +0100 | [diff] [blame] | 28 | virtual bool WritePacket(const unsigned char* buffer, uint32_t length) = 0; |
Aron Virginas-Tar | 1a0f691 | 2019-08-23 15:18:44 +0100 | [diff] [blame] | 29 | |
| 30 | virtual Packet ReadPacket(uint32_t timeout) = 0; |
| 31 | }; |
| 32 | |
| 33 | } // namespace profiling |
| 34 | |
| 35 | } // namespace armnn |