Trident IoT SDK
 
Loading...
Searching...
No Matches
tr_hal_rtc.h File Reference

This is the common include file for the Trident HAL Power Mgmt. More...

#include "tr_hal_platform.h"
+ Include dependency graph for tr_hal_rtc.h:

Go to the source code of this file.

Functions

tr_hal_status_t tr_hal_rtc_init (tr_hal_rtc_settings_t *rtc_settings)
 
tr_hal_status_t tr_hal_rtc_is_running (bool *is_enabled)
 
tr_hal_status_t tr_hal_rtc_get_time (tr_hal_rtc_time *return_time)
 
tr_hal_status_t tr_hal_rtc_get_date (tr_hal_rtc_date *return_date)
 
tr_hal_status_t tr_hal_rtc_get_date_time (tr_hal_rtc_date_time *return_date_time)
 
bool tr_hal_rtc_diff_greater_than_ms (tr_hal_rtc_time *time1, tr_hal_rtc_time *time2, uint32_t check_against_ms)
 
tr_hal_status_t tr_hal_rtc_set_time (tr_hal_rtc_time new_time)
 
tr_hal_status_t tr_hal_rtc_set_date (tr_hal_rtc_date new_date)
 
tr_hal_status_t tr_hal_rtc_set_date_time (tr_hal_rtc_date_time new_date_time)
 
tr_hal_status_t tr_hal_rtc_set_event_handler (tr_hal_rtc_event_callback_t new_event_handler)
 
tr_hal_status_t tr_hal_rtc_set_interrupt_behavior (bool enable_chip_interrupts, tr_hal_int_pri_t interrupt_priority, bool wake_on_interrupt)
 
tr_hal_status_t tr_hal_rtc_get_interrupt_behavior (bool *enable_chip_interrupts, tr_hal_int_pri_t *interrupt_priority, bool *wake_on_interrupt)
 
tr_hal_status_t tr_hal_rtc_get_clock_divisor (uint32_t *clock_divisor)
 
tr_hal_status_t tr_hal_rtc_set_clock_divisor (uint32_t clock_divisor)
 
tr_hal_status_t tr_hal_rtc_set_time_trigger_event (tr_hal_rtc_time_unit_t time_unit, tr_hal_rtc_event_trigger_t event_trigger, uint16_t trigger_value)
 
tr_hal_status_t tr_hal_rtc_set_combo_trigger_event (tr_hal_rtc_date_time new_date_time)
 

Detailed Description

This is the common include file for the Trident HAL Power Mgmt.

This is the common include file for the Trident HAL RTC Driver.


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com