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

Method constructor

src/frontend/swo/sources/socket.ts:139–149  ·  view source on GitHub ↗
(tcpPort: string, public readonly channel: number)

Source from the content-addressed store, hash-verified

137
138export class JLinkSocketRTTSource extends SocketRTTSource {
139 constructor(tcpPort: string, public readonly channel: number) {
140 super(tcpPort, channel);
141
142 // When the TCP connection to the RTT port is established, send config commands
143 // within 100ms to configure the RTT channel. See
144 // https://wiki.segger.com/RTT#SEGGER_TELNET_Config_String for more information
145 // on the config string format.
146 this.on('connected', () => {
147 this.write(`$$SEGGER_TELNET_ConfigStr=RTTCh;${channel}$$`);
148 });
149 }
150}
151
152enum PeHeaderType {

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected