- Implemented [unPhone](https://unphone.net/) v9 board - Updated `.clang-format` to better reflect the intended code style - Fix SD card compatibility issues for all boards (frequency wasn't set well) - Moved `I2cDevice` class from CoreS3 board project to TactilityHeadless project - Tactility configuration now has default empty lists for apps and services fields - Fix for Launcher app: we don't need padding when showing it vertically - Fix for I2cDevice read/write calls that checked for `esp_err_t` instead of `bool` - Fix for TinyUSB init that checked for `esp_err_t` instead of `bool`
26 lines
611 B
C++
26 lines
611 B
C++
#pragma once
|
|
|
|
#include "hal/i2c/I2cDevice.h"
|
|
|
|
#define BQ24295_ADDRESS 0x6BU
|
|
|
|
class Bq24295 : I2cDevice {
|
|
|
|
public:
|
|
|
|
explicit Bq24295(i2c_port_t port) : I2cDevice(port, BQ24295_ADDRESS) {}
|
|
|
|
bool getWatchDog(uint8_t value) const;
|
|
bool setWatchDogBitOn(uint8_t mask) const;
|
|
bool setWatchDogBitOff(uint8_t mask) const;
|
|
|
|
bool getOperationControl(uint8_t value) const;
|
|
bool setOperationControlBitOn(uint8_t mask) const;
|
|
bool setOperationControlBitOff(uint8_t mask) const;
|
|
|
|
bool getStatus(uint8_t& value) const;
|
|
bool getVersion(uint8_t& value) const;
|
|
|
|
void printInfo() const;
|
|
};
|