Add current sampling functions 39/170839/9
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 19 Feb 2018 11:23:55 +0000 (12:23 +0100)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 22 Jun 2018 15:11:11 +0000 (17:11 +0200)
commit7a592c4f9ec6d5f5d59f04870582a4f50f8611a3
treee26cd63ed156b8d927ab4c97100530d504111e5a
parent27b893a0339db2ed0274fd03b62177a8af317b31
Add current sampling functions

Three methods are added to Interface to ease the sampling of energy
consumed by DUT:

    StartCurrentRecord() - starts a goroutine sampling GetCurrent() for
        given time interval and number of times.

    StopCurrentRecord() - stops a goroutine sampling GetCurrent().

    GetCurrentRecord() - returns recorded sample even if it is not
        completed.

Change-Id: Ie127f165447bc6a326d76afee52b3abed1a09a91
sw/nanopi/stm/rpc_admin.go
sw/nanopi/stm/rpc_user.go
sw/nanopi/stm/stm.go