fuel_gauge: Implement sbs gauge read for mfr acc
Implement and weakly test fetching the manufacturer access word from an SBS compatible fuel gauge. Signed-off-by: Aaron Massey <aaronmassey@google.com>
This commit is contained in:
parent
db60e08604
commit
c0762d003a
3 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,7 @@ static int emul_sbs_gauge_reg_read(const struct emul *target, int reg, int *val)
|
|||
ARG_UNUSED(target);
|
||||
|
||||
switch (reg) {
|
||||
case SBS_GAUGE_CMD_MANUFACTURER_ACCESS:
|
||||
case SBS_GAUGE_CMD_VOLTAGE:
|
||||
case SBS_GAUGE_CMD_AVG_CURRENT:
|
||||
case SBS_GAUGE_CMD_TEMP:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue