Commit Graph

4 Commits

Author SHA1 Message Date
Martin Ling 00ebcbf48a Change prototype of sr_trigger_new to take const char *. 2014-07-17 18:39:17 +01:00
Bert Vermeulen a153d6b8ff trigger: Rename sr_trigger_stage_new() to sr_trigger_stage_add(). 2014-05-31 10:34:56 +02:00
Bert Vermeulen 2fe8049447 trigger: Fix memory leak. 2014-05-28 15:46:21 +02:00
Bert Vermeulen 7b5e6d2978 Add new triggering framework.
The new triggers consist of a set of structs and an API to manipulate
them.  Both logic and analog triggers are supported, in an unlimited
number of stages.

A single struct sr_trigger containing its stages and triggers is then
added to the session.

In case of a driver where the hardware supports triggering, the struct
is then converted and used to arm the hardware trigger. Drivers without
hardware trigger support, such as fx2lafw or multimeter drivers, use it
as the basis for a software-based trigger implementation instead.
2014-05-27 23:53:27 +02:00