blob: 93fc4080375d2fb066154ddcf5d1e86c96a881ba [file] [log] [blame]
Colm Donelana21620d2019-10-11 13:09:49 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <EncodeVersion.hpp>
9
10namespace armnn
11{
12
13namespace gatordmock
14{
15
16
17uint32_t ConstructHeader(uint32_t packetFamily,
18 uint32_t packetClass,
19 uint32_t packetType)
20{
21 return ((packetFamily & 0x3F) << 26)|
22 ((packetClass & 0x3FF) << 19)|
23 ((packetType & 0x3FFF) << 16);
24}
25
26uint32_t ConstructHeader(uint32_t packetFamily,
27 uint32_t packetId)
28{
29 return ((packetFamily & 0x3F) << 26)|
30 ((packetId & 0x3FF) << 16);
31}
32
33} // gatordmock
34
35} // armnn