VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
Loading...
Searching...
No Matches
vex::devices Class Reference

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

#include <vex_device.h>

Public Member Functions

IQ_DeviceType type (int32_t index)
 Get the V5 device type plugged into a specific port.

 
int32_t number ()
 Gets the number of VEX devices that are plugged in.

 
int32_t numberOf (IQ_DeviceType type)
 Gets the number of specified devices that are plugged into the V5.
 

Detailed Description

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

Definition at line 93 of file vex_device.h.

Member Function Documentation

◆ 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 ( IQ_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.

◆ type()

IQ_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.

The documentation for this class was generated from the following file: