rtc5 2.0.0.0
|
This file contains API for RTC5 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | rtc5_t |
Click ctx object definition. More... | |
struct | rtc5_cfg_t |
Click configuration structure definition. More... | |
struct | rtc5_timedate_t |
Time and date structure definition. More... | |
Functions | |
void | rtc5_cfg_setup (rtc5_cfg_t *cfg) |
Config Object Initialization function. | |
RTC5_RETVAL | rtc5_init (rtc5_t *ctx, rtc5_cfg_t *cfg) |
Initialization function. | |
void | rtc5_default_cfg (rtc5_t *ctx) |
Click Default Configuration function. | |
void | rtc5_generic_transfer (rtc5_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
void | rtc5_generic_write (rtc5_t *ctx, uint8_t reg, uint8_t tx_data) |
Click Default Configuration function. | |
uint8_t | rtc5_generic_read (rtc5_t *ctx, uint8_t reg) |
Click Default Configuration function. | |
void | rtc5_set_counting (rtc5_t *ctx, uint8_t en_osc) |
Enable counting function. | |
void | rtc5_clear (rtc5_t *ctx) |
Clear RTCC and SRAM memory function. | |
void | rtc5_set_time_hun_of_sec (rtc5_t *ctx, uint8_t hun_sec) |
Set hundred of seconds function. | |
uint8_t | rtc5_get_time_hun_of_sec (rtc5_t *ctx) |
Get hundred of seconds function. | |
void | rtc5_set_time_sec (rtc5_t *ctx, uint8_t seconds) |
Set seconds function. | |
uint8_t | rtc5_get_time_sec (rtc5_t *ctx) |
Get seconds function. | |
void | rtc5_set_time_min (rtc5_t *ctx, uint8_t minutes) |
Set minutes function. | |
uint8_t | rtc5_get_time_min (rtc5_t *ctx) |
Get minutes function. | |
void | rtc5_set_time_hours (rtc5_t *ctx, uint8_t hours) |
Set hours function. | |
uint8_t | rtc5_get_time_hours (rtc5_t *ctx) |
Get hours function. | |
void | rtc5_set_day_of_the_week (rtc5_t *ctx, uint8_t w_day) |
Set day of the week function. | |
uint8_t | rtc5_get_day_of_the_week (rtc5_t *ctx) |
Get day of the week function. | |
void | rtc5_set_date_day (rtc5_t *ctx, uint8_t date_day) |
Set day function. | |
uint8_t | rtc5_get_date_day (rtc5_t *ctx) |
Get day function. | |
void | rtc5_set_date_month (rtc5_t *ctx, uint8_t date_month) |
Set month function. | |
uint8_t | rtc5_get_date_month (rtc5_t *ctx) |
Get month function. | |
uint8_t | rtc5_get_leap_year (rtc5_t *ctx) |
Get leap year function. | |
void | rtc5_set_date_year (rtc5_t *ctx, uint16_t date_year) |
Set year function. | |
uint8_t | rtc5_get_date_year (rtc5_t *ctx) |
Get year function. | |
void | rtc5_set_time (rtc5_t *ctx, uint8_t time_hours, uint8_t time_min, uint8_t time_sec) |
Set time hours, minutes and seconds function. | |
void | rtc5_set_date (rtc5_t *ctx, uint8_t date_day, uint8_t date_month, uint16_t date_year) |
Set date hours, minutes and seconds function. | |
void | rtc5_get_time_and_date (rtc5_t *ctx, rtc5_timedate_t *timedate_data) |
Get time and date function. | |
This file contains API for RTC5 Click driver.