Functions | |
sdk_err_t | cts_service_init (cts_init_t *p_cts_init) |
Initialize a Current Time Service instance and add in the DB. More... | |
void | cts_exact_time_get (cts_init_t *p_exact_time) |
Get exact time for user. More... | |
void | cts_exact_time_update (cts_init_t *p_cts_exact_time) |
Update exact time. More... | |
void | cts_cur_time_adjust (cts_adj_info_t *p_adj_info) |
Adjust current time. More... | |
sdk_err_t | cts_cur_time_send (uint8_t conn_idx, cts_cur_time_t *p_cur_time) |
Send Current Time if its notification has been enabled. More... | |
void cts_cur_time_adjust | ( | cts_adj_info_t * | p_adj_info | ) |
Adjust current time.
[in] | p_adj_info | Pointer to adjust information. |
sdk_err_t cts_cur_time_send | ( | uint8_t | conn_idx, |
cts_cur_time_t * | p_cur_time | ||
) |
Send Current Time if its notification has been enabled.
[in] | conn_idx | Connnection index. |
[in] | p_cur_time | Pointer to current time. |
void cts_exact_time_get | ( | cts_init_t * | p_exact_time | ) |
Get exact time for user.
[out] | p_exact_time | Pointer to exact time. |
void cts_exact_time_update | ( | cts_init_t * | p_cts_exact_time | ) |
Update exact time.
[in] | p_cts_exact_time | Pointer to exact time. |
sdk_err_t cts_service_init | ( | cts_init_t * | p_cts_init | ) |
Initialize a Current Time Service instance and add in the DB.
[in] | p_cts_init | Pointer to CTS Service initialization variable. |