Segger J-Link User Manual page 362

Hide thumbs Also See for J-Link:
Table of Contents

Advertisement

362
13.4.1.2 SEGGER_RTT_ConfigUpBuffer()
Description
Configure or add an up buffer by specifying its name, size and flags.
Prototype
int SEGGER_RTT_ConfigUpBuffer (unsigned BufferIndex, const char* sName,
char* pBuffer, int BufferSize, int Flags);
Parameters
Parameter
BufferIndex
sName
pBuffer
BufferSize
Flags
Table 13.2: SEGGER_RTT_ConfigUpBuffer() parameter list
Return value
>= 0
O.K.
< 0
Error.
Example
//
// Configure up channel 1 to work in blocking mode
//
SEGGER_RTT_ConfigUpChannel(1, "DataOut", &abDataOut[0], sizeof(abDataOut),
Additional information
Once a channel is configured only the flags of the channel should be changed.
13.4.1.3 SEGGER_RTT_GetKey()
Description
Reads one character from SEGGER RTT buffer 0. Host has previously stored data
there.
Prototype
int SEGGER_RTT_GetKey (void);
Return value
< 0
No character available (empty buffer).
>= 0
Character which has been read (0 - 255).
Example
int c;
c = SEGGER_RTT_GetKey();
if (c == 'q') {
exit();
}
J-Link / J-Trace (UM08001)
CHAPTER 13
Index of the buffer to configure. Must be lower than
SEGGER_RTT_MAX_NUM_UP_CHANNELS.
Pointer to a 0-terminated string to be displayed as the name of the
channel.
Pointer to a buffer used by the channel.
Size of the buffer in Bytes.
Flags of the channel (blocking or non-blocking).
SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL);
Meaning
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
RTT

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the J-Link and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

J-trace

Table of Contents

Save PDF