Functions | |
sdk_err_t | cts_client_init (cts_c_evt_handler_t evt_handler) |
Register CTS Client event handler. More... | |
sdk_err_t | cts_c_disc_srvc_start (uint8_t conn_idx) |
Discovery Current Time Service on peer. More... | |
sdk_err_t | cts_c_cur_time_notify_set (uint8_t conn_idx, bool is_enable) |
Enable or disable peer Current Time characteristic notify. More... | |
sdk_err_t | cts_c_cur_time_read (uint8_t conn_idx) |
Read Current Time characteristic value. More... | |
sdk_err_t | cts_c_loc_time_info_read (uint8_t conn_idx) |
Read Local Time Information characteristic value. More... | |
sdk_err_t | cts_c_ref_time_info_read (uint8_t conn_idx) |
Read Reference Time Information characteristic value. More... | |
sdk_err_t | cts_c_cur_time_set (uint8_t conn_idx, cts_c_cur_time_t *p_cur_time) |
Set Current Time characteristic value. More... | |
sdk_err_t | cts_c_loc_time_info_set (uint8_t conn_idx, cts_c_loc_time_info_t *p_loc_time_info) |
Set Local Time Information characteristic value. More... | |
sdk_err_t cts_c_cur_time_notify_set | ( | uint8_t | conn_idx, |
bool | is_enable | ||
) |
Enable or disable peer Current Time characteristic notify.
[in] | conn_idx | Index of connection. |
[in] | is_enable | True or false. |
sdk_err_t cts_c_cur_time_read | ( | uint8_t | conn_idx | ) |
Read Current Time characteristic value.
[in] | conn_idx | Index of connection. |
sdk_err_t cts_c_cur_time_set | ( | uint8_t | conn_idx, |
cts_c_cur_time_t * | p_cur_time | ||
) |
Set Current Time characteristic value.
[in] | conn_idx | Index of connection. |
[in] | p_cur_time | Pointer to current time value set. |
sdk_err_t cts_c_disc_srvc_start | ( | uint8_t | conn_idx | ) |
Discovery Current Time Service on peer.
[in] | conn_idx | Index of connection. |
sdk_err_t cts_c_loc_time_info_read | ( | uint8_t | conn_idx | ) |
Read Local Time Information characteristic value.
[in] | conn_idx | Index of connection. |
sdk_err_t cts_c_loc_time_info_set | ( | uint8_t | conn_idx, |
cts_c_loc_time_info_t * | p_loc_time_info | ||
) |
Set Local Time Information characteristic value.
[in] | conn_idx | Index of connection. |
[in] | p_loc_time_info | Pointer to local time information value set. |
sdk_err_t cts_c_ref_time_info_read | ( | uint8_t | conn_idx | ) |
Read Reference Time Information characteristic value.
[in] | conn_idx | Index of connection. |
sdk_err_t cts_client_init | ( | cts_c_evt_handler_t | evt_handler | ) |
Register CTS Client event handler.
[in] | evt_handler | Current Time Service Client event handler. |