Found 4 other functions taking a
SEGGER_RTT_BUFFER_UP
argument:
_WriteBlocking() Function description Stores a specified number of characters in SEGGER RTT ring buffer and updates the associated write pointer which is periodically read by the host. The caller is responsible for managing the write chunk sizes as _WriteBlocking() will block until all data has been posted successfully. Parameters pRing Ring buffer to post to. 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 >= 0 - Number of bytes written into buffer.
_GetAvailWriteSpace() Function description Returns the number of bytes that can be written to the ring buffer without blocking. Parameters pRing Ring buffer to check. Return value Number of bytes that are free in the buffer.
_PostTerminalSwitch() Function description Switch terminal to the given terminal ID. It is the caller's responsibility to ensure the terminal ID is correct and there is enough space in the buffer for this to complete successfully. Parameters pRing Ring buffer to post to. TerminalId Terminal ID to switch to.
_WriteNoCheck() Function description Stores a specified number of characters in SEGGER RTT ring buffer and updates the associated write pointer which is periodically read by the host. It is callers responsibility to make sure data actually fits in buffer. Parameters pRing Ring buffer to post to. 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. Notes (1) If there might not be enough space in the "Up"-buffer, call _WriteBlocking