SPIKE-RT C++ API Reference
Loading...
Searching...
No Matches
Port.h
1//
2// Port.h
3//
4// Copyright (c) 2025 Embedded Technology Software Design Robot Contest
5//
6
7#ifndef SPIKE_CPP_API_PORT_H_
8#define SPIKE_CPP_API_PORT_H_
9
10extern "C" {
11#include "pbio/port.h"
12}
13
17
21enum class EPort
22{
23 PORT_A = PBIO_PORT_ID_A,
24 PORT_B = PBIO_PORT_ID_B,
25 PORT_C = PBIO_PORT_ID_C,
26 PORT_D = PBIO_PORT_ID_D,
27 PORT_E = PBIO_PORT_ID_E,
28 PORT_F = PBIO_PORT_ID_F
29};
30
32#define NUM_PORT_S (6) // number of sensor ports
33
35#define NUM_PORT_M (6) // number of motor ports
36
37#endif // ! SPIKE_CPP_API_PORT_H_