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:
Aaron Massey 2022-11-30 16:09:12 -07:00 committed by Carles Cufí
commit c0762d003a
3 changed files with 8 additions and 0 deletions

View file

@ -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: