![]() |
semf
|
Interface for the real time clock. More...
#include <rtc.h>
Public Member Functions | |
virtual | ~Rtc ()=default |
virtual uint16_t | millisecond ()=0 |
Get the milliseconds from the current time. More... | |
virtual void | setMillisecond (uint16_t millisecond)=0 |
For set a new time. More... | |
virtual uint8_t | second () const =0 |
Get the seconds from the current time. More... | |
virtual void | setSecond (uint8_t second)=0 |
For set a new time. More... | |
virtual uint8_t | minute () const =0 |
Get the minutes from the current time. More... | |
virtual void | setMinute (uint8_t minute)=0 |
For set a new time. More... | |
virtual uint8_t | hour () const =0 |
Get the hours from the current time. More... | |
virtual void | setHour (uint8_t hour)=0 |
For set a new time. More... | |
virtual uint8_t | day () const =0 |
virtual void | setDay (uint8_t day)=0 |
For set a new date. More... | |
virtual uint8_t | month () const =0 |
Get the current month. More... | |
virtual void | setMonth (uint8_t month)=0 |
For set a new date. More... | |
virtual uint16_t | year () const =0 |
Get the current year. More... | |
virtual void | setYear (uint16_t year)=0 |
For set a new date. More... | |
Public Attributes | |
Signal< Error > | error |
|
virtualdefault |
|
pure virtual |
Get the current day.
Implemented in semf::Stm32Rtc.
|
pure virtual |
Get the hours from the current time.
Implemented in semf::Stm32Rtc.
|
pure virtual |
Get the milliseconds from the current time.
Implemented in semf::Stm32Rtc.
|
pure virtual |
Get the minutes from the current time.
Implemented in semf::Stm32Rtc.
|
pure virtual |
Get the current month.
Implemented in semf::Stm32Rtc.
|
pure virtual |
Get the seconds from the current time.
Implemented in semf::Stm32Rtc.
|
pure virtual |
For set a new date.
day | The new day. |
Implemented in semf::Stm32Rtc.
|
pure virtual |
For set a new time.
hour | The hours for the new time. |
Implemented in semf::Stm32Rtc.
|
pure virtual |
For set a new time.
millisecond | The milliseconds for the new time. |
Implemented in semf::Stm32Rtc.
|
pure virtual |
For set a new time.
minute | The minutes for the new time. |
Implemented in semf::Stm32Rtc.
|
pure virtual |
For set a new date.
month | The new month. |
Implemented in semf::Stm32Rtc.
|
pure virtual |
For set a new time.
second | The second for the new time. |
Implemented in semf::Stm32Rtc.
|
pure virtual |
For set a new date.
year | The new year. |
Implemented in semf::Stm32Rtc.
|
pure virtual |
Get the current year.
Implemented in semf::Stm32Rtc.