blob: 46da688ae17abff422d6ca9093928ef18d919df4 [file] [log] [blame]
Colm Donelanb682d842019-10-16 12:24:20 +01001//
Jim Flynnbbfe6032020-07-20 16:57:44 +01002// Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
Colm Donelanb682d842019-10-16 12:24:20 +01003// SPDX-License-Identifier: MIT
4//
Finn Williamsd7fcafa2020-04-23 17:55:18 +01005#pragma once
Colm Donelanb682d842019-10-16 12:24:20 +01006
Jim Flynnbbfe6032020-07-20 16:57:44 +01007#include <common/include/CommandHandlerFunctor.hpp>
8#include <common/include/Packet.hpp>
Colm Donelanb682d842019-10-16 12:24:20 +01009
10#include <vector>
11
12namespace armnn
13{
14
15namespace gatordmock
16{
17
Jim Flynnbbfe6032020-07-20 16:57:44 +010018class PeriodicCounterSelectionResponseHandler : public arm::pipe::CommandHandlerFunctor
Colm Donelanb682d842019-10-16 12:24:20 +010019{
20
21public:
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 */
Jim Flynn397043f2019-10-17 17:37:10 +010028 PeriodicCounterSelectionResponseHandler(uint32_t familyId,
29 uint32_t packetId,
30 uint32_t version,
31 bool quietOperation = true)
32 : CommandHandlerFunctor(familyId, packetId, version)
Colm Donelanb682d842019-10-16 12:24:20 +010033 , m_QuietOperation(quietOperation)
34 {}
35
Jim Flynnbbfe6032020-07-20 16:57:44 +010036 void operator()(const arm::pipe::Packet& packet) override;
Colm Donelanb682d842019-10-16 12:24:20 +010037
38private:
39 bool m_QuietOperation;
40};
41
42} // namespace gatordmock
43
44} // namespace armnn