mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
feature: charge: modify battery_gauge code
add temperature and current ioctl api Signed-off-by: weizhifang <weizhifang@xiaomi.com>
This commit is contained in:
committed by
Abdelatif Guettouche
parent
9235d6605b
commit
2a6673bcdd
@@ -99,6 +99,14 @@ struct battery_gauge_operations_s
|
||||
/* Battery capacity */
|
||||
|
||||
int (*capacity)(struct battery_gauge_dev_s *dev, b16_t *value);
|
||||
|
||||
/* Battery current */
|
||||
|
||||
int (*current)(struct battery_gauge_dev_s *dev, b16_t *value);
|
||||
|
||||
/* Battery temp */
|
||||
|
||||
int (*temp)(struct battery_gauge_dev_s *dev, b8_t *value);
|
||||
};
|
||||
|
||||
/* This structure defines the battery driver state structure */
|
||||
|
||||
Reference in New Issue
Block a user