Zephyr API Documentation 4.3.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#ifndef ZEPHYR_INCLUDE_RTC_RTC_MAX31331_H
7#define ZEPHYR_INCLUDE_RTC_RTC_MAX31331_H
8
9#include <zephyr/device.h>
10#include <zephyr/drivers/rtc.h>
11#include <zephyr/drivers/gpio.h>
12#include <stdint.h>
13
20typedef void (*rtc_max31331_timestamp_callback)(const struct device *dev, void *user_data);
21
33int rtc_max31331_get_timestamps(const struct device *dev, struct rtc_time *timeptr, uint8_t index,
34 uint8_t *flags);
35
47 rtc_max31331_timestamp_callback cb, void *user_data);
48
49#endif /* ZEPHYR_DRIVERS_RTC_RTC_MAX31331_H */
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:20
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:513
Structure for storing date and time values with sub-second precision.
Definition rtc.h:62