2025-08-29 21:53:52 +02:00

21 lines
470 B
C++

#pragma once
#include <Tactility/hal/i2c/I2cDevice.h>
constexpr auto BQ25896_ADDRESS = 0x6b;
class Bq25896 final : public tt::hal::i2c::I2cDevice {
public:
std::string getName() const override { return "BQ25896"; }
std::string getDescription() const override { return "I2C 1 cell 3A buck battery charger with power path and PSEL"; }
explicit Bq25896(i2c_port_t port) : I2cDevice(port, BQ25896_ADDRESS) {}
void powerOff();
void powerOn();
};