]> sigrok.org Git - libsigrok.git/commit
Add a sr_analog_init() API to initialize sr_datafeed_analog2 struct.
authorAurelien Jacobs <redacted>
Thu, 13 Nov 2014 23:50:46 +0000 (00:50 +0100)
committerBert Vermeulen <redacted>
Mon, 17 Nov 2014 21:04:24 +0000 (22:04 +0100)
commit41caa31909882a34b88c8b8a844d555816b78453
tree6e43a1dba222f862736bafe05eb146599367f84b
parent62f155f0c784509dbec98fc7c80b03284a271237
Add a sr_analog_init() API to initialize sr_datafeed_analog2 struct.

It fills the fields with reasonable default values that should suit
most of the drivers. Drivers are obviously free to override the fields
they want after initializing.
src/analog.c
src/hardware/mic-985xx/protocol.c
src/hardware/victor-dmm/protocol.c
src/libsigrok-internal.h