This commit is contained in:
swissalpine 2023-11-30 11:46:35 +01:00 committed by GitHub
parent 9b2441f457
commit 1e13237a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,8 +20,8 @@ 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. */ /** Returns the basal insulin on board. */
val insulinTotalOnboard: Double val insulinBasalOnboard: Double
/** Returns the remaining carbs on board. */ /** Returns the remaining carbs on board. */
val carbsOnboard: Double? val carbsOnboard: Double?
@ -35,9 +35,6 @@ 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()
@ -51,6 +48,9 @@ interface LoopHub {
/** Notifies the system that carbs were eaten and stores the value. */ /** Notifies the system that carbs were eaten and stores the value. */
fun postCarbs(carbohydrates: Int) fun postCarbs(carbohydrates: Int)
/** Stores or cancels a temptarget. */
fun postTempTarget(target: Double, duration: Int)
/** Stores hear rate readings that a taken and averaged of the given interval. */ /** Stores hear rate readings that a taken and averaged of the given interval. */
fun storeHeartRate( fun storeHeartRate(
samplingStart: Instant, samplingEnd: Instant, samplingStart: Instant, samplingEnd: Instant,