riot_sys

Function saul_class_to_str

Source
pub unsafe extern "C" fn saul_class_to_str(
    class_id: u8,
) -> *const c_char
Expand description

@brief Helper function converts a class ID to a string

@param[in] class_id device class ID

@return string representation of the device class @retval NULL class ID is not known

@deprecated Use @ref saul_class_print or @ref saul_class_write instead

@warning For classic Harvard architectures a small buffer is used to store the string, so that subsequent (or concurrent!) calls will overwrite the output.