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.
| 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.