Pummpcomm v2.5.1 Pummpcomm.Session.Exchange.ReadSettings View Source

Reads settings about max basal, max bolus, selected basal profile (for basal profile patterns) and the insulin action curve in hours.

Link to this section Summary

Types

The basal profile

Functions

Decodes Pummpcomm.Session.Response.t to the max basal, max bolus, selected basal profile (for basal profile patterns) and the insulin action curve in hours from pump with pump_serial

Makes Pummpcomm.Session.Command.t to read the max basal, max bolus, selected basal profile (for basal profile patterns) and the insulin action curve in hours from pump with pump_serial

Link to this section Types

Link to this type basal_profile() View Source
basal_profile() :: :profile_a | :profile_b | :standard

The basal profile

  • :standard - when basal profile patterns are not enabled
  • :profile_a - the A profile when basal profile patterns are enabled
  • :profile_b - the B profile when basal profile patterns are enabled

Link to this section Functions

Link to this function decode(response) View Source
decode(Pummpcomm.Session.Response.t) :: {:ok, %{insulin_action_curve_hours: non_neg_integer, max_basal: Pummpcomm.Insulin.units, max_bolus: Pummpcomm.Insulin.units, selected_basal_profile: basal_profile}}

Decodes Pummpcomm.Session.Response.t to the max basal, max bolus, selected basal profile (for basal profile patterns) and the insulin action curve in hours from pump with pump_serial

Makes Pummpcomm.Session.Command.t to read the max basal, max bolus, selected basal profile (for basal profile patterns) and the insulin action curve in hours from pump with pump_serial