# device/Port.h File Reference

Motor/Sensor port related enums and defines. More...

Go to the source code of this file.

## Defines
#define | NUM_PORT_S (4)
| Number of sensor ports.
#define | NUM_PORT_M (3)
| Number of motor ports.
## Enumerations
enum | ePortS { PORT_1 = 0, PORT_2, PORT_3, PORT_4 }
| Enum for NXT sensor ports. More...
enum | ePortM { PORT_A = 0, PORT_B, PORT_C }
| Enum for NXT motor ports. More...
enum | ePower { POWER_OFF = 0, POWER_LOWSPEED_9V = 1, POWER_LOWSPEED = 2 }
| Enum for power supply to NXT sensor port. More...

## Detailed Description

Motor/Sensor port related enums and defines.

## Enumeration Type Documentation

enum ePortM

Enum for NXT motor ports.

Enumerator:

  PORT_A | Enum value for NXT motor port A.
  PORT_B | Enum value for NXT motor port B.
  PORT_C | Enum value for NXT motor port C.

enum ePortS

Enum for NXT sensor ports.

Enumerator:

  PORT_1 | Enum value for NXT sensor port 1.
  PORT_2 | Enum value for NXT sensor port 2.
  PORT_3 | Enum value for NXT sensor port 3.
  PORT_4 | Enum value for NXT sensor port 4.

enum ePower

Enum for power supply to NXT sensor port.

Enumerator:

  POWER_OFF | Enum value for no power supply.
  POWER_LOWSPEED_9V | Enum value to supply 9V to sensor.
  POWER_LOWSPEED | Enum value for I2C device.