Functions
Functions
BLE Services » Current Time Service (CTS)
Collaboration diagram for Functions:

## 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...

## Detailed Description

## Function Documentation

## ◆ cts_cur_time_adjust()

void cts_cur_time_adjust | ( | cts_adj_info_t * | p_adj_info | ) |

Adjust current time.

Parameters

  [in] | p_adj_info | Pointer to adjust information.

## ◆ cts_cur_time_send()

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.

Parameters

  [in] | conn_idx | Connnection index.
  [in] | p_cur_time | Pointer to current time.

Returns
  Result of notify value

## ◆ cts_exact_time_get()

void cts_exact_time_get | ( | cts_init_t * | p_exact_time | ) |

Get exact time for user.

Parameters

  [out] | p_exact_time | Pointer to exact time.

## ◆ cts_exact_time_update()

void cts_exact_time_update | ( | cts_init_t * | p_cts_exact_time | ) |

Update exact time.

Parameters

  [in] | p_cts_exact_time | Pointer to exact time.

## ◆ cts_service_init()

sdk_err_t cts_service_init | ( | cts_init_t * | p_cts_init | ) |

Initialize a Current Time Service instance and add in the DB.

Parameters

  [in] | p_cts_init | Pointer to CTS Service initialization variable.

Returns
  Result of service initialization.