Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pybot/drivers/hackp.py
blob: 4e9c963a23fec07a8914d5b165ed7f7fd820a368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

RD_VERSION = 0x00
SET_MODE = 0x01
READ = 0x02
WRITE = 0x03
WRITE_PORT = 0x04
PORT_IN = 0x05
PORT_OUT = 0x06


f1 = {
    'name': 'getVersion',
    'call': RD_VERSION,
    'params': 0,
    'read': 3
}

f2 = {
    'name': 'setMode',
    'call': SET_MODE,
    'params': 2,
    'read': 1
}

f3 = {
    'name': 'read',
    'call': READ,
    'params': 1,
    'read': 1
}

f4 = {
    'name': 'write',
    'call': WRITE,
    'params': 2,
    'read': 1
}

FUNCTIONS = [f1, f2, f3, f4]