VEXcode Doxygen
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...

#include <vex_device.h>

Public Member Functions

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.

Member Function Documentation

◆ number()

int32_t vex::devices::number ( )

Gets the number of VEX devices that are plugged in.

@prog_lang{none} @drawer_cat{none} @block_sig{Devices.number();}

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.

@prog_lang{none} @drawer_cat{none}

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()

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

Get the V5 device type plugged into a specific port.

@prog_lang{none} @drawer_cat{none} @block_sig{Devices.type(1);}

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: