Esempio n. 1
0
 def segmentNumber(self):
     # See NGPUtil.NGPConstants.CARB_UNITS
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x0C)  #return this.eventData[0x0C];
Esempio n. 2
0
 def correctionEstimate(self):
     return ((BinaryDataDecoder.readByte(self.eventData, 0x1B) << 8) |
             (BinaryDataDecoder.readByte(self.eventData, 0x1C) << 8) |
             (BinaryDataDecoder.readByte(self.eventData, 0x1D) << 8)
             | BinaryDataDecoder.readByte(self.eventData, 0x1E)) / 10000.0
Esempio n. 3
0
 def patternNumber(self):
     # See NGPUtil.NGPConstants.CARB_UNITS
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x0B)  #return this.eventData[0x0B];
Esempio n. 4
0
 def bgUnits(self):
     # See NGPUtil.NGPConstants.BG_UNITS
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x0B)  #return this.eventData[0x0B];
Esempio n. 5
0
 def bolusStepSize(self):
     # See NGPUtil.NGPConstants.BOLUS_STEP_SIZE
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x2F)  #return this.eventData[0x2F];
Esempio n. 6
0
 def numberOfReadings(self):
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x0C)  #return this.eventData[0x0C];
Esempio n. 7
0
 def source(self):
     # No idea what "source" means.
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x01)  # self.eventData[0x01];
Esempio n. 8
0
 def presetBolusNumber(self):
     # See NGPUtil.NGPConstants.BOLUS_PRESET_NAME
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x0D)  #return this.eventData[0x0D];
Esempio n. 9
0
 def minutesBetweenReadings(self):
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x0B)  #return this.eventData[0x0B];
Esempio n. 10
0
 def bolusNumber(self):
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x0C)  #return this.eventData[0x0C];
Esempio n. 11
0
 def bolusSource(self):
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x0B)  #return this.eventData[0x0B];
Esempio n. 12
0
 def dynamicActionRequestor(self):
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x01)  # self.eventData[0x01];
Esempio n. 13
0
 def eventType(self):
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x00)  #this.eventData[0];
Esempio n. 14
0
 def size(self):
     return BinaryDataDecoder.readByte(self.eventData,
                                       0x02)  #this.eventData[0x02];