|
libjaylink
0.4.0
Library to access J-Link devices
|
String utility functions. More...
Functions | |
| int | jaylink_parse_serial_number (const char *str, uint32_t *serial_number) |
| Convert a string representation of a serial number to an integer. More... | |
| const char * | jaylink_hardware_type_string (enum jaylink_hardware_type type) |
| Get the string representation of a hardware type. More... | |
| const char * | jaylink_target_interface_string (enum jaylink_target_interface iface) |
| Get the string representation of a target interface. More... | |
String utility functions.
| const char* jaylink_hardware_type_string | ( | enum jaylink_hardware_type | type | ) |
Get the string representation of a hardware type.
| [in] | type | Hardware type. |
| int jaylink_parse_serial_number | ( | const char * | str, |
| uint32_t * | serial_number | ||
| ) |
Convert a string representation of a serial number to an integer.
The string representation of the serial number must be in decimal form.
| [in] | str | String representation to convert. |
| [out] | serial_number | Serial number on success, and undefined on failure. |
| JAYLINK_OK | Success. |
| JAYLINK_ERR_ARG | Invalid arguments. |
| JAYLINK_ERR | Conversion error. Serial number is invalid or string representation contains invalid character(s). |
| const char* jaylink_target_interface_string | ( | enum jaylink_target_interface | iface | ) |
Get the string representation of a target interface.
| [in] | iface | Target interface. |
1.8.10