65 return "generic/unspecified error";
67 return "memory allocation error";
69 return "invalid argument";
71 return "internal error";
73 return "invalid samplerate";
75 return "not applicable";
77 return "device closed but should be open";
79 return "timeout occurred";
81 return "no channel group specified";
83 return "data is invalid";
85 return "input/output error";
87 return "unknown error";
116 switch (error_code) {
122 return "SR_ERR_MALLOC";
128 return "SR_ERR_SAMPLERATE";
132 return "SR_ERR_DEV_CLOSED";
134 return "SR_ERR_TIMEOUT";
136 return "SR_ERR_CHANNEL_GROUP";
138 return "SR_ERR_DATA";
142 return "unknown error code";
The public libsigrok header file to be used by frontends.
Errors hinting at internal bugs.
Generic/unspecified error.
A channel group must be specified.
Malloc/calloc/realloc error.
Device is closed, but must be open.
const char * sr_strerror_name(int error_code)
Return the "name" string of the given libsigrok error code.
const char * sr_strerror(int error_code)
Return a human-readable error string for the given libsigrok error code.