VEX V5 C++ API
Public Member Functions | List of all members
vex::devices Class Reference

Use the device class to get information about all of the vex devices plugged into the V5. More...

Public Member Functions

 devices ()
 
 ~devices ()
 
deviceoperator[] (int i)
 
V5_DeviceType type (int32_t index)
 Get the V5 device type plugged into a specific port. More...
 
int32_t number ()
 Gets the number of VEX devices that are plugged in. More...
 
int32_t numberOf (V5_DeviceType type)
 Gets the number of specified devices that are plugged into the V5. More...
 

Detailed Description

Use the device class to get information about all of the vex devices plugged into the V5.

Constructor & Destructor Documentation

◆ devices()

vex::devices::devices ( )

◆ ~devices()

vex::devices::~devices ( )

Member Function Documentation

◆ operator[]()

device& vex::devices::operator[] ( int  i)
inline

◆ type()

V5_DeviceType vex::devices::type ( int32_t  index)

Get the V5 device type plugged into a specific port.

Returns
Returns a V5 device type.
Parameters
indexSpecifies the index to look at for the device.

◆ number()

int32_t vex::devices::number ( )

Gets the number of VEX devices that are plugged in.

Returns
Returns an integer that represent the number of vex devices

◆ numberOf()

int32_t vex::devices::numberOf ( V5_DeviceType  type)

Gets the number of specified devices that are plugged into the V5.

Returns
Returns an integer that represents the number of a specific vex devices set by the parameter.
Parameters
typeThe type of device to look for on the V5.