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

Reads a CGM page. To get the valid range of page, use Pummpcomm.Session.Exchange.GetCurrentCgmPage.

Link to this section Summary

Functions

Decodes Pummpcomm.Session.Response.t to Pummpcomm.Cgm.events on page requested in make/2 Pummpcomm.Session.Command.t

Makes Pummpcomm.Session.Command.t to read page from CGM attached to pump with pump_serial. To get the valid range of page, use Pummpcomm.Session.Exchange.GetCurrentCgmPage. Pages count up from 1, so it is not possible to determine the current page and the range of valid pages without using Pummpcomm.Session.Exchange.GetCurrentCgmPage first

Link to this section Functions

Decodes Pummpcomm.Session.Response.t to Pummpcomm.Cgm.events on page requested in make/2 Pummpcomm.Session.Command.t

Link to this function make(pump_serial, page) View Source
make(Pummpcomm.Session.Command.pump_serial, page :: non_neg_integer) :: %Pummpcomm.Session.Command{bytes_per_record: term, effect_time: term, max_records: term, opcode: term, params: term, pump_serial: term, retries: term, timeout: 5000}

Makes Pummpcomm.Session.Command.t to read page from CGM attached to pump with pump_serial. To get the valid range of page, use Pummpcomm.Session.Exchange.GetCurrentCgmPage. Pages count up from 1, so it is not possible to determine the current page and the range of valid pages without using Pummpcomm.Session.Exchange.GetCurrentCgmPage first.