Halfway RTC driver refactoring

This commit is contained in:
Emanuele Trabattoni
2025-06-22 15:27:10 +02:00
parent dcbe637ccc
commit 79e5760d19
3 changed files with 112 additions and 2 deletions

View File

@@ -190,4 +190,68 @@ void datetime_to_str(char *datetime_str, datetime_t time)
{
sprintf(datetime_str, " %d.%d.%d %d:%d:%d %s", time.year, time.month,
time.day, time.hour, time.minute, time.second, Week[time.dotw]);
}
}
namespace drivers
{
PCF85063::PCF85063(I2C &i2c, const uint8_t address) : m_i2c(i2c), m_address(address)
{
}
const bool PCF85063::reset(void)
{
}
const bool PCF85063::setTime(datetime_t time)
{
}
const bool PCF85063::setDate(datetime_t date)
{
}
const bool PCF85063::setDatetime(datetime_t datetime)
{
}
const bool PCF85063::readDate(datetime_t &datetime)
{
}
const bool PCF85063::readTime(datetime_t &datetime)
{
}
const bool PCF85063::readDatetime(datetime_t &datetime)
{
}
const bool PCF85063::enableAlarm(const bool enable)
{
}
const bool PCF85063::setAlarm(datetime_t time)
{
}
const bool PCF85063::readAlarm(datetime_t &time)
{
}
const bool PCF85063::getAlarmFlafs(uint8_t &flags)
{
}
const std::string PCF85063::datetime2str(datetime_t &time)
{
}
const uint8_t PCF85063::decToBcd(int val)
{
}
const int PCF85063::bcdToDec(uint8_t val)
{
}
}