|
libeasymcp2221 2.0.3
|
Error-code formatting helpers. More...
Go to the source code of this file.
Functions | |
| const char * | mcp2221_error_code_to_string (mcp2221_error_code_t code) |
| Convert an error code to its stable symbolic name. More... | |
Error-code formatting helpers.
Definition in file mcp2221_errors.h.
| const char * mcp2221_error_code_to_string | ( | mcp2221_error_code_t | code | ) |
Convert an error code to its stable symbolic name.
The returned string has static storage duration and must not be freed. Known error codes map to names such as "OK", "USBError", and "InvalidError". Unknown values map to "GenericError".
| [in] | code | Error code to format. |