nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
cgms.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef BT_CGMS_H_
8#define BT_CGMS_H_
9
10#include <zephyr/types.h>
11#include <zephyr/bluetooth/conn.h>
12#include <sfloat.h>
13
20#ifdef __cplusplus
21extern "C" {
22#endif
23
46};
47
62};
63
70};
71
73struct bt_cgms_cb {
82 void (*session_state_changed)(const bool session_state);
83};
84
89
92
95
98
100 struct bt_cgms_cb *cb;
101};
102
112
122int bt_cgms_init(struct bt_cgms_init_param *init_params);
123
124#ifdef __cplusplus
125}
126#endif
127
132#endif /* BT_CMGS_H_ */
bt_cgms_feat_loc
CGMS Feature characteristic Sample Location field.
Definition: cgms.h:49
@ BT_CGMS_FEAT_LOC_SUB_TISSUE
Definition: cgms.h:59
@ BT_CGMS_FEAT_LOC_CONTROL
Definition: cgms.h:57
@ BT_CGMS_FEAT_LOC_NOT_AVAIL
Definition: cgms.h:61
@ BT_CGMS_FEAT_LOC_AST
Definition: cgms.h:53
@ BT_CGMS_FEAT_LOC_EAR
Definition: cgms.h:55
@ BT_CGMS_FEAT_LOC_FINGER
Definition: cgms.h:51
int bt_cgms_measurement_add(struct bt_cgms_measurement measurement)
Submit glucose concentration measurement to CGM service.
int bt_cgms_init(struct bt_cgms_init_param *init_params)
Initialize Continuous Glucose Monitoring service.
bt_cgms_feat_type
CGMS Feature characteristic Type field.
Definition: cgms.h:25
@ BT_CGMS_FEAT_TYPE_UNDET_BLOOD
Definition: cgms.h:39
@ BT_CGMS_FEAT_TYPE_FLUID
Definition: cgms.h:43
@ BT_CGMS_FEAT_TYPE_CONTROL
Definition: cgms.h:45
@ BT_CGMS_FEAT_TYPE_VEN_PLASMA
Definition: cgms.h:33
@ BT_CGMS_FEAT_TYPE_CAP_BLOOD
Definition: cgms.h:27
@ BT_CGMS_FEAT_TYPE_ART_PLASMA
Definition: cgms.h:37
@ BT_CGMS_FEAT_TYPE_ART_BLOOD
Definition: cgms.h:35
@ BT_CGMS_FEAT_TYPE_CAP_PLASMA
Definition: cgms.h:29
@ BT_CGMS_FEAT_TYPE_VEN_BLOOD
Definition: cgms.h:31
@ BT_CGMS_FEAT_TYPE_UNDET_PLASMA
Definition: cgms.h:41
void(* session_state_changed)(const bool session_state)
Callback when the state of session changes.
Definition: cgms.h:82
Continuous Glucose Monitoring service callback structure.
Definition: cgms.h:73
uint16_t session_run_time
Definition: cgms.h:94
enum bt_cgms_feat_loc sample_location
Definition: cgms.h:91
uint16_t initial_comm_interval
Definition: cgms.h:97
enum bt_cgms_feat_type type
Definition: cgms.h:88
struct bt_cgms_cb * cb
Definition: cgms.h:100
Continuous Glucose Monitoring service initialization structure.
Definition: cgms.h:86
struct sfloat glucose
Definition: cgms.h:69
Continuous Glucose Monitoring service measurement record structure.
Definition: cgms.h:65
SFLOAT type.
Definition: sfloat.h:45