Skip to content

Commit

Permalink
stub out more experimental commands likely to exist
Browse files Browse the repository at this point in the history
But really I have no idea.
  • Loading branch information
bewest committed Apr 10, 2014
1 parent 1e044d2 commit 18956a4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions decocare/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,27 @@ class PowerControlOff(PowerControl):
"""
params = [ 0x00, 0x00 ]

# MMPump???/ CMD_???????? 69 0x45 ('E') ??
class PumpExperiment_OP69 (PumpCommand):
code = 69

# MMPump???/ CMD_???????? 70 0x46 ('F') ??
class PumpExperiment_OP70 (PumpCommand):
code = 70

# MMPump???/ CMD_???????? 71 0x47 ('G') ??
class PumpExperiment_OP71 (PumpCommand):
code = 71

# MMPump???/ CMD_???????? 72 0x48 ('H') ??
class PumpExperiment_OP72 (PumpCommand):
code = 72

# MMPump???/ CMD_???????? 73 0x49 ('I') ??
class PumpExperiment_OP73 (PumpCommand):
code = 73

# MMPump???/ SelectBasalProfile 74 0x4a ('J') OK
class SelectBasalProfile (PumpCommand):
code = 74

Expand All @@ -201,6 +222,10 @@ class SelectBasalProfileA (SelectBasalProfile):
class SelectBasalProfileB (SelectBasalProfile):
params = [ 2 ]

# MMPump???/ CMD_???????? 75 0x4b ('K') ??
class PumpExperiment_OP75 (PumpCommand):
code = 75

class TempBasal(PumpCommand):
"""
Expand Down Expand Up @@ -1313,6 +1338,12 @@ def get_pages(device):
'SelectBasalProfileSTD',
'SelectBasalProfileA',
'SelectBasalProfileB',
'PumpExperiment_OP69',
'PumpExperiment_OP70',
'PumpExperiment_OP71',
'PumpExperiment_OP72',
'PumpExperiment_OP73',
'PumpExperiment_OP75',
]

if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion doc/commands.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ MMPump???/ CMD_???????? 70 0x46 ('F') ??
MMPump???/ CMD_???????? 71 0x47 ('G') ??
MMPump???/ CMD_???????? 72 0x48 ('H') ??
MMPump???/ CMD_???????? 73 0x49 ('I') ??
MMPump???/ CMD_???????? 74 0x4a ('J') ??
MMPump???/ SelectBasalProfile 74 0x4a ('J') OK
MMPump???/ CMD_???????? 75 0x4b ('K') ??
MMPump???/ SetTempBasal 76 0x4c ('L') OK
MMPump511/ SuspendResume 77 0x4d ('M') OK
Expand Down

0 comments on commit 18956a4

Please sign in to comment.