64 return "generic/unspecified error";
66 return "memory allocation error";
68 return "invalid argument";
70 return "internal error";
72 return "invalid samplerate";
74 return "not applicable";
76 return "device closed but should be open";
78 return "timeout occurred";
80 return "no channel group specified";
82 return "data is invalid";
84 return "input/output error";
86 return "unknown error";
115 switch (error_code) {
121 return "SR_ERR_MALLOC";
127 return "SR_ERR_SAMPLERATE";
131 return "SR_ERR_DEV_CLOSED";
133 return "SR_ERR_TIMEOUT";
135 return "SR_ERR_CHANNEL_GROUP";
137 return "SR_ERR_DATA";
141 return "unknown error code";
Generic/unspecified error.
Errors hinting at internal bugs.
const char * sr_strerror_name(int error_code)
Return the "name" string of the given libsigrok error code.
Malloc/calloc/realloc error.
A channel group must be specified.
The public libsigrok header file to be used by frontends.
Device is closed, but must be open.
const char * sr_strerror(int error_code)
Return a human-readable error string for the given libsigrok error code.