ArmNN
 21.02
TestProfilingConnectionBadAckPacket Class Reference

#include <ProfilingTests.hpp>

Inheritance diagram for TestProfilingConnectionBadAckPacket:
TestProfilingConnectionBase IProfilingConnection

Public Member Functions

arm::pipe::Packet ReadPacket (uint32_t timeout) override
 
- Public Member Functions inherited from TestProfilingConnectionBase
 TestProfilingConnectionBase ()=default
 
 ~TestProfilingConnectionBase ()=default
 
bool IsOpen () const override
 
void Close () override
 
bool WritePacket (const unsigned char *buffer, uint32_t length) override
 
- Public Member Functions inherited from IProfilingConnection
virtual ~IProfilingConnection ()
 

Additional Inherited Members

- Public Attributes inherited from TestProfilingConnectionBase
bool m_FirstCall = true
 

Detailed Description

Definition at line 158 of file ProfilingTests.hpp.

Member Function Documentation

◆ ReadPacket()

arm::pipe::Packet ReadPacket ( uint32_t  timeout)
inlineoverridevirtual

Reimplemented from TestProfilingConnectionBase.

Definition at line 161 of file ProfilingTests.hpp.

References armnn::IgnoreUnused().

162  {
163  IgnoreUnused(timeout);
164  // Connection Acknowledged Packet header (word 0, word 1 is always zero):
165  // 26:31 [6] packet_family: Control Packet Family, value 0b000000
166  // 16:25 [10] packet_id: Packet identifier, value 0b0000000001
167  // 8:15 [8] reserved: Reserved, value 0b00000000
168  // 0:7 [8] reserved: Reserved, value 0b00000000
169  uint32_t packetFamily = 0;
170  uint32_t packetId = 37; // Wrong packet id!!!
171  uint32_t header = ((packetFamily & 0x0000003F) << 26) | ((packetId & 0x000003FF) << 16);
172 
173  return arm::pipe::Packet(header);
174  }
void IgnoreUnused(Ts &&...)

The documentation for this class was generated from the following file: