blob: 0c84b5eb430d2f494fe844d3486a9e20ba138b8a [file] [log] [blame]
John Park33858a32018-09-28 23:05:48 -07001#ifndef AOS_NETWORK_PORT_H_
2#define AOS_NETWORK_PORT_H_
Brian Silverman66f079a2013-08-26 16:24:30 -07003
Brian4a424a22014-04-02 11:52:45 -07004#include <stdint.h>
Brian Silverman66f079a2013-08-26 16:24:30 -07005
6namespace aos {
7
8// Constants representing the various ports used for communications and some
9// documentation about what each is used for.
10enum class NetworkPort : uint16_t {
Brian Silverman14fd0fb2014-01-14 21:42:01 -080011 // UDP socket sending motor values from the prime to the crio.
Brian Silverman66f079a2013-08-26 16:24:30 -070012 kMotors = 9710,
Brian Silverman14fd0fb2014-01-14 21:42:01 -080013 // UDP socket forwarding drivers station packets from the crio to the prime.
Brian Silverman66f079a2013-08-26 16:24:30 -070014 kDS = 9711,
Brian Silverman14fd0fb2014-01-14 21:42:01 -080015 // UDP socket sending sensor values from the crio to the prime.
Brian Silverman66f079a2013-08-26 16:24:30 -070016 kSensors = 9712,
Brian Silverman66f079a2013-08-26 16:24:30 -070017 // HTTP server that sends out camera feeds in mjpg format.
18 // Should not be changed because this number shows up elsewhere too.
19 kCameraStreamer = 9714,
20};
21
22// Constants representing the various devices that talk on the network and the
23// last segment of their IP addresses.
24enum class NetworkAddress : uint8_t {
25 // The computer that the cRIO talks to.
Brian Silverman14fd0fb2014-01-14 21:42:01 -080026 kPrime = 179,
Brian Silverman66f079a2013-08-26 16:24:30 -070027 kCRIO = 2,
28};
29
30} // namespace aos
31
John Park33858a32018-09-28 23:05:48 -070032#endif // AOS_NETWORK_PORT_H_