aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/Packet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/Packet.cpp')
-rw-r--r--src/profiling/Packet.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/profiling/Packet.cpp b/src/profiling/Packet.cpp
new file mode 100644
index 0000000000..97cb89b517
--- /dev/null
+++ b/src/profiling/Packet.cpp
@@ -0,0 +1,41 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#include "Packet.hpp"
+
+std::uint32_t Packet::GetHeader() const
+{
+ return m_Header;
+}
+
+std::uint32_t Packet::GetPacketFamily() const
+{
+ return m_PacketFamily;
+}
+
+std::uint32_t Packet::GetPacketId() const
+{
+ return m_PacketId;
+}
+
+std::uint32_t Packet::GetLength() const
+{
+ return m_Length;
+}
+
+const char* Packet::GetData()
+{
+ return m_Data;
+}
+
+std::uint32_t Packet::GetPacketClass() const
+{
+ return (m_PacketId >> 3);
+}
+
+std::uint32_t Packet::GetPacketType() const
+{
+ return (m_PacketId & 7);
+} \ No newline at end of file