rtc8 2.0.0.0
|
This file contains API for RTC 8 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_i2c_master.h"
Go to the source code of this file.
Data Structures | |
struct | rtc8_t |
Click ctx object definition. More... | |
struct | rtc8_cfg_t |
Click configuration structure definition. More... | |
struct | rtc8_time_t |
Time structure definition. More... | |
struct | rtc8_date_t |
Date structure definition. More... | |
struct | rtc8_alarm_t |
Alarm structure definition. More... | |
Functions | |
void | rtc8_cfg_setup (rtc8_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | rtc8_init (rtc8_t *ctx, rtc8_cfg_t *cfg) |
Initialization function. | |
err_t | rtc8_default_cfg (rtc8_t *ctx) |
Click Default Configuration function. | |
err_t | rtc8_generic_write (rtc8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
err_t | rtc8_generic_read (rtc8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
err_t | rtc8_write_data (rtc8_t *ctx, uint8_t reg, uint8_t data_in) |
Write data ( Convert and send data in BCD format ) | |
err_t | rtc8_read_data (rtc8_t *ctx, uint8_t reg, uint8_t *data_out) |
Read one byte data from register in DEC format. | |
err_t | rtc8_get_uinx_time (rtc8_t *ctx, uint32_t *unix_time) |
Get current UNIX time. | |
err_t | rtc8_set_unix_time (rtc8_t *ctx, uint32_t unix_time) |
Set UNIX time. | |
err_t | rtc8_set_time (rtc8_t *ctx, rtc8_time_t *time_s) |
Set new time - 24 hour format. | |
err_t | rtc8_set_date (rtc8_t *ctx, rtc8_date_t *date_s) |
Set new date. | |
err_t | rtc8_set_alarm (rtc8_t *ctx, rtc8_alarm_t *alarm_s) |
Set Alarm. | |
uint8_t | rtc8_get_int_pin (rtc8_t *ctx) |
Get interrupt state. | |
void | rtc8_set_evi_pin (rtc8_t *ctx, uint8_t state) |
Set EVI(External Event Input) pin. | |
err_t | rtx8_get_time_and_date (rtc8_t *ctx, rtc8_time_t *time_s, rtc8_date_t *date_s) |
Get RTC data ( Time and Data ) | |
err_t | rtc8_reset_alarm_flag (rtc8_t *ctx) |
Reset alarm. | |
err_t | rtc8_get_status (rtc8_t *ctx, uint8_t *status) |
Get status. | |
err_t | rtc8_get_alarm_flag (rtc8_t *ctx, uint8_t *alarm_flag) |
Get Alarm flag. | |
This file contains API for RTC 8 Click driver.