Nikhil Raj | bc62605 | 2019-08-15 15:49:45 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #include "Packet.hpp" |
| 7 | |
Aron Virginas-Tar | e898db9 | 2019-08-22 12:56:34 +0100 | [diff] [blame] | 8 | namespace armnn |
| 9 | { |
| 10 | |
| 11 | namespace profiling |
| 12 | { |
| 13 | |
Nikhil Raj | bc62605 | 2019-08-15 15:49:45 +0100 | [diff] [blame] | 14 | std::uint32_t Packet::GetHeader() const |
| 15 | { |
| 16 | return m_Header; |
| 17 | } |
| 18 | |
| 19 | std::uint32_t Packet::GetPacketFamily() const |
| 20 | { |
| 21 | return m_PacketFamily; |
| 22 | } |
| 23 | |
| 24 | std::uint32_t Packet::GetPacketId() const |
| 25 | { |
| 26 | return m_PacketId; |
| 27 | } |
| 28 | |
| 29 | std::uint32_t Packet::GetLength() const |
| 30 | { |
| 31 | return m_Length; |
| 32 | } |
| 33 | |
| 34 | const char* Packet::GetData() |
| 35 | { |
| 36 | return m_Data; |
| 37 | } |
| 38 | |
| 39 | std::uint32_t Packet::GetPacketClass() const |
| 40 | { |
| 41 | return (m_PacketId >> 3); |
| 42 | } |
| 43 | |
| 44 | std::uint32_t Packet::GetPacketType() const |
| 45 | { |
| 46 | return (m_PacketId & 7); |
Aron Virginas-Tar | e898db9 | 2019-08-22 12:56:34 +0100 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | } // namespace profiling |
| 50 | |
| 51 | } // namespace armnn |