ETrobocon2017 - 片山研究所モデルベース開発推進事業部
str
ev3-api
library
libcpp-ev3
include
Port.h
[詳解]
1
//
2
// Port.h
3
//
4
// Copyright (c) 2015-2016 Embedded Technology Software Design Robot Contest
5
//
6
7
#ifndef EV3CPPAPI_PORT_H_
8
#define EV3CPPAPI_PORT_H_
9
18
enum
ePortS
19
{
20
PORT_1
= 0,
21
PORT_2
,
22
PORT_3
,
23
PORT_4
24
};
25
29
enum
ePortM
30
{
31
PORT_A
= 0,
32
PORT_B
,
33
PORT_C
,
34
PORT_D
35
};
36
40
enum
ePower
41
{
42
POWER_OFF
= 0,
43
POWER_LOWSPEED_9V
= 1,
44
POWER_LOWSPEED
= 2
45
};
46
48
#define NUM_PORT_S (4) // number of sensor ports
49
51
#define NUM_PORT_M (4) // number of motor ports
52
53
#endif // ! EV3CPPAPI_PORT_H_
PORT_1
Definition:
Port.h:20
ePortM
ePortM
Definition:
Port.h:29
PORT_B
Definition:
Port.h:32
POWER_LOWSPEED_9V
Definition:
Port.h:43
ePortS
ePortS
Definition:
Port.h:18
PORT_3
Definition:
Port.h:22
PORT_C
Definition:
Port.h:33
PORT_4
Definition:
Port.h:23
ePower
ePower
Definition:
Port.h:40
POWER_LOWSPEED
Definition:
Port.h:44
PORT_D
Definition:
Port.h:34
POWER_OFF
Definition:
Port.h:42
PORT_2
Definition:
Port.h:21
PORT_A
Definition:
Port.h:31
構築:
1.8.13