Add GetCurrent to Interface 33/170233/7
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 5 Feb 2018 17:37:15 +0000 (18:37 +0100)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 25 May 2018 11:28:34 +0000 (13:28 +0200)
commit3bd96650567d9ad02dc77e8c442e55eecca90058
tree3756185863c17a19565b676ad1a782d833007eb9
parent438cb57d5ead62803bb5b787907f4911dfa787cc
Add GetCurrent to Interface

GetCurrent method of STM interface fetches the value of the measured
current drawn by DUT. It sends "current" to STM's UART and parses
the response, which is expected to be an integer.

A new internal helper function, sendAndReceive, is added.

Change-Id: Ifb8b634b5b432685d6b69dc76ebc8f4e9f8fa189
sw/nanopi/cmd/stm/stm.go
sw/nanopi/stm/stm.go