ArmNN
 20.02
IProfilingConnection.hpp
Go to the documentation of this file.
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 
19 {
20 public:
21  virtual ~IProfilingConnection() {}
22 
23  virtual bool IsOpen() const = 0;
24 
25  virtual void Close() = 0;
26 
27  virtual bool WritePacket(const unsigned char* buffer, uint32_t length) = 0;
28 
29  virtual Packet ReadPacket(uint32_t timeout) = 0;
30 };
31 
32 } // namespace profiling
33 
34 } // namespace armnn
Copyright (c) 2020 ARM Limited.
virtual Packet ReadPacket(uint32_t timeout)=0
virtual bool WritePacket(const unsigned char *buffer, uint32_t length)=0