Pummpcomm v2.5.1 Pummpcomm.Cgm View Source

This module provides binary page decoding for Medtronic pump cgm pages. The main entrypoint is decode(page) which handles the crc check and parsing out event opcodes and translating those into event records.

Link to this section Summary

Types

The ISIG (short for Insterstitial Signal) is an electrical reading that is proportional to BG

Link to this section Types

Link to this type event() View Source
event() :: %{}
Link to this type isig() View Source
isig() :: non_neg_integer

The ISIG (short for Insterstitial Signal) is an electrical reading that is proportional to BG.

Link to this section Functions

Link to this function decode(page) View Source
decode(binary) :: {:ok, [event]}

Takes a page of cgm data and decodes events from it.

Link to this function decode_page(arg, events) View Source
Link to this function needs_timestamp?(events) View Source