MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / ds_trigger_set_pos

Function ds_trigger_set_pos

libsigrok4DSL/trigger.c:215–227  ·  view source on GitHub ↗

* set trigger position * * @return SR_OK upon success. */

Source from the content-addressed store, hash-verified

213 * @return SR_OK upon success.
214 */
215SR_API int ds_trigger_set_pos(uint16_t position)
216{
217 assert(position <= 100);
218
219 if (trigger == NULL){
220 sr_err("ds_trigger_set_pos() error, trigger have'nt be inited.");
221 return SR_ERR_CALL_STATUS;
222 }
223
224 trigger->trigger_pos = position;
225
226 return SR_OK;
227}
228
229/**
230 * get trigger position

Callers 1

commit_triggerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected