예제 #1
0
 def estimateModifiedByUser(self):
     return (BinaryDataDecoder.readUInt32BE(self.eventData, 0x30)
             & 0x01) == 0x01
예제 #2
0
 def rate(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x0D
     ) / 10000.0  # return this.eventData.readUInt32BE(0x0D) / 10000.0;
예제 #3
0
 def bolusWizardEstimate(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x2B) / 10000.0
예제 #4
0
 def finalEstimate(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x31) / 10000.0
예제 #5
0
 def iob(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x23) / 10000.0
예제 #6
0
 def iobAdjustment(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x27) / 10000.0
예제 #7
0
 def carbRatio(self):
     carbRatio = BinaryDataDecoder.readUInt32BE(self.eventData, 0x13)
     return carbRatio / 10.0 if (
         self.carbUnits
         == NGPConstants.CARB_UNITS.GRAMS) else carbRatio / 1000.0
예제 #8
0
 def foodEstimate(self):
     return BinaryDataDecoder.readUInt32BE(self.eventData, 0x1F) / 10000.0
예제 #9
0
 def activeInsulin(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x16
     ) / 10000.0  #return this.eventData.readUInt32BE(0x16) / 10000.0;
예제 #10
0
 def programmedAmount(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x0E
     ) / 10000.0  #return this.eventData.readUInt32BE(0x12) / 10000.0;
예제 #11
0
 def deliveredAmount(self):
     return BinaryDataDecoder.readUInt32BE(
         self.eventData, 0x12
     ) / 10000.0  #return this.eventData.readUInt32BE(0x12) / 10000.0;