Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
rtc_max31331.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Analog Devices Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_RTC_RTC_MAX31331_H
14#define ZEPHYR_INCLUDE_RTC_RTC_MAX31331_H
15
16#include <zephyr/device.h>
17#include <zephyr/drivers/rtc.h>
18#include <zephyr/drivers/gpio.h>
19#include <stdint.h>
20
27typedef void (*rtc_max31331_timestamp_callback)(const struct device *dev, void *user_data);
28
40int rtc_max31331_get_timestamps(const struct device *dev, struct rtc_time *timeptr, uint8_t index,
41 uint8_t *flags);
42
54 rtc_max31331_timestamp_callback cb, void *user_data);
55
56#endif /* ZEPHYR_DRIVERS_RTC_RTC_MAX31331_H */
APIs and macros for the Zephyr device model.
Main header file for GPIO driver API.
flags
Definition parser.h:97
Main header file for real-time clock (RTC) driver API.
void(* rtc_max31331_timestamp_callback)(const struct device *dev, void *user_data)
MAX31331 timestamp callback type.
Definition rtc_max31331.h:27
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.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:543
Structure for storing date and time values with sub-second precision.
Definition rtc.h:67