src.bluetooth_sig.gatt.characteristics.glucose_measurement¶
Glucose Measurement characteristic implementation.
Classes¶
Name | Description |
|---|---|
Glucose measurement bit field constants. |
|
Glucose Measurement characteristic (0x2A18). |
|
Parsed glucose measurement data. |
|
Glucose Measurement flags as per Bluetooth SIG specification. |
|
Glucose sample type enumeration as per Bluetooth SIG specification. |
|
Sample location enumeration as per Bluetooth SIG specification. |
Module Contents¶
- class src.bluetooth_sig.gatt.characteristics.glucose_measurement.GlucoseMeasurementBits¶
Glucose measurement bit field constants.
- GLUCOSE_SAMPLE_LOCATION_BIT_WIDTH = 4¶
- GLUCOSE_SAMPLE_LOCATION_START_BIT = 0¶
- GLUCOSE_TYPE_BIT_WIDTH = 4¶
- GLUCOSE_TYPE_SAMPLE_MASK = 15¶
- GLUCOSE_TYPE_START_BIT = 4¶
- class src.bluetooth_sig.gatt.characteristics.glucose_measurement.GlucoseMeasurementCharacteristic¶
Bases:
src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[GlucoseMeasurementData]Glucose Measurement characteristic (0x2A18).
Used to transmit glucose concentration measurements with timestamps and status. Core characteristic for glucose monitoring devices.
- class src.bluetooth_sig.gatt.characteristics.glucose_measurement.GlucoseMeasurementData¶
Bases:
msgspec.StructParsed glucose measurement data.
- static is_reserved_range(value: int) bool¶
Check if glucose type or sample location is in reserved range.
- base_time: datetime.datetime¶
- flags: GlucoseMeasurementFlags¶
- glucose_type: GlucoseType | None = None¶
- sample_location: SampleLocation | None = None¶
- class src.bluetooth_sig.gatt.characteristics.glucose_measurement.GlucoseMeasurementFlags¶
Bases:
enum.IntFlagGlucose Measurement flags as per Bluetooth SIG specification.
- GLUCOSE_CONCENTRATION_UNITS_MMOL_L = 2¶
- SENSOR_STATUS_ANNUNCIATION_PRESENT = 8¶
- TIME_OFFSET_PRESENT = 1¶
- TYPE_SAMPLE_LOCATION_PRESENT = 4¶
- class src.bluetooth_sig.gatt.characteristics.glucose_measurement.GlucoseType¶
Bases:
enum.IntEnumGlucose sample type enumeration as per Bluetooth SIG specification.
- ARTERIAL_PLASMA = 6¶
- ARTERIAL_WHOLE_BLOOD = 5¶
- CAPILLARY_PLASMA = 2¶
- CAPILLARY_WHOLE_BLOOD = 1¶
- CONTROL_SOLUTION = 10¶
- INTERSTITIAL_FLUID = 9¶
- UNDETERMINED_PLASMA = 8¶
- UNDETERMINED_WHOLE_BLOOD = 7¶
- VENOUS_PLASMA = 4¶
- VENOUS_WHOLE_BLOOD = 3¶