| 123456789101112131415 |
- #ifndef I2C_PI_TARGET_H
- #define I2C_PI_TARGET_H
- #include <stdbool.h>
- // I2C command codes
- #define CMD_GET_BATTERY_STATUS 0x01 // Request battery state
- #define CMD_GET_BATTERY_DATA 0x02 // Request battery data
- #define CMD_SET_BATTERY_LIMIT 0x03 // SET min/max voltage, cutoff current limits
- void pi_i2c_mcu();
- #endif
|