def highBgTarget(self): bgTarget = BinaryDataDecoder.readUInt16BE(self.eventData, 0x19) return bgTarget if self.bgUnits == NGPConstants.BG_UNITS.MG_DL else bgTarget / 10.0
def isf(self): isf = BinaryDataDecoder.readUInt16BE(self.eventData, 0x11) return isf if self.bgUnits == NGPConstants.BG_UNITS.MG_DL else isf / 10.0
def carbInput(self): carbs = BinaryDataDecoder.readUInt16BE( self.eventData, 0x0F) #this.eventData.readUInt16BE(0x0F) return carbs if self.carbUnits == NGPConstants.CARB_UNITS.GRAMS else carbs / 10.0
def bgInput(self): bgInput = BinaryDataDecoder.readUInt16BE( self.eventData, 0x0D) #this.eventData.readUInt16BE(0x0D); return bgInput if self.bgUnits == NGPConstants.BG_UNITS.MG_DL else bgInput / 10.0
def predictedSg(self): return BinaryDataDecoder.readUInt16BE( self.eventData, 0x0D) #return this.eventData.readUInt16BE(0x0D);
def bgValue(self): # bgValue is always in mg/dL. return BinaryDataDecoder.readUInt16BE( self.eventData, 0x0C) #this.eventData.readUInt16BE(0x0C);