Skip to content
Ken Sharp edited this page Dec 8, 2023 · 1 revision

DebugPrintPacket()

Prints a formatted LINX command or response packet.

Syntax

DebugPrintPacket(unsigned char direction, const unsigned char* packetBuffer);

direction
Packet type (command or response) to determine formatting:

  • 0 - TX - Response packet
  • 1 - RX - Command packet

packetBuffer
A pointer to the packet buffer.

  • If direction=TX this should be a pointer to sendBuffer (the outgoing response buffer).
  • If direction=RX this should be a pointer to recBuffer (the incoming command buffer).

Returns

void

Related Links

Clone this wiki locally