rtc9 2.0.0.0
|
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. | |
void rtc9_cfg_setup | ( | rtc9_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
char * rtc9_current_day_of_week | ( | uint8_t | day_of_week | ) |
Day of Week in the String format.
day_of_week | Current dey of week |
char * rtc9_current_month | ( | uint8_t | month | ) |
Month in the String format.
month | Current month |
void rtc9_generic_read | ( | rtc9_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic read function.
ctx | Click object. |
reg | Register address. |
data_buf | Output data buf |
len | Number of the bytes to be read |
@description This function reads data from the desired register.
void rtc9_generic_write | ( | rtc9_t * | ctx, |
uint8_t | reg, | ||
uint8_t * | data_buf, | ||
uint8_t | len ) |
Generic write function.
ctx | Click object. |
reg | Register address. |
data_buf | Data buf to be written. |
len | Number of the bytes in data buf. |
@description This function writes data to the desired register.
void rtc9_get_date | ( | rtc9_t * | ctx, |
rtc9_get_date_t * | get_data ) |
Get new date.
rtc9 | Click object. |
get_data | Struct object. |
void rtc9_get_time | ( | rtc9_t * | ctx, |
rtc9_get_time_t * | get_time ) |
Get new time - 24 hour format.
rtc9 | Click object. |
get_time | Struct object. |
void rtc9_hardware_reset | ( | rtc9_t * | ctx | ) |
Hardware reset.
rtc9 | Click object. |
RTC9_RETVAL rtc9_init | ( | rtc9_t * | ctx, |
rtc9_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void rtc9_read_flag_status | ( | rtc9_t * | ctx, |
uint8_t * | read_data ) |
Reads FLAGS regiter.
rtc9 | Click object. |
read_data | Data to be read. |
void rtc9_set_alarm_date | ( | rtc9_t * | ctx, |
uint8_t | day, | ||
uint8_t | month, | ||
uint8_t | year ) |
Set new ALARM 1 date.
rtc9 | Click object. |
day | New Day (1 - 31/30/28/29) |
month | New month (1 - 12) |
year | New year (0 - 99) 2000 year ... 2099 year |
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.
rtc9 | Click object. |
hour | New Hours (0 - 23) |
min | New minutes (0 - 59) |
sec | New secconds (0 - 59) |
void rtc9_set_date | ( | rtc9_t * | ctx, |
rtc9_set_data_t * | set_data ) |
Set new date.
rtc9 | Click object. |
set_data | Struct object. |
void rtc9_set_time | ( | rtc9_t * | ctx, |
uint8_t | hour, | ||
uint8_t | min, | ||
uint8_t | sec ) |
Set new time - 24 hour format.
rtc9 | Click object. |
hour | New Hours (0 - 23) |
min | New minutes (0 - 59) |
sec | New secconds (0 - 59) |
void rtc9_software_reset | ( | rtc9_t * | ctx | ) |
Software reset.
rtc9 | Click object. |
void rtc9_wakeup | ( | rtc9_t * | ctx | ) |
Wake-up process.
rtc9 | Click object. |