1 /* 2 * Copyright (c) 2023 Alvaro Garcia Gomez <maxpowel@gmail.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 8 #ifndef ZEPHYR_DRIVERS_SENSOR_MAX17048_MAX17048_H_ 9 #define ZEPHYR_DRIVERS_SENSOR_MAX17048_MAX17048_H_ 10 11 #include <zephyr/drivers/i2c.h> 12 13 #define REGISTER_VCELL 0x02 14 #define REGISTER_SOC 0x04 15 #define REGISTER_MODE 0x06 16 #define REGISTER_VERSION 0x08 17 #define REGISTER_HIBRT 0x0A 18 #define REGISTER_CONFIG 0x0C 19 #define REGISTER_VALRT 0x14 20 #define REGISTER_CRATE 0x16 21 #define REGISTER_VRESET 0x18 22 #define REGISTER_CHIP_ID 0x19 23 #define REGISTER_STATUS 0x1A 24 #define REGISTER_TABLE 0x40 25 #define REGISTER_COMMAND 0xFE 26 27 #define RESET_COMMAND 0x5400 28 #define QUICKSTART_MODE 0x4000 29 30 struct max17048_config { 31 struct i2c_dt_spec i2c; 32 }; 33 34 #endif /* ZEPHYR_DRIVERS_SENSOR_MAX17048_MAX17048_H_ */ 35