![]() |
LibDriver RX8025T
|
driver rx8025t header file More...
#include <stdio.h>#include <stdint.h>#include <string.h>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 | |
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 | |
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.
| Date | Version | Author | Description |
|---|---|---|---|
| 2026/04/21 | 1.0 | Shifeng Li | first upload |
Definition in file driver_rx8025t.h.