SLAM
rpdev_prot.h
1
// protocol enums for RPdev protocol
2
// generated by genCPPprotocolEnums.py.py
3
4
#ifndef __RPDEV_PROT_H__
5
#define __RPDEV_PROT_H__
6
7
namespace
rpdev_server
{
11
enum
Command {
12
establishConnection = 0x0,
13
deviceList = 0x1,
14
heartbeat = 0x2,
15
heartbeatStopped = 0xfe,
16
connectionRefused = 0xff
17
};
18
19
}
// namespacerpdev_server
20
21
namespace
dev_gpio
{
22
enum
Command {
23
PinMode = 0x1,
24
PinValue = 0x2
25
};
26
27
enum
Modes {
28
X = 0x0,
29
In = 0x1,
30
Out = 0x2
31
};
32
33
}
// namespacedev_gpio
34
35
namespace
dev_rplidar
{
39
enum
Command {
40
Connect = 0x0,
41
StartScan = 0x1,
42
Stop = 0x2,
43
Grab = 0x3,
44
StateInfo = 0x4
45
};
46
50
enum
State {
51
Waiting = 0x0,
52
Connected = 0x1,
53
Scanning = 0x2,
54
Grabbing = 0x3,
55
Error = 0x4
56
};
57
58
}
// namespacedev_rplidar
59
60
#endif
dev_gpio
Definition:
rpdev_prot.h:21
rpdev_server
Definition:
rpdev_prot.h:7
dev_rplidar
Definition:
rpdev_prot.h:35