Translation APIs from enumerations to string, primarily for logging.
◆ libx52_clock_format_to_str()
Returns a string representation of the clock format.
- Parameters
-
- Returns
- Pointer to a NULL terminated string describing the clock format. Returned pointer must not be freed.
◆ libx52_clock_id_to_str()
Returns a string representation of the clock ID.
- Parameters
-
- Returns
- Pointer to a NULL terminated string describing the clock ID. Returned pointer must not be freed.
◆ libx52_date_format_to_str()
Returns a string representation of the date format.
- Parameters
-
- Returns
- Pointer to a NULL terminated string describing the date format. Returned pointer must not be freed.
◆ libx52_led_id_to_str()
Returns a string representation of the LED.
- Parameters
-
- Returns
- Pointer to a NULL terminated string describing the LED. Returned pointer must not be freed.
◆ libx52_led_state_to_str()
Returns a string representation of the LED state.
- Parameters
-
- Returns
- Pointer to a NULL terminated string describing the LED state. Returned pointer must not be freed.
◆ libx52_strerror()
Return a string representation of the error code.
- Parameters
-
[in] | error | Error code returned by libx52 function |
- Returns
- Pointer to a NULL terminated string describing the error. Returned pointer must not be freed.