src.bluetooth_sig.gatt.characteristics.cgm_specific_ops_control_point

CGM Specific Ops Control Point characteristic (0x2AAC).

Control point for CGM-specific procedures: communication interval, calibration, alert levels, session control.

References

Bluetooth SIG Continuous Glucose Monitoring Service org.bluetooth.characteristic.cgm_specific_ops_control_point (GSS YAML)

Classes

Name

Description

CGMSpecificOpsControlPointCharacteristic

CGM Specific Ops Control Point characteristic (0x2AAC).

CGMSpecificOpsControlPointData

Parsed data from CGM Specific Ops Control Point.

CGMSpecificOpsOpCode

CGM Specific Ops Control Point Op Codes.

CGMSpecificOpsResponseCode

CGM Specific Ops response codes.

Module Contents

class src.bluetooth_sig.gatt.characteristics.cgm_specific_ops_control_point.CGMSpecificOpsControlPointCharacteristic

Bases: src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[CGMSpecificOpsControlPointData]

CGM Specific Ops Control Point characteristic (0x2AAC).

org.bluetooth.characteristic.cgm_specific_ops_control_point

Used to enable procedures related to a continuous glucose monitor. ROLE: CONTROL

allow_variable_length = True
min_length = 1
class src.bluetooth_sig.gatt.characteristics.cgm_specific_ops_control_point.CGMSpecificOpsControlPointData

Bases: msgspec.Struct

Parsed data from CGM Specific Ops Control Point.

opcode

The operation code.

operand

Raw operand bytes (variable per opcode). Empty if none.

e2e_crc

Optional E2E-CRC (present if CGM Feature indicates support).

e2e_crc: int | None = None
opcode: CGMSpecificOpsOpCode
operand: bytes = b''
class src.bluetooth_sig.gatt.characteristics.cgm_specific_ops_control_point.CGMSpecificOpsOpCode

Bases: enum.IntEnum

CGM Specific Ops Control Point Op Codes.

CGM_COMMUNICATION_INTERVAL_RESPONSE = 3
GET_CGM_COMMUNICATION_INTERVAL = 2
GET_GLUCOSE_CALIBRATION_VALUE = 5
GET_HYPER_ALERT_LEVEL = 17
GET_HYPO_ALERT_LEVEL = 14
GET_PATIENT_HIGH_ALERT_LEVEL = 8
GET_PATIENT_LOW_ALERT_LEVEL = 11
GET_RATE_OF_DECREASE_ALERT_LEVEL = 20
GET_RATE_OF_INCREASE_ALERT_LEVEL = 23
GLUCOSE_CALIBRATION_VALUE_RESPONSE = 6
HYPER_ALERT_LEVEL_RESPONSE = 18
HYPO_ALERT_LEVEL_RESPONSE = 15
PATIENT_HIGH_ALERT_LEVEL_RESPONSE = 9
PATIENT_LOW_ALERT_LEVEL_RESPONSE = 12
RATE_OF_DECREASE_ALERT_LEVEL_RESPONSE = 21
RATE_OF_INCREASE_ALERT_LEVEL_RESPONSE = 24
RESET_DEVICE_SPECIFIC_ALERT = 25
RESPONSE_CODE = 28
SET_CGM_COMMUNICATION_INTERVAL = 1
SET_GLUCOSE_CALIBRATION_VALUE = 4
SET_HYPER_ALERT_LEVEL = 16
SET_HYPO_ALERT_LEVEL = 13
SET_PATIENT_HIGH_ALERT_LEVEL = 7
SET_PATIENT_LOW_ALERT_LEVEL = 10
SET_RATE_OF_DECREASE_ALERT_LEVEL = 19
SET_RATE_OF_INCREASE_ALERT_LEVEL = 22
START_THE_SESSION = 26
STOP_THE_SESSION = 27
class src.bluetooth_sig.gatt.characteristics.cgm_specific_ops_control_point.CGMSpecificOpsResponseCode

Bases: enum.IntEnum

CGM Specific Ops response codes.

INVALID_OPERAND = 3
OP_CODE_NOT_SUPPORTED = 2
PARAMETER_OUT_OF_RANGE = 5
PROCEDURE_NOT_COMPLETED = 4
SUCCESS = 1