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