![]() |
Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
|
This service exposes the control capability, the status of an Insulin Delivery Device (IDD) running an insulin infusion therapy, and historical therapy data to be used in the personal and professional healthcare industry. More...
This service exposes the control capability, the status of an Insulin Delivery Device (IDD) running an insulin infusion therapy, and historical therapy data to be used in the personal and professional healthcare industry.
This file provides APIs to interface Insulin Delivery Service Records.
Data Structures | |
struct | st_ble_ids_evt_data_t |
Insulin Delivery Service event data. More... | |
struct | st_ble_ids_init_param_t |
Insulin Delivery Service initialization parameters. More... | |
struct | st_ble_ids_connect_param_t |
Insulin Delivery Service connection parameters. More... | |
struct | st_ble_ids_disconnect_param_t |
Insulin Delivery Service disconnection parameters. More... | |
struct | st_ble_ids_idd_srcp_response_code_operand_t |
IDD Status Reader Control Point Response code operand. More... | |
struct | st_ble_ids_idd_srcp_reset_status_operand_t |
IDD Status Reader Control Point Reset status operand. More... | |
struct | st_ble_ids_idd_srcp_get_active_bolusids_response_operand_t |
IDD Status Reader Control Point Get Active Blus ID Response. More... | |
struct | st_ble_ids_idd_srcp_get_active_bolus_delivery_operand_t |
IDD Status Reader Control Point Get Active Blus Delivery. More... | |
struct | st_ble_ids_idd_srcp_get_active_bolus_delivery_response_operand_t |
IDD Status Reader Control Point Get Active Blus Delivery.Response. More... | |
struct | st_ble_ids_idd_srcp_get_active_basel_rate_delivery_response_operand_t |
IDD Status Reader Control Point Get Active Basal Rate Delivery Response. More... | |
struct | st_ble_ids_idd_srcp_get_total_daily_insulin_status_response_operand_t |
IDD Status Reader Control Point Get Total Daily Insulin Status Response. More... | |
struct | st_ble_ids_idd_srcp_get_counter_operand_t |
IDD Status Reader Control Point Get Counter. More... | |
struct | st_ble_ids_idd_srcp_get_counter_response_operand_t |
IDD Status Reader Control Point Get Counter Response. More... | |
struct | st_ble_ids_idd_srcp_get_delivered_insulin_response_operand_t |
IDD Status Reader Control Point Get Delivered Insulin Response. More... | |
struct | st_ble_ids_idd_srcp_get_insulin_onbord_response_operand_t |
IDD Status Reader Control Point Get Insulin On Board Response Response. More... | |
struct | st_ble_ids_idd_ccp_response_code_operand_t |
IDD Command CP Response Code Operand. More... | |
struct | st_ble_ids_idd_ccp_write_brp_template_operand_t |
IDD Command CP Write Basal Rate Profile Template Operand. More... | |
struct | st_ble_ids_idd_ccp_write_brp_template_response_operand_t |
IDD Command CP Write Basal Rate Profile Template Response Operand. More... | |
struct | st_ble_ids_idd_ccp_set_tbr_adjustment_operand_t |
DD Command CP Set TBR Adjustment Operand. More... | |
struct | st_ble_ids_idd_ccp_get_tbr_template_response_operand_t |
IDD Command CP Get TBR Template Response Operand. More... | |
struct | st_ble_ids_idd_ccp_set_tbr_template_operand_t |
IDD Command CP Set TBR Template Operand. More... | |
struct | st_ble_ids_idd_ccp_set_bolus_operand_t |
IDD Command CP Set Bolus Operand. More... | |
struct | st_ble_ids_idd_ccp_get_available_boluses_res_t |
IDD Command CP get available boluses. More... | |
struct | st_ble_ids_idd_ccp_get_bolus_template_response_operand_t |
IDD Command CP Get Bolus Template Response Operand. More... | |
struct | st_ble_ids_idd_ccp_reset_template_status_operand_t |
IDD Command CP Reset Template Status Operand. More... | |
struct | st_ble_ids_idd_ccp_active_prof_template_operand_t |
IDD Command CP Reset Template Status Response Operand. More... | |
struct | st_ble_ids_idd_ccp_write_ipt_operand_t |
IDD Command CP write isf profile template. More... | |
struct | st_ble_ids_idd_ccp_write_ipt_res_operand_t |
IDD Command CP Write ISF Profile Template Response. More... | |
struct | st_ble_ids_idd_ccp_write_irpt_operand_t |
IDD Command CP Write I2CHO Ratio Profile Template. More... | |
struct | st_ble_ids_idd_ccp_write_irpt_res_operand_t |
IDD Command CP Write I2CHO Ratio Profile Template Response. More... | |
struct | st_ble_ids_idd_ccp_write_trgp_operand_t |
IDD Command CP Write Target Glucose Range Profile Template. More... | |
struct | st_ble_ids_idd_ccp_write_trgp_res_operand_t |
IDD Command CP Write Target Glucose Range Profile Template. More... | |
struct | st_ble_ids_idd_cd_read_brpt_response_operand_t |
IDD Command Data Read Basal Rate Profile Template Response Operand. More... | |
struct | st_ble_ids_idd_cd_get_temstatus_details_response_t |
IDD Command Data Get Supported Template Details and Status Response Operand. More... | |
struct | st_ble_ids_idd_cd_read_isfpt_response_t |
IDD Command Data Operand of Read ISF Profile Template Response. More... | |
struct | st_ble_ids_idd_cd_i2chorpt_response_t |
IDD Command Data Operand of Read I2CHO Ratio Profile Template Response. More... | |
struct | st_ble_ids_idd_cd_tg_range_response_t |
IDD Command Data Operand of Read Target Glucose Range Profile Template Response. More... | |
struct | st_ble_ids_idd_history_data_ref_time_event_t |
IDD History Data Reference Time Event. More... | |
struct | st_ble_ids_idd_history_data_ref_time_baseoffset_event_t |
IDD History Data Reference Time Base Offset Event. More... | |
struct | st_ble_ids_idd_history_data_bolus_calculated_part_1_of_2_event_t |
IDD History Data Bolus Calculated Part 1 of 2 Event. More... | |
struct | st_ble_ids_idd_history_data_bolus_calculated_part_2_of_2_event_t |
IDD History Data Bolus Calculated Part 2 of 2 Event. More... | |
struct | st_ble_ids_idd_history_data_bolus_programmed_part_1_of_2_event_t |
IDD History Data Bolus Programmed Part 1 of 2 Event. More... | |
struct | st_ble_ids_idd_history_data_bolus_programmed_part_2_of_2_event_t |
IDD History Data Bolus Programmed Part 2 of 2 Event. More... | |
struct | st_ble_ids_idd_history_data_bolus_delivered_part_1_of_2_event_t |
IDD History Data Bolus Delivered Part 1 of 2 Event. More... | |
struct | st_ble_ids_idd_history_data_bolus_delivered_part_2_of_2_event_t |
IDD History Data Bolus Delivered Part 2 of 2 Event. More... | |
struct | st_ble_ids_idd_history_delivered_basal_rate_changed_event_t |
IDD History Data Bolus Delivered Basal Rate Changed Event. More... | |
struct | st_ble_ids_idd_history_tbr_adjustment_started_event_t |
IDD History Data TBR Adjustment Started Event. More... | |
struct | st_ble_ids_idd_history_tbr_adjustment_ended_event_t |
IDD History Data TBR Adjustment ended Event. More... | |
struct | st_ble_ids_idd_history_tbr_adjustment_changed_event_t |
IDD History Data TBR Adjustment Changed Event. More... | |
struct | st_ble_ids_idd_history_pro_template_activated_event_t |
IDD History Profile Template Activated. More... | |
struct | st_ble_ids_idd_history_brpt_time_block_changed_event_t |
IDD History Basal Rate Profile Template Time Block Changed. More... | |
struct | st_ble_ids_idd_history_total_daily_insulin_delivery_event_t |
IDD History Total Daily Insulin Delivery. More... | |
struct | st_ble_ids_idd_history_therapy_control_state_event_t |
IDD History Therapy Control State Changed. More... | |
struct | st_ble_ids_idd_history_operational_state_changed_event_t |
IDD History Therapy Control State Changed. More... | |
struct | st_ble_ids_idd_history_annunciation_status_changed_part_1_of_2_event_t |
IDD History Annunciation Status Changed Part 1 of 2. More... | |
struct | st_ble_ids_idd_history_annunciation_status_changed_part_2_of_2_event_t |
IDD History Annunciation Status Changed Part 2 of 2. More... | |
struct | st_ble_ids_idd_history_isfpt_time_block_changed_event_t |
IDD History ISF Profile Template Time Block Changed. More... | |
struct | st_ble_ids_idd_history_i2chorpt_time_block_changed_event_t |
IDD History I2CHO Ratio Profile Template Time Block Changed. More... | |
struct | st_ble_ids_idd_history_tgrpt_time_block_changed_event_t |
IDD History Target Glucose Range Profile Template Time Block Changed. More... | |
struct | st_ble_ids_idd_history_priming_done_event_t |
IDD History Priming Done. More... | |
struct | st_ble_ids_idd_history_bolus_template_changed_part_1_of_2_event_t |
IDD History Bolus Template Changed Part 1 of 2. More... | |
struct | st_ble_ids_idd_history_bolus_template_changed_part_2_of_2_event_t |
IDD History Bolus Template Changed Part 2 of 2. More... | |
struct | st_ble_ids_idd_history_tbr_template_changed_event_t |
IDD History TBR Template Changed. More... | |
struct | st_ble_ids_idd_history_max_bolus_amount_changed_event_t |
IDD History Max Bolus Amount Changed. More... | |
struct | st_ble_ids_idd_status_changed_t |
IDD Status Changed characteristic parameters. More... | |
struct | st_ble_ids_idd_status_t |
IDD Status characteristic parameters. More... | |
struct | st_ble_ids_idd_annunciation_status_t |
IDD Annunciation Status characteristic parameters. More... | |
struct | st_ble_ids_idd_features_t |
IDD Features characteristic parameters. More... | |
struct | st_ble_ids_idd_status_reader_control_point_t |
IDD Status Reader Control Point characteristic parameters. More... | |
struct | st_ble_ids_idd_command_control_point_t |
IDD Command Control Point characteristic parameters. More... | |
struct | st_ble_ids_idd_command_data_t |
IDD Command Data characteristic parameters. More... | |
struct | st_ble_ids_idd_record_access_control_point_t |
IDD Record Access Control Point characteristic parameters. More... | |
struct | st_ble_ids_idd_history_data_t |
IDD History Data characteristic parameters. More... | |
struct | st_ble_ids_record_t |
Macros | |
#define | BLE_IDS_PROCEDURE_ALREADY_IN_PROGRESS (BLE_ERR_GROUP_GATT | 0xFE) |
Procedure Already in Progress error code. More... | |
#define | BLE_IDS_INVALID_CRC (BLE_ERR_GROUP_GATT | 0x81) |
Invalid CRC error code. More... | |
#define | BLE_IDS_COUNTER_ERROR (BLE_ERR_GROUP_GATT | 0x82) |
Counter Error error code. More... | |
#define | BLE_IDS_DISCRIPTOR_IMPROPERLY_CONFIGURED (BLE_ERR_GROUP_GATT | 0xFD) |
Discriptor Improperly Configured error code. More... | |
#define | BLE_IDS_RACP_OPERAND_LENGTH (15) |
racp operand length More... | |
#define | BLE_IDS_DB_MAX_NUM_OF_RECORDS (10) |
#define | BLE_IDS_DB_INVALID_INDEX (0xFFFF) |
Typedefs | |
typedef void(* | ble_ids_app_cb_t) (uint16_t type, ble_status_t result, st_ble_ids_evt_data_t *data) |
Insulin Delivery Service event callback. More... | |
Functions | |
ble_status_t | R_BLE_IDS_Init (const st_ble_ids_init_param_t *p_param) |
Initialize Insulin Delivery Service. More... | |
ble_status_t | R_BLE_IDS_Connect (uint16_t conn_hdl, const st_ble_ids_connect_param_t *p_param) |
Perform Insulin Delivery Service connection settings. More... | |
ble_status_t | R_BLE_IDS_Disconnect (uint16_t conn_hdl, st_ble_ids_disconnect_param_t *p_param) |
Retrieve Insulin Delivery Service connection specific settings before disconnection. More... | |
ble_status_t | R_BLE_IDS_GetIddStatusChanged (st_ble_ids_idd_status_changed_t *p_app_value) |
Get IDD Status Changed characteristic value from local GATT database. More... | |
ble_status_t | R_BLE_IDS_SetIddStatusChanged (const st_ble_ids_idd_status_changed_t *p_app_value) |
Set IDD Status Changed characteristic value to local GATT database. More... | |
ble_status_t | R_BLE_IDS_IndicateIddStatusChanged (uint16_t conn_hdl, const st_ble_ids_idd_status_changed_t *p_app_value) |
Send IDD Status Changed indication. More... | |
ble_status_t | R_BLE_IDS_GetIddStatus (st_ble_ids_idd_status_t *p_app_value) |
Get IDD Status characteristic value from local GATT database. More... | |
ble_status_t | R_BLE_IDS_SetIddStatus (const st_ble_ids_idd_status_t *p_app_value) |
Set IDD Status characteristic value to local GATT database. More... | |
ble_status_t | R_BLE_IDS_IndicateIddStatus (uint16_t conn_hdl, const st_ble_ids_idd_status_t *p_app_value) |
Send IDD Status indication. More... | |
ble_status_t | R_BLE_IDS_GetIddAnnunciationStatus (st_ble_ids_idd_annunciation_status_t *p_app_value) |
Get IDD Annunciation Status characteristic value from local GATT database. More... | |
ble_status_t | R_BLE_IDS_SetIddAnnunciationStatus (const st_ble_ids_idd_annunciation_status_t *p_app_value) |
Set IDD Annunciation Status characteristic value to local GATT database. More... | |
ble_status_t | R_BLE_IDS_IndicateIddAnnunciationStatus (uint16_t conn_hdl, const st_ble_ids_idd_annunciation_status_t *p_app_value) |
Send IDD Annunciation Status indication. More... | |
ble_status_t | R_BLE_IDS_GetIddFeatures (st_ble_ids_idd_features_t *p_app_value) |
Get IDD Features characteristic value from local GATT database. More... | |
ble_status_t | R_BLE_IDS_SetIddFeatures (const st_ble_ids_idd_features_t *p_app_value) |
Set IDD Features characteristic value to local GATT database. More... | |
ble_status_t | R_BLE_IDS_IndicateIddStatusReaderControlPoint (uint16_t conn_hdl, const st_ble_ids_idd_status_reader_control_point_t *p_app_value) |
Send IDD Status Reader Control Point indication. More... | |
ble_status_t | R_BLE_IDS_IndicateIddCommandControlPoint (uint16_t conn_hdl, const st_ble_ids_idd_command_control_point_t *p_app_value) |
Send IDD Command Control Point indication. More... | |
ble_status_t | R_BLE_IDS_NotifyIddCommandData (uint16_t conn_hdl, const st_ble_ids_idd_command_data_t *p_app_value) |
Send IDD Command Data notification. More... | |
ble_status_t | R_BLE_IDS_NotifyIddHistoryData (uint16_t conn_hdl, st_ble_ids_idd_history_data_t *p_app_value) |
Send IDD History Data notification. More... | |
uint32_t | R_BLE_IDS_GetVersion (void) |
Return version of the IDC service server. More... | |
void | ids_db_init (void) |
uint16_t | ids_db_get_oldest_index (void) |
uint16_t | ids_db_get_newest_index (void) |
st_ble_ids_record_t * | ids_db_get_record (uint16_t index) |
void | ids_db_store_record (st_ble_ids_idd_history_data_t *p_history_data) |
void | ids_db_delete_record (uint16_t index) |
#define BLE_IDS_PROCEDURE_ALREADY_IN_PROGRESS (BLE_ERR_GROUP_GATT | 0xFE) |
Procedure Already in Progress error code.
#define BLE_IDS_INVALID_CRC (BLE_ERR_GROUP_GATT | 0x81) |
Invalid CRC error code.
#define BLE_IDS_COUNTER_ERROR (BLE_ERR_GROUP_GATT | 0x82) |
Counter Error error code.
#define BLE_IDS_DISCRIPTOR_IMPROPERLY_CONFIGURED (BLE_ERR_GROUP_GATT | 0xFD) |
Discriptor Improperly Configured error code.
#define BLE_IDS_RACP_OPERAND_LENGTH (15) |
racp operand length
typedef void(* ble_ids_app_cb_t) (uint16_t type, ble_status_t result, st_ble_ids_evt_data_t *data) |
Insulin Delivery Service event callback.
Op Code enumeration.
Operator enumeration.
Filter Type enumeration.
Response Code enumeration.
enum e_ble_ids_event_t |
Insulin Delivery Service event type.
Therapy Control State enumeration.
Operational State enumeration.
Annunciation Type enumeration.
Annunciation Status enumeration.
Op Code enumeration.
The Response Code Values associated with the IDD Status Reader CP.
Op Code enumeration.
The Response Code Values associated with the IDD Command CP.
Response Op Code enumeration.
Event Type enumeration.
Bolus Activation Type.
Basal Delivery Context Values.
Counter Type Values.
IDD Command CP Response Code values.
IDD Command CP Bolus Activation Type values.
IDD Command CP Template Type values.
.Histary Data Event Dst Offset
ble_status_t R_BLE_IDS_Init | ( | const st_ble_ids_init_param_t * | p_param | ) |
Initialize Insulin Delivery Service.
This function shall be called once at startup.
[in] | p_param | Pointer to Insulin Delivery Service initialization parameters. |
ble_status_t R_BLE_IDS_Connect | ( | uint16_t | conn_hdl, |
const st_ble_ids_connect_param_t * | p_param | ||
) |
Perform Insulin Delivery Service connection settings.
This function shall be called on each connection establishment.
[in] | conn_hdl | Connection handle. |
[in] | p_param | Pointer to Connection parameters. |
ble_status_t R_BLE_IDS_Disconnect | ( | uint16_t | conn_hdl, |
st_ble_ids_disconnect_param_t * | p_param | ||
) |
Retrieve Insulin Delivery Service connection specific settings before disconnection.
This function shall be called on each disconnection.
[in] | conn_hdl | Connection handle. |
[in] | p_param | Pointer to Disconnection parameters. |
ble_status_t R_BLE_IDS_GetIddStatusChanged | ( | st_ble_ids_idd_status_changed_t * | p_app_value | ) |
Get IDD Status Changed characteristic value from local GATT database.
[out] | p_app_value | Pointer to Retrieved IDD Status Changed characteristic value. |
ble_status_t R_BLE_IDS_SetIddStatusChanged | ( | const st_ble_ids_idd_status_changed_t * | p_app_value | ) |
Set IDD Status Changed characteristic value to local GATT database.
[in] | p_app_value | pointer to IDD Status Changed characteristic value to set. |
ble_status_t R_BLE_IDS_IndicateIddStatusChanged | ( | uint16_t | conn_hdl, |
const st_ble_ids_idd_status_changed_t * | p_app_value | ||
) |
Send IDD Status Changed indication.
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Pointer to IDD Status Changed value to send. |
ble_status_t R_BLE_IDS_GetIddStatus | ( | st_ble_ids_idd_status_t * | p_app_value | ) |
Get IDD Status characteristic value from local GATT database.
[out] | p_app_value | pointer to Retrieved IDD Status characteristic value. |
ble_status_t R_BLE_IDS_SetIddStatus | ( | const st_ble_ids_idd_status_t * | p_app_value | ) |
Set IDD Status characteristic value to local GATT database.
[in] | p_app_value | Pointer to IDD Status characteristic value to set. |
ble_status_t R_BLE_IDS_IndicateIddStatus | ( | uint16_t | conn_hdl, |
const st_ble_ids_idd_status_t * | p_app_value | ||
) |
Send IDD Status indication.
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Pointer to IDD Status value to send. |
ble_status_t R_BLE_IDS_GetIddAnnunciationStatus | ( | st_ble_ids_idd_annunciation_status_t * | p_app_value | ) |
Get IDD Annunciation Status characteristic value from local GATT database.
[out] | p_app_value | Pointer to Retrieved IDD Annunciation Status characteristic value. |
ble_status_t R_BLE_IDS_SetIddAnnunciationStatus | ( | const st_ble_ids_idd_annunciation_status_t * | p_app_value | ) |
Set IDD Annunciation Status characteristic value to local GATT database.
[in] | p_app_value | Pointer to IDD Annunciation Status characteristic value to set. |
ble_status_t R_BLE_IDS_IndicateIddAnnunciationStatus | ( | uint16_t | conn_hdl, |
const st_ble_ids_idd_annunciation_status_t * | p_app_value | ||
) |
Send IDD Annunciation Status indication.
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Pointer to IDD Annunciation Status value to send. |
ble_status_t R_BLE_IDS_GetIddFeatures | ( | st_ble_ids_idd_features_t * | p_app_value | ) |
Get IDD Features characteristic value from local GATT database.
[out] | p_app_value | Pointer to Retrieved IDD Features characteristic value. |
ble_status_t R_BLE_IDS_SetIddFeatures | ( | const st_ble_ids_idd_features_t * | p_app_value | ) |
Set IDD Features characteristic value to local GATT database.
[in] | p_app_value | Pointer to IDD Features characteristic value to set. |
ble_status_t R_BLE_IDS_IndicateIddStatusReaderControlPoint | ( | uint16_t | conn_hdl, |
const st_ble_ids_idd_status_reader_control_point_t * | p_app_value | ||
) |
Send IDD Status Reader Control Point indication.
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Pointer to IDD Status Reader Control Point value to send. |
ble_status_t R_BLE_IDS_IndicateIddCommandControlPoint | ( | uint16_t | conn_hdl, |
const st_ble_ids_idd_command_control_point_t * | p_app_value | ||
) |
Send IDD Command Control Point indication.
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Pointer to IDD Command Control Point value to send. |
ble_status_t R_BLE_IDS_NotifyIddCommandData | ( | uint16_t | conn_hdl, |
const st_ble_ids_idd_command_data_t * | p_app_value | ||
) |
Send IDD Command Data notification.
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Pointer to IDD Command Data value to send. |
ble_status_t R_BLE_IDS_NotifyIddHistoryData | ( | uint16_t | conn_hdl, |
st_ble_ids_idd_history_data_t * | p_app_value | ||
) |
Send IDD History Data notification.
[in] | conn_hdl | Connection handle. |
[in] | p_app_value | Pointer to IDD History Data value to send. |
uint32_t R_BLE_IDS_GetVersion | ( | void | ) |
Return version of the IDC service server.