SEGGER_RTT_WriteDownBuffer() function
SEGGER_RTT_WriteDownBuffer Function description Stores a specified number of characters in SEGGER RTT control block in a buffer. Parameters BufferIndex Index of "Up"-buffer to be used (e.g. 0 for "Terminal"). pBuffer Pointer to character array. Does not need to point to a \0 terminated string. NumBytes Number of bytes to be stored in the SEGGER RTT control block. Return value Number of bytes which have been stored in the "Down"-buffer. Notes (1) Data is stored according to buffer flags. Additional information This function must not be called when J-Link might also do RTT. This function locks against all other RTT operations. I.e. during the write operation, writing from the application is also locked. If only one consumer writes to the down buffer, call SEGGER_RTT_WriteDownBufferNoLock() instead.