|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
MAX31331 RTC driver specific API. More...
#include <zephyr/device.h>#include <zephyr/drivers/rtc.h>#include <zephyr/drivers/gpio.h>#include <stdint.h>Go to the source code of this file.
Typedefs | |
| typedef void(* | rtc_max31331_timestamp_callback) (const struct device *dev, void *user_data) |
| MAX31331 timestamp callback type. | |
Functions | |
| int | rtc_max31331_get_timestamps (const struct device *dev, struct rtc_time *timeptr, uint8_t index, uint8_t *flags) |
| Read a stored timestamp from the MAX31331. | |
| int | rtc_max31331_set_timestamp_callback (const struct device *dev, rtc_max31331_timestamp_callback cb, void *user_data) |
| Register a timestamp event callback. | |
MAX31331 RTC driver specific API.
| typedef void(* rtc_max31331_timestamp_callback) (const struct device *dev, void *user_data) |
MAX31331 timestamp callback type.
| dev | Pointer to the RTC device. |
| user_data | Pointer to user context. |
| int rtc_max31331_set_timestamp_callback | ( | const struct device * | dev, |
| rtc_max31331_timestamp_callback | cb, | ||
| void * | user_data ) |
Register a timestamp event callback.
| dev | Pointer to the RTC device. |
| cb | Callback function pointer. |
| user_data | Application-provided context. |
| 0 | If successful. |
| negative | errno code otherwise. |