Interface for RTC drivers.
More...
Interface for RTC drivers.
A driver embeds a struct pbl_rtc in its instance, sets it up with PBL_RTC_INIT(), and implements the struct pbl_rtc_ops the class calls.
◆ pbl_rtc
◆ PBL_RTC_INIT
| #define PBL_RTC_INIT |
( |
|
sym, |
|
|
|
_name, |
|
|
|
_init, |
|
|
|
_parent, |
|
|
|
_ops |
|
) |
| |
Value: { \
.ops = (_ops), \
}
#define PBL_DEVICE_INIT_CLASS(sym, _name, _init, _parent, _cls)
Initializer for the struct pbl_device of device instance sym, in class _cls.
Definition device.h:153
Initialize a struct pbl_rtc.
- Parameters
-
| sym | Symbol of the instance, with its state defined by PBL_DEVICE_STATE_DEFINE(). |
| _name | Device name. |
| _init | Init function, or NULL. |
| _parent | Parent device, or NULL. |
| _ops | Driver operations. |