first version of cron, does not read configuation from file
This commit is contained in:
@@ -68,8 +68,6 @@ namespace drivers
|
||||
|
||||
class PCF85063
|
||||
{
|
||||
I2C &m_i2c;
|
||||
uint8_t m_address;
|
||||
|
||||
public:
|
||||
typedef struct
|
||||
@@ -102,13 +100,18 @@ namespace drivers
|
||||
const bool getAlarmFlag(uint8_t &flags);
|
||||
|
||||
const std::string getTimeStr();
|
||||
|
||||
static const std::string datetime2str(const datetime_t &datetime);
|
||||
|
||||
static const std::string datetime2str(const datetime_t &datetime);
|
||||
static const std::tm datetime2tm(const datetime_t& datetime);
|
||||
static const PCF85063::datetime_t fromEpoch(const time_t currentTime);
|
||||
|
||||
private:
|
||||
const uint8_t decToBcd(const int val);
|
||||
const int bcdToDec(const uint8_t val);
|
||||
|
||||
private:
|
||||
I2C &m_i2c;
|
||||
uint8_t m_address;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user