rtc9 2.0.0.0
|
This file contains API for RTC 9 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 | rtc9_set_data_t |
struct | rtc9_get_time_t |
struct | rtc9_get_date_t |
struct | rtc9_t |
Click ctx object definition. More... | |
struct | rtc9_cfg_t |
Click configuration structure definition. More... | |
Functions | |
void | rtc9_cfg_setup (rtc9_cfg_t *cfg) |
Config Object Initialization function. | |
RTC9_RETVAL | rtc9_init (rtc9_t *ctx, rtc9_cfg_t *cfg) |
Initialization function. | |
void | rtc9_generic_write (rtc9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic write function. | |
void | rtc9_generic_read (rtc9_t *ctx, uint8_t reg, uint8_t *data_buf, uint8_t len) |
Generic read function. | |
void | rtc9_wakeup (rtc9_t *ctx) |
Wake-up process. | |
void | rtc9_software_reset (rtc9_t *ctx) |
Software reset. | |
void | rtc9_hardware_reset (rtc9_t *ctx) |
Hardware reset. | |
void | rtc9_set_time (rtc9_t *ctx, uint8_t hour, uint8_t min, uint8_t sec) |
Set new time - 24 hour format. | |
void | rtc9_set_date (rtc9_t *ctx, rtc9_set_data_t *set_data) |
Set new date. | |
void | rtc9_get_time (rtc9_t *ctx, rtc9_get_time_t *get_time) |
Get new time - 24 hour format. | |
void | rtc9_get_date (rtc9_t *ctx, rtc9_get_date_t *get_data) |
Get new date. | |
char * | rtc9_current_month (uint8_t month) |
Month in the String format. | |
char * | rtc9_current_day_of_week (uint8_t day_of_week) |
Day of Week in the String format. | |
void | rtc9_set_alarm_time (rtc9_t *ctx, uint8_t hour, uint8_t min, uint8_t sec) |
Set new ALARM 1 time - 24 hour format. | |
void | rtc9_set_alarm_date (rtc9_t *ctx, uint8_t day, uint8_t month, uint8_t year) |
Set new ALARM 1 date. | |
void | rtc9_read_flag_status (rtc9_t *ctx, uint8_t *read_data) |
Reads FLAGS regiter. | |
This file contains API for RTC 9 Click driver.