ArmNN
 22.05
TestProfilingConnectionBadAckPacket Class Reference

#include <ProfilingTests.hpp>

Inheritance diagram for TestProfilingConnectionBadAckPacket:
TestProfilingConnectionBase

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
 
arm::pipe::Packet ReadPacket (uint32_t timeout) override
 

Additional Inherited Members

- Public Attributes inherited from TestProfilingConnectionBase
bool m_FirstCall = true
 

Detailed Description

Definition at line 119 of file ProfilingTests.hpp.

Member Function Documentation

◆ ReadPacket()

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

Definition at line 122 of file ProfilingTests.hpp.

References armnn::IgnoreUnused().

123  {
124  arm::pipe::IgnoreUnused(timeout);
125  // Connection Acknowledged Packet header (word 0, word 1 is always zero):
126  // 26:31 [6] packet_family: Control Packet Family, value 0b000000
127  // 16:25 [10] packet_id: Packet identifier, value 0b0000000001
128  // 8:15 [8] reserved: Reserved, value 0b00000000
129  // 0:7 [8] reserved: Reserved, value 0b00000000
130  uint32_t packetFamily = 0;
131  uint32_t packetId = 37; // Wrong packet id!!!
132  uint32_t header = ((packetFamily & 0x0000003F) << 26) | ((packetId & 0x000003FF) << 16);
133 
134  return arm::pipe::Packet(header);
135  }
void IgnoreUnused(Ts &&...)

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