Update LoopHub.kt: add iob, cob, tbr val
This commit is contained in:
parent
e29d8f59f9
commit
beac0ecf1c
|
@ -20,6 +20,12 @@ interface LoopHub {
|
||||||
/** Returns the remaining bolus insulin on board. */
|
/** Returns the remaining bolus insulin on board. */
|
||||||
val insulinOnboard: Double
|
val insulinOnboard: Double
|
||||||
|
|
||||||
|
/** Returns the remaining bolus and basal insulin on board. */
|
||||||
|
val insulinTotalOnboard: Double
|
||||||
|
|
||||||
|
/** Returns the remaining carbs on board. */
|
||||||
|
val carbsOnboard: Double?
|
||||||
|
|
||||||
/** Returns true if the pump is connected. */
|
/** Returns true if the pump is connected. */
|
||||||
val isConnected: Boolean
|
val isConnected: Boolean
|
||||||
|
|
||||||
|
@ -29,6 +35,9 @@ interface LoopHub {
|
||||||
/** Returns the factor by which the basal rate is currently raised (> 1) or lowered (< 1). */
|
/** Returns the factor by which the basal rate is currently raised (> 1) or lowered (< 1). */
|
||||||
val temporaryBasal: Double
|
val temporaryBasal: Double
|
||||||
|
|
||||||
|
/** Returns the temporary basal rate in percent */
|
||||||
|
val temporaryBasalPercent: String
|
||||||
|
|
||||||
/** Tells the loop algorithm that the pump is physically connected. */
|
/** Tells the loop algorithm that the pump is physically connected. */
|
||||||
fun connectPump()
|
fun connectPump()
|
||||||
|
|
||||||
|
@ -48,4 +57,4 @@ interface LoopHub {
|
||||||
avgHeartRate: Int,
|
avgHeartRate: Int,
|
||||||
device: String?
|
device: String?
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue