libsigrokdecode: add vbus voltage and current decoders: value, timestamp

When first time see a 1, it means a vbus value + the offset.
value can be vbus voltage or current.
When using sigrok-cli to capture the data sent from twinkie,
all available vbus (voltage and current) information are recored.

In pulseview, we are only interested in values that have real
changes, instead of changes due to unstability/noises. So, we
use threshold values to just print meaningful changes. The
threshold for vbus voltage and current are set as 100 mV
and 100 mA, respectively. We allow user to set threshold values
from sigrok-cli command line, when they want to print the vbus
information in text format.

BUG=none
TEST=BEGIN
The following command will set the voltage threshold to 200 mV, and print
vbus voltage information in text format:
sigrok-cli -i test.sr -P usb_pd_vbus_voltage:vbus='VBus Voltage':voltage_threshold=200

Similarly, the following command will set the current threshold to 200 mA
and print vbus current information in text format:

sigrok-cli -i test.sr -P usb_pd_vbus_current:vbus='VBus Current':current_threshold=200

END

Signed-off-by: Dawei Li <daweili@google.com>
Change-Id: I5087edc68d50784842c6e2076ef95449087671d3
4 files changed