303
Return value
Value
≥ 0
O.K.
< 0
Error
Example
//
// Configure down channel 1
//
SEGGER_RTT_ConfigDownChannel(1, "DataIn", &abDataIn[0], sizeof(abDataIn),
Additional information
Once a channel is configured only the flags of the channel should be changed.
13.4.1.2
SEGGER_RTT_ConfigUpBuffer()
Configure or add an up buffer by specifying its name, size and flags.
Syntax
int SEGGER_RTT_ConfigUpBuffer (unsigned BufferIndex, const char* sName, char*
pBuffer, int BufferSize, int Flags);
Parameter
BufferIndex
sName
pBuffer
BufferSize
Flags
Return value
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()
Reads one character from SEGGER RTT buffer 0. Host has previously stored data there.
J-Link / J-Trace (UM08001)
CHAPTER 13
Meaning
SEGGER_RTT_MODE_NO_BLOCK_SKIP);
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).
Meaning
SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL);
Meaning
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
Implementation
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers