Logo
Explore Help
Sign In
linuxmsm/cdba
0
0
Fork 0
You've already forked cdba
mirror of https://github.com/linux-msm/cdba.git synced 2026-02-25 13:11:56 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
topic/protomd
cdba/status-cmd.h

9 lines
116 B
C
Raw Permalink Normal View History

cdba-server: Allow external status command While the CDB Assist and QcomLT Debugboard is measuring voltage and current on the DC jack directly in the backend, other backends and further measurements can be performed using custom tooling. Introduce support for invoking an external "status-cmd" to produce such status updates. The status command should on its stdout produce json-formatted status updates following the same format as the cdba-server: {"ts":%d.%03d, "name": {["mv"|"ma"]: %u}(, "name2": {["mv"|"ma"]: %u})*} with the ts aquired using clock_gettime(CLOCK_MONOTONIC) and provided in seconds and milliseconds since the first measurement. Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
2023-11-05 14:47:10 -06:00
#ifndef __STATUS_CMD_H__
#define __STATUS_CMD_H__
struct device;
int status_cmd_open(struct device *dev);
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Page: 61ms Template: 4ms
English
English
Licenses API