LibDriver RX8025T
Loading...
Searching...
No Matches
driver_rx8025t.h File Reference

driver rx8025t header file More...

#include <stdio.h>
#include <stdint.h>
#include <string.h>
Include dependency graph for driver_rx8025t.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  rx8025t_time_s
 rx8025t time structure definition More...
struct  rx8025t_handle_s
 rx8025t handle structure definition More...
struct  rx8025t_info_s
 rx8025t information structure definition More...

Macros

#define DRIVER_RX8025T_LINK_INIT(HANDLE, STRUCTURE)
 initialize rx8025t_handle_t structure
#define DRIVER_RX8025T_LINK_IIC_INIT(HANDLE, FUC)
 link iic_init function
#define DRIVER_RX8025T_LINK_IIC_DEINIT(HANDLE, FUC)
 link iic_deinit function
#define DRIVER_RX8025T_LINK_IIC_READ(HANDLE, FUC)
 link iic_read function
#define DRIVER_RX8025T_LINK_IIC_WRITE(HANDLE, FUC)
 link iic_write function
#define DRIVER_RX8025T_LINK_DELAY_MS(HANDLE, FUC)
 link delay_ms function
#define DRIVER_RX8025T_LINK_DEBUG_PRINT(HANDLE, FUC)
 link debug_print function
#define DRIVER_RX8025T_LINK_RECEIVE_CALLBACK(HANDLE, FUC)
 link receive_callback function

Typedefs

typedef struct rx8025t_time_s rx8025t_time_t
 rx8025t time structure definition
typedef struct rx8025t_handle_s rx8025t_handle_t
 rx8025t handle structure definition
typedef struct rx8025t_info_s rx8025t_info_t
 rx8025t information structure definition

Enumerations

enum  rx8025t_bool_t { RX8025T_BOOL_FALSE = 0x00 , RX8025T_BOOL_TRUE = 0x01 }
 rx8025t bool enumeration definition More...
enum  rx8025t_temperature_compensation_interval_t { RX8025T_TEMPERATURE_COMPENSATION_INTERVAL_0P5_SECOND = 0x00 , RX8025T_TEMPERATURE_COMPENSATION_INTERVAL_2P0_SECOND = 0x01 , RX8025T_TEMPERATURE_COMPENSATION_INTERVAL_10_SECOND = 0x02 , RX8025T_TEMPERATURE_COMPENSATION_INTERVAL_30_SECOND = 0x03 }
 rx8025t temperature compensation interval enumeration definition More...
enum  rx8025t_flag_t {
  RX8025T_FLAG_UPDATE = (1 << 5) , RX8025T_FLAG_TIMER = (1 << 4) , RX8025T_FLAG_ALARM = (1 << 3) , RX8025T_FLAG_VOLTAGE_LOW = (1 << 1) ,
  RX8025T_FLAG_VOLTAGE_DETECTION = (1 << 0)
}
 rx8025t flag enumeration definition More...
enum  rx8025t_alarm_t { RX8025T_ALARM_WEEK = 0 , RX8025T_ALARM_DAY = 1 }
 rx8025t alarm enumeration definition More...
enum  rx8025t_update_select_t { RX8025T_UPDATE_SELECT_SECOND = 0 , RX8025T_UPDATE_SELECT_MINUTE = 1 }
 rx8025t update select enumeration definition More...
enum  rx8025t_timer_clock_t { RX8025T_TIMER_CLOCK_4096_HZ = 0x00 , RX8025T_TIMER_CLOCK_64_HZ = 0x01 , RX8025T_TIMER_CLOCK_1_HZ = 0x02 , RX8025T_TIMER_CLOCK_MINUTE = 0x03 }
 rx8025t timer clock enumeration definition More...
enum  rx8025t_square_wave_frequency_t { RX8025T_SQUARE_WAVE_FREQUENCY_1_HZ = 0x02 , RX8025T_SQUARE_WAVE_FREQUENCY_1024_HZ = 0x01 , RX8025T_SQUARE_WAVE_FREQUENCY_32768_HZ = 0x00 }
 rx8025t square wave frequency enumeration definition More...
enum  rx8025t_status_t {
  RX8025T_STATUS_UPDATE = 0x00 , RX8025T_STATUS_TIMER = 0x10 , RX8025T_STATUS_ALARM = 0x20 , RX8025T_STATUS_VOLTAGE_LOW = 0x30 ,
  RX8025T_STATUS_VOLTAGE_DETECTION = 0x40
}
 rx8025t status enumeration definition More...

Functions

uint8_t rx8025t_info (rx8025t_info_t *info)
 get chip's information
uint8_t rx8025t_irq_handler (rx8025t_handle_t *handle)
 irq handler
uint8_t rx8025t_init (rx8025t_handle_t *handle)
 initialize the chip
uint8_t rx8025t_deinit (rx8025t_handle_t *handle)
 close the chip
uint8_t rx8025t_start (rx8025t_handle_t *handle)
 start
uint8_t rx8025t_stop (rx8025t_handle_t *handle)
 stop
uint8_t rx8025t_set_time (rx8025t_handle_t *handle, rx8025t_time_t *t)
 set the current time
uint8_t rx8025t_get_time (rx8025t_handle_t *handle, rx8025t_time_t *t)
 get the current time
uint8_t rx8025t_set_temperature_compensation_interval (rx8025t_handle_t *handle, rx8025t_temperature_compensation_interval_t interval)
 set the temperature compensation interval
uint8_t rx8025t_get_temperature_compensation_interval (rx8025t_handle_t *handle, rx8025t_temperature_compensation_interval_t *interval)
 get the temperature compensation interval
uint8_t rx8025t_set_update_interrupt (rx8025t_handle_t *handle, rx8025t_bool_t enable)
 enable or disable update interrupt
uint8_t rx8025t_get_update_interrupt (rx8025t_handle_t *handle, rx8025t_bool_t *enable)
 get update interrupt status
uint8_t rx8025t_set_timer_interrupt (rx8025t_handle_t *handle, rx8025t_bool_t enable)
 enable or disable timer interrupt
uint8_t rx8025t_get_timer_interrupt (rx8025t_handle_t *handle, rx8025t_bool_t *enable)
 get timer interrupt status
uint8_t rx8025t_set_alarm_interrupt (rx8025t_handle_t *handle, rx8025t_bool_t enable)
 enable or disable alarm interrupt
uint8_t rx8025t_get_alarm_interrupt (rx8025t_handle_t *handle, rx8025t_bool_t *enable)
 get alarm interrupt status
uint8_t rx8025t_get_flag (rx8025t_handle_t *handle, uint8_t *flag)
 get flag
uint8_t rx8025t_clear_flag (rx8025t_handle_t *handle)
 clear flag
uint8_t rx8025t_set_test (rx8025t_handle_t *handle, rx8025t_bool_t enable)
 enable or disable test
uint8_t rx8025t_get_test (rx8025t_handle_t *handle, rx8025t_bool_t *enable)
 get test status
uint8_t rx8025t_set_alarm_day_week (rx8025t_handle_t *handle, rx8025t_alarm_t alarm)
 set alarm day week
uint8_t rx8025t_get_alarm_day_week (rx8025t_handle_t *handle, rx8025t_alarm_t *alarm)
 get alarm day week
uint8_t rx8025t_set_update_select (rx8025t_handle_t *handle, rx8025t_update_select_t select)
 set update select
uint8_t rx8025t_get_update_select (rx8025t_handle_t *handle, rx8025t_update_select_t *select)
 get update select
uint8_t rx8025t_set_timer (rx8025t_handle_t *handle, rx8025t_bool_t enable)
 enable or disable timer
uint8_t rx8025t_get_timer (rx8025t_handle_t *handle, rx8025t_bool_t *enable)
 get timer status
uint8_t rx8025t_set_square_wave_frequency (rx8025t_handle_t *handle, rx8025t_square_wave_frequency_t freq)
 set square wave frequency
uint8_t rx8025t_get_square_wave_frequency (rx8025t_handle_t *handle, rx8025t_square_wave_frequency_t *freq)
 get square wave frequency
uint8_t rx8025t_set_timer_clock (rx8025t_handle_t *handle, rx8025t_timer_clock_t clk)
 set timer clock
uint8_t rx8025t_get_timer_clock (rx8025t_handle_t *handle, rx8025t_timer_clock_t *clk)
 get timer clock
uint8_t rx8025t_set_timer_counter (rx8025t_handle_t *handle, uint16_t counter)
 set timer counter
uint8_t rx8025t_get_timer_counter (rx8025t_handle_t *handle, uint16_t *counter)
 get timer counter
uint8_t rx8025t_set_ram (rx8025t_handle_t *handle, uint8_t data)
 set ram
uint8_t rx8025t_get_ram (rx8025t_handle_t *handle, uint8_t *data)
 get ram
uint8_t rx8025t_set_minute_alarm (rx8025t_handle_t *handle, uint8_t minute)
 set minute alarm
uint8_t rx8025t_get_minute_alarm (rx8025t_handle_t *handle, uint8_t *minute)
 get minute alarm
uint8_t rx8025t_set_hour_alarm (rx8025t_handle_t *handle, uint8_t hour)
 set hour alarm
uint8_t rx8025t_get_hour_alarm (rx8025t_handle_t *handle, uint8_t *hour)
 get hour alarm
uint8_t rx8025t_set_date_alarm (rx8025t_handle_t *handle, uint8_t date)
 set date alarm
uint8_t rx8025t_get_date_alarm (rx8025t_handle_t *handle, uint8_t *date)
 get date alarm
uint8_t rx8025t_set_week_alarm (rx8025t_handle_t *handle, uint8_t week)
 set week alarm
uint8_t rx8025t_get_week_alarm (rx8025t_handle_t *handle, uint8_t *week)
 get week alarm
uint8_t rx8025t_set_minute_alarm_mask (rx8025t_handle_t *handle, rx8025t_bool_t enable)
 enable or disable minute alarm mask
uint8_t rx8025t_get_minute_alarm_mask (rx8025t_handle_t *handle, rx8025t_bool_t *enable)
 get minute alarm mask status
uint8_t rx8025t_set_hour_alarm_mask (rx8025t_handle_t *handle, rx8025t_bool_t enable)
 enable or disable hour alarm mask
uint8_t rx8025t_get_hour_alarm_mask (rx8025t_handle_t *handle, rx8025t_bool_t *enable)
 get hour alarm mask status
uint8_t rx8025t_set_week_day_alarm_mask (rx8025t_handle_t *handle, rx8025t_bool_t enable)
 enable or disable week day alarm mask
uint8_t rx8025t_get_week_day_alarm_mask (rx8025t_handle_t *handle, rx8025t_bool_t *enable)
 get week day alarm mask status
uint8_t rx8025t_set_reg (rx8025t_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 set the chip register
uint8_t rx8025t_get_reg (rx8025t_handle_t *handle, uint8_t reg, uint8_t *buf, uint16_t len)
 get the chip register

Detailed Description

driver rx8025t header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2026-04-21

history

Date Version Author Description
2026/04/21 1.0 Shifeng Li first upload

Definition in file driver_rx8025t.h.