Go to the source code of this file.
◆ rtc_max31331_timestamp_callback
| typedef void(* rtc_max31331_timestamp_callback) (const struct device *dev, void *user_data) |
MAX31331 timestamp callback type.
- Parameters
-
| dev | Pointer to the RTC device. |
| user_data | Pointer to user context. |
◆ rtc_max31331_get_timestamps()
Read a stored timestamp from the MAX31331.
- Parameters
-
| dev | Pointer to the RTC device. |
| timeptr | Pointer to struct rtc_time to store result. |
| index | Timestamp index (0–3). |
| flags | Pointer to variable receiving timestamp flags. |
- Return values
-
| 0 | If successful. |
| negative | errno code otherwise. |
◆ rtc_max31331_set_timestamp_callback()
Register a timestamp event callback.
- Parameters
-
| dev | Pointer to the RTC device. |
| cb | Callback function pointer. |
| user_data | Application-provided context. |
- Return values
-
| 0 | If successful. |
| negative | errno code otherwise. |