MCPcopy Create free account
hub / github.com/Marus/cortex-debug / resetRxPacket

Method resetRxPacket

src/frontend/swo/core.ts:62–69  ·  view source on GitHub ↗
(port: number, length: number, type: PacketType)

Source from the content-addressed store, hash-verified

60 }
61
62 private resetRxPacket(port: number, length: number, type: PacketType) {
63 this.rxBuffer = Buffer.alloc(length, 0);
64
65 this.rxTargetLength = length;
66 this.rxPacketType = type;
67 this.rxPort = port;
68 this.rxCount = 0;
69 }
70
71 private rxWriteByte(byte: number): boolean {
72 if (this.rxCount < this.rxBuffer.length) {

Callers 1

processByteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected