SEGGER_SYSVIEW_EncodeId() function
SEGGER_SYSVIEW_EncodeId() Function description Encode a 32-bit Id in shrunken variable-length format. Parameters pPayload - Pointer to where the Id will be encoded. Id - The 32-bit value to be encoded. Return value Pointer to the byte following the value, i.e. the first free byte in the payload and the next position to store payload content. Additional information The parameters to shrink an Id can be configured in SEGGER_SYSVIEW_Conf.h and via SEGGER_SYSVIEW_SetRAMBase(). SEGGER_SYSVIEW_ID_BASE: Lowest Id reported by the application. (i.e. 0x20000000 when all Ids are an address in this RAM) SEGGER_SYSVIEW_ID_SHIFT: Number of bits to shift the Id to save bandwidth. (i.e. 2 when Ids are 4 byte aligned)
SEGGER_SYSVIEW_EncodeId() reads 2 variables:
![]()
SEGGER_SYSVIEW_EncodeId()