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

Use this class when programming with a digital-in device. More...

Inherits vex::__tridevice.

Public Member Functions

 digital_in (triport::port &port)
 Creates a new digital in object on the port specified in the parameter. More...
 
 ~digital_in ()
 
int32_t value ()
 Gets the value of the digital-in device. More...
 
 operator int ()
 
 operator bool ()
 

Detailed Description

Use this class when programming with a digital-in device.

Constructor & Destructor Documentation

◆ digital_in()

vex::digital_in::digital_in ( triport::port port)

Creates a new digital in object on the port specified in the parameter.

Parameters
portA reference to a three wire port.

◆ ~digital_in()

vex::digital_in::~digital_in ( )

Member Function Documentation

◆ value()

int32_t vex::digital_in::value ( )

Gets the value of the digital-in device.

Returns
Returns an integer that represents the value of the digital-in device.

◆ operator int()

vex::digital_in::operator int ( )

◆ operator bool()

vex::digital_in::operator bool ( )