SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
SensorPCF85063 Class Reference

Driver for the PCF85063 real-time clock (RTC) over I2C. More...

#include <SensorPCF85063.hpp>

Inheritance diagram for SensorPCF85063:
[legend]

Public Types

enum  ClockHz {
  CLK_32768HZ = 0 , CLK_16384HZ , CLK_8192HZ , CLK_4096HZ ,
  CLK_2048HZ , CLK_1024HZ , CLK_1HZ , CLK_LOW
}
 Clock output frequency selection. More...
 

Public Member Functions

 SensorPCF85063 ()=default
 Construct a SensorPCF85063 instance.
 
 ~SensorPCF85063 ()=default
 Destructor.
 
bool begin (SensorCommCustom::CustomCallback callback)
 Initialize device using a custom transport callback.
 
void setDateTime (RTC_DateTime datetime) override
 Set the RTC date and time.
 
RTC_DateTime getDateTime () override
 Read the RTC date and time.
 
bool isClockIntegrityGuaranteed ()
 Check whether the clock integrity is guaranteed.
 
void stop ()
 Stop the RTC oscillator (timekeeping stops).
 
void start ()
 Start the RTC oscillator (timekeeping runs).
 
bool isRunning ()
 Check whether the RTC oscillator is currently running.
 
void enableAlarm ()
 Enable alarm interrupt/event generation.
 
void disableAlarm ()
 Disable alarm interrupt/event generation.
 
void resetAlarm ()
 Clear/reset the alarm flag.
 
bool isAlarmActive ()
 Check whether the alarm flag is active.
 
RTC_Alarm getAlarm ()
 Read current alarm configuration from the device.
 
void setAlarm (RTC_Alarm alarm)
 Set alarm using RTC_Alarm object.
 
void setAlarm (uint8_t hour, uint8_t minute, uint8_t second, uint8_t day, uint8_t week)
 Set the alarm fields (hour/minute/second/day/weekday).
 
void setAlarmByHours (uint8_t hour)
 Convenience: enable only hour alarm.
 
void setAlarmBySecond (uint8_t second)
 Convenience: enable only second alarm.
 
void setAlarmByMinutes (uint8_t minute)
 Convenience: enable only minute alarm.
 
void setAlarmByDays (uint8_t day)
 Convenience: enable only day-of-month alarm.
 
void setAlarmByWeekDay (uint8_t week)
 Convenience: enable only weekday alarm.
 
void setClockOutput (ClockHz hz)
 Configure the clock output frequency.
 
const char * getChipName () override
 Get RTC chip name.
 
void reset () override
 Reset the RTC.
 
virtual void setDateTime (RTC_DateTime datetime)=0
 Set the date and time of the RTC using an RTC_DateTime object.
 
void setDateTime (uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second)
 Set the date and time of the RTC using individual values.
 
virtual RTC_DateTime getDateTime ()=0
 Get the current date and time from the RTC.
 
void getDateTime (struct tm *info)
 Retrieve the current date and time from the RTC (Real-Time Clock) and populate a struct tm object.
 
- Public Member Functions inherited from SensorRTC
void getDateTime (struct tm *info)
 Retrieve the current date and time from the RTC (Real-Time Clock) and populate a struct tm object.
 
void setDateTime (uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second)
 Set the date and time of the RTC using individual values.
 
const char * strftime (DateTimeFormat style=DT_FMT_YMD_HMS_WEEK)
 Format the current date and time according to the specified style.
 
time_t hwClockRead (const timezone *tz=NULL)
 Read the time from the RTC (Real-Time Clock) and write it to the system clock.
 
int hwClockWrite ()
 Write the current system time to the RTC clock chip.
 
uint32_t getDayOfWeek (uint32_t day, uint32_t month, uint32_t year)
 Calculate the day of the week for a given date using Zeller's congruence.
 
uint8_t getNextMonth (uint8_t curMonth)
 Get the next month based on the current month.
 
uint16_t getNextYear (uint16_t curYear)
 Get the next year based on the current year.
 
uint32_t getLeapYear (uint32_t year)
 Determine whether a given year is a leap year.
 
uint8_t getDaysInMonth (uint8_t month, uint16_t year)
 Get the number of days in a given month of a specific year, considering leap years.
 
void convertUtcToTimezone (int &year, int &month, int &day, int &hour, int &minute, int &second, int timezoneOffsetSeconds)
 Convert UTC time represented by individual values to the time in the specified timezone.
 
void convertUtcToTimezone (struct tm &utcTime, int timezoneOffsetSeconds)
 Overloaded function to convert UTC time represented by a struct tm object to the time in the specified timezone.
 
- Public Member Functions inherited from I2CDeviceNoHal
bool begin (SensorCommCustom::CustomCallback callback, uint8_t addr)
 Initialize the sensor using custom callback interface.
 
- Public Member Functions inherited from DeviceBeginCommon
virtual ~DeviceBeginCommon ()
 
uint8_t getAddress () const
 
uint8_t getInterface () const
 
- Public Member Functions inherited from SensorCommWrapper
 SensorCommWrapper ()=default
 
int readReg (uint8_t reg) const
 
int readRegBuff (uint8_t reg, uint8_t *buf, size_t len) const
 
int readBuff (uint8_t *buf, size_t len) const
 
int writeReg (uint8_t reg, uint8_t val)
 
int writeRegBuff (uint8_t reg, uint8_t *buf, size_t len)
 
int writeBuff (uint8_t *buf, size_t len)
 
int writeThenRead (const uint8_t *write_buffer, size_t write_len, uint8_t *read_buffer, size_t read_len)
 
bool setRegBit (uint8_t reg, uint8_t bit)
 
bool clrRegBit (uint8_t reg, uint8_t bit)
 
bool getRegBit (uint8_t reg, uint8_t bit)
 
int updateBits (uint8_t reg, uint8_t mask, uint8_t value_shifted)
 
void setAddress (uint8_t address)
 
void setAck (bool enable)
 
- Public Member Functions inherited from SensorCommInterface
virtual ~SensorCommInterface ()=default
 

Protected Attributes

bool is24Hour
 Hour mode flag (true = 24-hour mode).
 
- Protected Attributes inherited from DeviceBeginCommon
std::unique_ptr< SensorCommBasecomm
 
std::unique_ptr< SensorHalhal
 
std::unique_ptr< SensorCommStaticstaticComm
 
uint8_t _addr = 0
 
uint8_t _iface = COMM_CUSTOM
 

Static Protected Attributes

static constexpr uint8_t PCF85063_CTRL1_REG = 0x00
 
static constexpr uint8_t PCF85063_CTRL2_REG = 0x01
 
static constexpr uint8_t PCF85063_OFFSET_REG = 0x02
 
static constexpr uint8_t PCF85063_RAM_REG = 0x03
 
static constexpr uint8_t PCF85063_SEC_REG = 0x04
 
static constexpr uint8_t PCF85063_MIN_REG = 0x05
 
static constexpr uint8_t PCF85063_HR_REG = 0x06
 
static constexpr uint8_t PCF85063_DAY_REG = 0x07
 
static constexpr uint8_t PCF85063_WEEKDAY_REG = 0x08
 
static constexpr uint8_t PCF85063_MONTH_REG = 0x09
 
static constexpr uint8_t PCF85063_YEAR_REG = 0x0A
 
static constexpr uint8_t PCF85063_ALRM_SEC_REG = 0x0B
 
static constexpr uint8_t PCF85063_ALRM_MIN_REG = 0x0C
 
static constexpr uint8_t PCF8563_ALRM_HR_REG = 0x0D
 
static constexpr uint8_t PCF85063_ALRM_DAY_REG = 0x0E
 
static constexpr uint8_t PCF85063_ALRM_WEEK_REG = 0x0F
 
static constexpr uint8_t PCF85063_TIMER_VAL_REG = 0x10
 
static constexpr uint8_t PCF85063_TIMER_MD_REG = 0x11
 
static constexpr uint8_t PCF85063_CTRL1_TEST_EN_MASK = (1 << 7u)
 
static constexpr uint8_t PCF85063_CTRL1_CLOCK_EN_MASK = (1 << 5u)
 
static constexpr uint8_t PCF85063_CTRL1_SOFTRST_EN_MASK = (1 << 4u)
 
static constexpr uint8_t PCF85063_CTRL1_CIE_EN_MASK = (1 << 2u)
 
static constexpr uint8_t PCF85063_CTRL1_HOUR_FORMAT_12H_MASK = (1 << 1u)
 
static constexpr uint8_t PCF85063_NO_ALARM = 0xFF
 
static constexpr uint8_t PCF85063_ALARM_ENABLE = 0x80
 

Additional Inherited Members

- Static Public Member Functions inherited from SensorRTC
static uint8_t BCD2DEC (uint8_t val)
 Convert a Binary Coded Decimal (BCD) number to a decimal number.
 
static uint8_t DEC2BCD (uint8_t val)
 Convert a decimal number to a Binary Coded Decimal (BCD) number.
 
- Protected Member Functions inherited from DeviceBeginCommon
 DeviceBeginCommon ()=default
 
virtual bool ensureValid () const override
 
virtual SensorCommBasegetComm () const override
 
virtual void beforeBegin ()
 
virtual void afterCommReady ()
 
virtual void afterInitSuccess (uint8_t param)
 
virtual void onBeginFail ()
 
bool fail ()
 
void clearCommState ()
 
template<typename CreateComm >
bool beginLifecycle (uint8_t addr, uint8_t iface, uint8_t initParam, CreateComm createComm)
 

Detailed Description

Driver for the PCF85063 real-time clock (RTC) over I2C.

Definition at line 48 of file time/pcf85063/SensorPCF85063.hpp.

Member Enumeration Documentation

◆ ClockHz

Clock output frequency selection.

Values map to the PCF85063 clock output control bits (see datasheet).

Enumerator
CLK_32768HZ 

32.768 kHz output

CLK_16384HZ 

16.384 kHz output

CLK_8192HZ 

8.192 kHz output

CLK_4096HZ 

4.096 kHz output

CLK_2048HZ 

2.048 kHz output

CLK_1024HZ 

1.024 kHz output

CLK_1HZ 

1 Hz output

CLK_LOW 

Lowest/low-power output option (chip-specific)

Definition at line 59 of file time/pcf85063/SensorPCF85063.hpp.

Constructor & Destructor Documentation

◆ SensorPCF85063()

SensorPCF85063::SensorPCF85063 ( )
default

Construct a SensorPCF85063 instance.

The instance is not usable until begin() succeeds.

◆ ~SensorPCF85063()

SensorPCF85063::~SensorPCF85063 ( )
default

Destructor.

Deinitializes the communication backend if created.

References I2CDeviceNoHal::begin(), and PCF85063_SLAVE_ADDRESS.

Member Function Documentation

◆ begin()

bool SensorPCF85063::begin ( SensorCommCustom::CustomCallback  callback)
inlinevirtual

Initialize device using a custom transport callback.

Parameters
callbackUser-provided callback used by SensorCommCustom.
Returns
true if the device is found and initialization succeeds, false otherwise.

Implements SensorRTC.

Definition at line 130 of file time/pcf85063/SensorPCF85063.hpp.

References I2CDeviceNoHal::begin(), and PCF85063_SLAVE_ADDRESS.

Referenced by setup().

◆ disableAlarm()

void SensorPCF85063::disableAlarm ( )
inline

Disable alarm interrupt/event generation.

Definition at line 252 of file time/pcf85063/SensorPCF85063.hpp.

References SensorCommWrapper::clrRegBit(), and PCF85063_CTRL2_REG.

◆ enableAlarm()

void SensorPCF85063::enableAlarm ( )
inline

Enable alarm interrupt/event generation.

Definition at line 244 of file time/pcf85063/SensorPCF85063.hpp.

References PCF85063_CTRL2_REG, and SensorCommWrapper::setRegBit().

Referenced by setup().

◆ getAlarm()

RTC_Alarm SensorPCF85063::getAlarm ( )
inline

Read current alarm configuration from the device.

Returns
Alarm configuration as RTC_Alarm.
Note
The chip supports enabling/disabling each alarm field via MSB bits. The conversion logic here follows original implementation.

Definition at line 283 of file time/pcf85063/SensorPCF85063.hpp.

References SensorRTC::BCD2DEC(), PCF85063_ALRM_MIN_REG, and SensorCommWrapper::readRegBuff().

◆ getChipName()

const char * SensorPCF85063::getChipName ( )
inlineoverridevirtual

Get RTC chip name.

Returns
Constant string "PCF85063".

Implements SensorRTC.

Definition at line 474 of file time/pcf85063/SensorPCF85063.hpp.

◆ getDateTime() [1/3]

RTC_DateTime SensorPCF85063::getDateTime ( )
inlineoverridevirtual

Read the RTC date and time.

Reads 7 bytes starting from the seconds register and converts BCD values to a RTC_DateTime instance.

Returns
Current date-time from the chip.

Implements SensorRTC.

Definition at line 165 of file time/pcf85063/SensorPCF85063.hpp.

References SensorRTC::BCD2DEC(), is24Hour, PCF85063_SEC_REG, and SensorCommWrapper::readRegBuff().

Referenced by loop(), and setAlarm().

◆ getDateTime() [2/3]

virtual RTC_DateTime SensorRTC::getDateTime ( )
virtual

Get the current date and time from the RTC.

This is a pure virtual function that derived classes must implement. It retrieves the current date and time from the RTC and returns them as an RTC_DateTime object.

Returns
An RTC_DateTime object representing the current date and time of the RTC.

Implements SensorRTC.

◆ getDateTime() [3/3]

void SensorRTC::getDateTime ( struct tm *  info)
inline

Retrieve the current date and time from the RTC (Real-Time Clock) and populate a struct tm object.

This function fetches the current date and time information from the RTC device. It then fills the provided struct tm object with the corresponding values. The struct tm object is a standard C structure used to represent date and time components, such as year, month, day, hour, minute, and second.

Parameters
infoA pointer to a struct tm object where the retrieved date and time information will be stored. This pointer must not be a null pointer
Note
The year value in the struct tm object is the number of years since 1900. The month value ranges from 0 (January) to 11 (December). The day value represents the day of the month, starting from 1. The hour value ranges from 0 to 23, the minute and second values range from 0 to 59.

Definition at line 335 of file SensorRTC.h.

◆ isAlarmActive()

bool SensorPCF85063::isAlarmActive ( )
inline

Check whether the alarm flag is active.

Returns
true if alarm flag is set, false otherwise.

Definition at line 270 of file time/pcf85063/SensorPCF85063.hpp.

References SensorCommWrapper::getRegBit(), and PCF85063_CTRL2_REG.

Referenced by testAlarmDay(), testAlarmHour(), testAlarmMinute(), and testAlarmSeconds().

◆ isClockIntegrityGuaranteed()

bool SensorPCF85063::isClockIntegrityGuaranteed ( )
inline

Check whether the clock integrity is guaranteed.

Typically this is determined by the "OS" (oscillator stop) flag in the seconds register. If the oscillator has stopped, the time registers may not be reliable.

Returns
true if the oscillator has not stopped (clock is reliable), false otherwise.

Definition at line 201 of file time/pcf85063/SensorPCF85063.hpp.

References SensorCommWrapper::getRegBit(), and PCF85063_SEC_REG.

Referenced by setup().

◆ isRunning()

bool SensorPCF85063::isRunning ( )
inline

Check whether the RTC oscillator is currently running.

Returns
true if running, false if stopped.

Definition at line 236 of file time/pcf85063/SensorPCF85063.hpp.

References SensorCommWrapper::getRegBit(), and PCF85063_CTRL1_REG.

◆ reset()

void SensorPCF85063::reset ( )
inlineoverridevirtual

Reset the RTC.

Reimplemented from SensorRTC.

Definition at line 482 of file time/pcf85063/SensorPCF85063.hpp.

References PCF85063_CTRL1_REG, and SensorCommWrapper::writeReg().

◆ resetAlarm()

void SensorPCF85063::resetAlarm ( )
inline

Clear/reset the alarm flag.

Definition at line 260 of file time/pcf85063/SensorPCF85063.hpp.

References SensorCommWrapper::clrRegBit(), and PCF85063_CTRL2_REG.

Referenced by testAlarmDay(), testAlarmHour(), testAlarmMinute(), and testAlarmSeconds().

◆ setAlarm() [1/2]

void SensorPCF85063::setAlarm ( RTC_Alarm  alarm)
inline

◆ setAlarm() [2/2]

void SensorPCF85063::setAlarm ( uint8_t  hour,
uint8_t  minute,
uint8_t  second,
uint8_t  day,
uint8_t  week 
)
inline

Set the alarm fields (hour/minute/second/day/weekday).

Any field can be disabled by passing PCF85063_NO_ALARM. Values out of range will be clamped where appropriate.

Parameters
hourHour [0..23] (24H mode) or chip-specific in 12H mode; or PCF85063_NO_ALARM.
minuteMinute [0..59]; or PCF85063_NO_ALARM.
secondSecond [0..59]; or PCF85063_NO_ALARM.
dayDay of month [1..daysInMonth]; or PCF85063_NO_ALARM.
weekWeekday [0..6]; or PCF85063_NO_ALARM.

Definition at line 319 of file time/pcf85063/SensorPCF85063.hpp.

References SensorRTC::DEC2BCD(), getDateTime(), SensorRTC::getDaysInMonth(), RTC_DateTime::getMonth(), RTC_DateTime::getYear(), is24Hour, PCF85063_ALARM_ENABLE, PCF85063_ALRM_SEC_REG, PCF85063_NO_ALARM, and SensorCommWrapper::writeRegBuff().

◆ setAlarmByDays()

void SensorPCF85063::setAlarmByDays ( uint8_t  day)
inline

Convenience: enable only day-of-month alarm.

Parameters
dayDay of month [1..31] (will be clamped to valid range for current month).

Definition at line 431 of file time/pcf85063/SensorPCF85063.hpp.

References PCF85063_NO_ALARM, and setAlarm().

Referenced by testAlarmHour().

◆ setAlarmByHours()

void SensorPCF85063::setAlarmByHours ( uint8_t  hour)
inline

Convenience: enable only hour alarm.

Parameters
hourHour [0..23].

Definition at line 389 of file time/pcf85063/SensorPCF85063.hpp.

References PCF85063_NO_ALARM, and setAlarm().

Referenced by testAlarmMinute().

◆ setAlarmByMinutes()

void SensorPCF85063::setAlarmByMinutes ( uint8_t  minute)
inline

Convenience: enable only minute alarm.

Parameters
minuteMinute [0..59].

Definition at line 417 of file time/pcf85063/SensorPCF85063.hpp.

References PCF85063_NO_ALARM, and setAlarm().

Referenced by testAlarmSeconds().

◆ setAlarmBySecond()

void SensorPCF85063::setAlarmBySecond ( uint8_t  second)
inline

Convenience: enable only second alarm.

Parameters
secondSecond [0..59].

Definition at line 403 of file time/pcf85063/SensorPCF85063.hpp.

References PCF85063_NO_ALARM, and setAlarm().

Referenced by setup().

◆ setAlarmByWeekDay()

void SensorPCF85063::setAlarmByWeekDay ( uint8_t  week)
inline

Convenience: enable only weekday alarm.

Parameters
weekWeekday [0..6].

Definition at line 445 of file time/pcf85063/SensorPCF85063.hpp.

References PCF85063_NO_ALARM, and setAlarm().

◆ setClockOutput()

void SensorPCF85063::setClockOutput ( ClockHz  hz)
inline

Configure the clock output frequency.

Parameters
hzOutput frequency selection.

Definition at line 459 of file time/pcf85063/SensorPCF85063.hpp.

References PCF85063_CTRL2_REG, SensorCommWrapper::readReg(), and SensorCommWrapper::writeReg().

Referenced by loop().

◆ setDateTime() [1/3]

void SensorPCF85063::setDateTime ( RTC_DateTime  datetime)
inlineoverridevirtual

Set the RTC date and time.

This method converts RTC_DateTime into the PCF85063 register format (BCD) and writes to the seconds register onward.

Parameters
datetimeDate-time object to set.

Implements SensorRTC.

Definition at line 143 of file time/pcf85063/SensorPCF85063.hpp.

References SensorRTC::DEC2BCD(), RTC_DateTime::getDay(), SensorRTC::getDayOfWeek(), RTC_DateTime::getHour(), RTC_DateTime::getMinute(), RTC_DateTime::getMonth(), RTC_DateTime::getSecond(), RTC_DateTime::getYear(), PCF85063_SEC_REG, and SensorCommWrapper::writeRegBuff().

Referenced by loop(), setup(), testAlarmDay(), testAlarmHour(), testAlarmMinute(), and testAlarmSeconds().

◆ setDateTime() [2/3]

virtual void SensorRTC::setDateTime ( RTC_DateTime  datetime)
virtual

Set the date and time of the RTC using an RTC_DateTime object.

This is a pure virtual function that derived classes must implement. It allows setting the RTC's date and time using a single RTC_DateTime object.

Parameters
datetimeAn RTC_DateTime object containing the date and time information to set on the RTC.

Implements SensorRTC.

◆ setDateTime() [3/3]

void SensorRTC::setDateTime ( uint16_t  year,
uint8_t  month,
uint8_t  day,
uint8_t  hour,
uint8_t  minute,
uint8_t  second 
)
inline

Set the date and time of the RTC using individual values.

Parameters
yearThe year to set on the RTC. It's usually a 16 - bit unsigned integer.
monthThe month to set on the RTC, ranging from 1 (January) to 12 (December).
dayThe day of the month to set on the RTC, ranging from 1 to 31, depending on the month and leap year.
hourThe hour to set on the RTC, ranging from 0 to 23.
minuteThe minute to set on the RTC, ranging from 0 to 59.
secondThe second to set on the RTC, ranging from 0 to 59.

Definition at line 351 of file SensorRTC.h.

◆ start()

void SensorPCF85063::start ( )
inline

Start the RTC oscillator (timekeeping runs).

Clears the STOP bit in CTRL1.

Definition at line 226 of file time/pcf85063/SensorPCF85063.hpp.

References SensorCommWrapper::clrRegBit(), and PCF85063_CTRL1_REG.

◆ stop()

void SensorPCF85063::stop ( )
inline

Stop the RTC oscillator (timekeeping stops).

Sets the STOP bit in CTRL1.

Definition at line 216 of file time/pcf85063/SensorPCF85063.hpp.

References PCF85063_CTRL1_REG, and SensorCommWrapper::setRegBit().

Member Data Documentation

◆ is24Hour

bool SensorPCF85063::is24Hour
protected

Hour mode flag (true = 24-hour mode).

This is detected (and forced to 24H) during initialization.

Definition at line 552 of file time/pcf85063/SensorPCF85063.hpp.

Referenced by getDateTime(), and setAlarm().

◆ PCF85063_ALARM_ENABLE

constexpr uint8_t SensorPCF85063::PCF85063_ALARM_ENABLE = 0x80
staticconstexprprotected

Definition at line 583 of file time/pcf85063/SensorPCF85063.hpp.

Referenced by setAlarm().

◆ PCF85063_ALRM_DAY_REG

constexpr uint8_t SensorPCF85063::PCF85063_ALRM_DAY_REG = 0x0E
staticconstexprprotected

Definition at line 569 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_ALRM_MIN_REG

constexpr uint8_t SensorPCF85063::PCF85063_ALRM_MIN_REG = 0x0C
staticconstexprprotected

Definition at line 567 of file time/pcf85063/SensorPCF85063.hpp.

Referenced by getAlarm().

◆ PCF85063_ALRM_SEC_REG

constexpr uint8_t SensorPCF85063::PCF85063_ALRM_SEC_REG = 0x0B
staticconstexprprotected

Definition at line 566 of file time/pcf85063/SensorPCF85063.hpp.

Referenced by setAlarm().

◆ PCF85063_ALRM_WEEK_REG

constexpr uint8_t SensorPCF85063::PCF85063_ALRM_WEEK_REG = 0x0F
staticconstexprprotected

Definition at line 570 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_CTRL1_CIE_EN_MASK

constexpr uint8_t SensorPCF85063::PCF85063_CTRL1_CIE_EN_MASK = (1 << 2u)
staticconstexprprotected

Definition at line 578 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_CTRL1_CLOCK_EN_MASK

constexpr uint8_t SensorPCF85063::PCF85063_CTRL1_CLOCK_EN_MASK = (1 << 5u)
staticconstexprprotected

Definition at line 576 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_CTRL1_HOUR_FORMAT_12H_MASK

constexpr uint8_t SensorPCF85063::PCF85063_CTRL1_HOUR_FORMAT_12H_MASK = (1 << 1u)
staticconstexprprotected

Definition at line 579 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_CTRL1_REG

constexpr uint8_t SensorPCF85063::PCF85063_CTRL1_REG = 0x00
staticconstexprprotected

Definition at line 555 of file time/pcf85063/SensorPCF85063.hpp.

Referenced by isRunning(), reset(), start(), and stop().

◆ PCF85063_CTRL1_SOFTRST_EN_MASK

constexpr uint8_t SensorPCF85063::PCF85063_CTRL1_SOFTRST_EN_MASK = (1 << 4u)
staticconstexprprotected

Definition at line 577 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_CTRL1_TEST_EN_MASK

constexpr uint8_t SensorPCF85063::PCF85063_CTRL1_TEST_EN_MASK = (1 << 7u)
staticconstexprprotected

Definition at line 575 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_CTRL2_REG

constexpr uint8_t SensorPCF85063::PCF85063_CTRL2_REG = 0x01
staticconstexprprotected

◆ PCF85063_DAY_REG

constexpr uint8_t SensorPCF85063::PCF85063_DAY_REG = 0x07
staticconstexprprotected

Definition at line 562 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_HR_REG

constexpr uint8_t SensorPCF85063::PCF85063_HR_REG = 0x06
staticconstexprprotected

Definition at line 561 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_MIN_REG

constexpr uint8_t SensorPCF85063::PCF85063_MIN_REG = 0x05
staticconstexprprotected

Definition at line 560 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_MONTH_REG

constexpr uint8_t SensorPCF85063::PCF85063_MONTH_REG = 0x09
staticconstexprprotected

Definition at line 564 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_NO_ALARM

constexpr uint8_t SensorPCF85063::PCF85063_NO_ALARM = 0xFF
staticconstexprprotected

◆ PCF85063_OFFSET_REG

constexpr uint8_t SensorPCF85063::PCF85063_OFFSET_REG = 0x02
staticconstexprprotected

Definition at line 557 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_RAM_REG

constexpr uint8_t SensorPCF85063::PCF85063_RAM_REG = 0x03
staticconstexprprotected

Definition at line 558 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_SEC_REG

constexpr uint8_t SensorPCF85063::PCF85063_SEC_REG = 0x04
staticconstexprprotected

◆ PCF85063_TIMER_MD_REG

constexpr uint8_t SensorPCF85063::PCF85063_TIMER_MD_REG = 0x11
staticconstexprprotected

Definition at line 572 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_TIMER_VAL_REG

constexpr uint8_t SensorPCF85063::PCF85063_TIMER_VAL_REG = 0x10
staticconstexprprotected

Definition at line 571 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_WEEKDAY_REG

constexpr uint8_t SensorPCF85063::PCF85063_WEEKDAY_REG = 0x08
staticconstexprprotected

Definition at line 563 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF85063_YEAR_REG

constexpr uint8_t SensorPCF85063::PCF85063_YEAR_REG = 0x0A
staticconstexprprotected

Definition at line 565 of file time/pcf85063/SensorPCF85063.hpp.

◆ PCF8563_ALRM_HR_REG

constexpr uint8_t SensorPCF85063::PCF8563_ALRM_HR_REG = 0x0D
staticconstexprprotected

Definition at line 568 of file time/pcf85063/SensorPCF85063.hpp.


The documentation for this class was generated from the following file: