mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-20 23:45:05 +00:00
23 lines
494 B
C++
23 lines
494 B
C++
#pragma once
|
|
|
|
#include <Tactility/hal/i2c/I2cDevice.h>
|
|
|
|
constexpr auto BQ25896_ADDRESS = 0x6b;
|
|
|
|
class Bq25896 final : public tt::hal::i2c::I2cDevice {
|
|
|
|
public:
|
|
|
|
explicit Bq25896(i2c_port_t port) : I2cDevice(port, BQ25896_ADDRESS) {
|
|
powerOn();
|
|
}
|
|
|
|
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"; }
|
|
|
|
void powerOff();
|
|
|
|
void powerOn();
|
|
};
|