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. More... | |
RTC8_RETVAL | rtc8_init (rtc8_t *ctx, rtc8_cfg_t *cfg) |
Initialization function. More... | |
void | rtc8_default_cfg (rtc8_t *ctx) |
Click Default Configuration function. More... | |
void | rtc8_generic_write (rtc8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. More... | |
void | rtc8_generic_read (rtc8_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. More... | |
uint8_t | rtc8_write_data_bcd_format (rtc8_t *ctx, uint8_t reg, uint8_t _data) |
Write data ( Convert and send data in BCD format ) More... | |
uint8_t | rtc8_read_data_bcd_format (rtc8_t *ctx, uint8_t reg) |
Read one byte data from register in DEC format. More... | |
uint32_t | rtc8_get_uinx_time (rtc8_t *ctx) |
Get current UNIX time. More... | |
void | rtc8_set_unix_time (rtc8_t *ctx, int32_t unix_time) |
Set UNIX time. More... | |
uint8_t | rtc8_set_time (rtc8_t *ctx, rtc8_time_t *time_s) |
Set new time - 24 hour format. More... | |
uint8_t | rtc8_set_date (rtc8_t *ctx, rtc8_date_t *date_s) |
Set new date. More... | |
uint8_t | rtc8_set_alarm (rtc8_t *ctx, rtc8_alarm_t *alarm_s) |
Set Alarm. More... | |
uint8_t | rtc8_get_interrupt_state (rtc8_t *ctx) |
Get interrupt state. More... | |
void | rtc8_set_external_event_input (rtc8_t *ctx, uint8_t state) |
Set EVI(External Event Input) pin. More... | |
void | rtx8_get_time_and_date (rtc8_t *ctx, rtc8_time_t *time_s, rtc8_date_t *date_s) |
Get RTC data ( Time and Data ) More... | |
void | rtc8_reset_alarm_flag (rtc8_t *ctx) |
Reset alarm. More... | |
uint8_t | rtc8_get_status (rtc8_t *ctx) |
Get status. More... | |
uint8_t | rtc8_get_alarm_flag (rtc8_t *ctx) |
Get Alarm flag. More... | |
This file contains API for RTC 8 Click driver.