Xil_ConvertStringToHexBE - Xil_ConvertStringToHexBE - 2026.1 English - UG643

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2026-06-23
Version
2026.1 English

Copies source string to destination string

Converts the string into the equivalent Hex buffer. Ex: "abc123" -> {0xab, 0xc1, 0x23}

  • XST_FAILURE an error when input parameters are not valid
  • an error when input buffer has invalid values

Prototype

u32 Xil_ConvertStringToHexBE(const char *Str, u8 *Buf, u32 Len);

Parameters

The following table lists the Xil_ConvertStringToHexBE function arguments.

Table 1. Xil_ConvertStringToHexBE Arguments
Type Member Description
const char * Str is a Input String. Will support the lower and upper case values. Value should be between 0-9, a-f and A-F
u8 * Buf is Output buffer.
u32 Len of the input string. Should have even values

Returns

  • XST_SUCCESS no errors occurred.