SEGGER_RTT_WriteDownBufferNoLock() function
SEGGER_RTT_WriteDownBufferNoLock Function description Stores a specified number of characters in SEGGER RTT control block inside a buffer. SEGGER_RTT_WriteDownBufferNoLock does not lock the application. Used to do the same operation that J-Link does, to transfer RTT data from other channels, such as TCP/IP or UART. Parameters BufferIndex Index of "Down"-buffer to be used. 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. (2) For performance reasons this function does not call Init() and may only be called after RTT has been initialized. Either by calling SEGGER_RTT_Init() or calling another RTT API function first. Additional information This function must not be called when J-Link might also do RTT.