gusimplewhiteboard
wb_nxt_interface.h File Reference
#include <gu_util.h>
Include dependency graph for wb_nxt_interface.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nxt_port_object
 An object that contains the type and data of an nxt sensor. More...
 
struct  wb_nxt_interface
 Interface for talking with an NXT. More...
 

Enumerations

enum  nxt_ports {
  Port1 = 0 , Port2 , Port3 , Port4 ,
  MotorA , MotorB , MotorC , NUMBER_OF_NXT_PORTS
}
 /file wb_nxt_interface.h More...
 
enum  nxt_port_object_type {
  Empty_Port = 0 , Sonar_Sensor , Touch_Sensor , Passive_Light_Sensor ,
  Active_Light_Sensor , Motor , NUMBER_OF_NXT_OBJECT_TYPES
}
 Used to determine what type of object is plugged into each port on the nxt currently. More...
 

Enumeration Type Documentation

◆ nxt_port_object_type

Used to determine what type of object is plugged into each port on the nxt currently.

Enumerator
Empty_Port 
Sonar_Sensor 
Touch_Sensor 
Passive_Light_Sensor 
Active_Light_Sensor 
Motor 
NUMBER_OF_NXT_OBJECT_TYPES 

Definition at line 28 of file wb_nxt_interface.h.

◆ nxt_ports

enum nxt_ports

/file wb_nxt_interface.h

Created by Carl Lusty in 2014.
Copyright (c) 2014 Carl Lusty
All rights reserved.
A handy enum for accessing the objects array

Enumerator
Port1 
Port2 
Port3 
Port4 
MotorA 
MotorB 
MotorC 
NUMBER_OF_NXT_PORTS 

Definition at line 15 of file wb_nxt_interface.h.