libx52
0.3.2
Saitek X52/X52Pro drivers for Linux/Unix
|
Functions | |
int | libx52util_convert_utf8_string (const uint8_t *input, uint8_t *output, size_t *len) |
Convert UTF8 string to X52 character map. More... | |
These functions simplify some of the data handling for MFD & LED control.
int libx52util_convert_utf8_string | ( | const uint8_t * | input, |
uint8_t * | output, | ||
size_t * | len | ||
) |
Convert UTF8 string to X52 character map.
This function takes in a UTF-8 string and converts it to the character map used by the X52Pro MFD. Unrecognized characters are silently dropped.
[in] | input | Input string in UTF-8. Must be NUL-terminated |
[out] | output | Output buffer |
[in,out] | len | Length of output buffer |