• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include <common/include/CommandHandlerFunctor.hpp>
8 #include <common/include/Packet.hpp>
9 
10 #include <vector>
11 
12 namespace armnn
13 {
14 
15 namespace gatordmock
16 {
17 
18 class PeriodicCounterSelectionResponseHandler : public arm::pipe::CommandHandlerFunctor
19 {
20 
21 public:
22     /**
23      *
24      * @param packetId The id of packets this handler will process.
25      * @param version The version of that id.
26      * @param quietOperation Optional parameter to turn off printouts. This is useful for unittests.
27      */
PeriodicCounterSelectionResponseHandler(uint32_t familyId,uint32_t packetId,uint32_t version,bool quietOperation=true)28     PeriodicCounterSelectionResponseHandler(uint32_t familyId,
29                                             uint32_t packetId,
30                                             uint32_t version,
31                                             bool quietOperation = true)
32         : CommandHandlerFunctor(familyId, packetId, version)
33         , m_QuietOperation(quietOperation)
34     {}
35 
36     void operator()(const arm::pipe::Packet& packet) override;
37 
38 private:
39     bool m_QuietOperation;
40 };
41 
42 }    // namespace gatordmock
43 
44 }    // namespace armnn