diff options
Diffstat (limited to 'src/profiling/IProfilingConnection.hpp')
-rw-r--r-- | src/profiling/IProfilingConnection.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/profiling/IProfilingConnection.hpp b/src/profiling/IProfilingConnection.hpp new file mode 100644 index 0000000000..c8387f2a83 --- /dev/null +++ b/src/profiling/IProfilingConnection.hpp @@ -0,0 +1,32 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "Packet.hpp" + +#include <cstdint> + +namespace armnn +{ + +namespace profiling +{ + +class IProfilingConnection +{ +public: + virtual bool IsOpen() = 0; + + virtual void Close() = 0; + + virtual bool WritePacket(const char* buffer, uint32_t length) = 0; + + virtual Packet ReadPacket(uint32_t timeout) = 0; +}; + +} // namespace profiling + +} // namespace armnn |