Functions
Functions
BLE Services » Continuous Glucose Monitoring Service (CGMS)

## Functions
sdk_err_t | cgms_service_init (cgms_init_t *p_cgms_init)
| Initialize a Continuous Glucose Monitoring Service instance and add in the DB. More...
sdk_err_t | cgms_cp_cmd_rsp_send (uint8_t conn_idx, cgms_cp_cmd_rsp_t *p_rsp)
| Send cgms control point cmd response. More...
sdk_err_t | cgms_feature_update (uint32_t feature)
| Update cgms feature. More...
sdk_err_t | cgms_meas_val_send (uint8_t conn_idx, cgms_meas_rec_t *p_rec)
| Send cgms measurement value. More...

## Detailed Description

## Function Documentation

## ◆ cgms_cp_cmd_rsp_send()

sdk_err_t cgms_cp_cmd_rsp_send | ( | uint8_t | conn_idx,
|  | cgms_cp_cmd_rsp_t * | p_rsp
| ) |  |

Send cgms control point cmd response.

Parameters

  [in] | conn_idx | Index of connection.
  [in] | p_rsp | Pointer to response value.

Returns
  Result of response send.

## ◆ cgms_feature_update()

sdk_err_t cgms_feature_update | ( | uint32_t | feature | ) |

Update cgms feature.

Parameters

  [in] | feature | Feature value.

Returns
  Result of feature update.

## ◆ cgms_meas_val_send()

sdk_err_t cgms_meas_val_send | ( | uint8_t | conn_idx,
|  | cgms_meas_rec_t * | p_rec
| ) |  |

Send cgms measurement value.

Parameters

  [in] | conn_idx | Index of connection.
  [in] | p_rec | Pointer to measurement value.

Returns
  Result of measurement value send.

## ◆ cgms_service_init()

sdk_err_t cgms_service_init | ( | cgms_init_t * | p_cgms_init | ) |

Initialize a Continuous Glucose Monitoring Service instance and add in the DB.

Parameters

  [in] | p_cgms_init | Pointer to Continuous Glucose Monitoring Service initialization variable

Returns
  Result of service initialization.