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