Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
phidgets::AnalogInput Class Referencefinal

#include <analog_input.h>

Public Member Functions

 AnalogInput (int32_t serial_number, int hub_port, bool is_hub_port_device, int channel, std::function< void(int, double)> input_handler)
 
double getSensorValue () const
 
void setDataInterval (uint32_t data_interval_ms) const
 
void voltageChangeHandler (double sensorValue) const
 
 ~AnalogInput ()
 

Static Private Member Functions

static void VoltageChangeHandler (PhidgetVoltageInputHandle input_handle, void *ctx, double sensorValue)
 

Private Attributes

PhidgetVoltageInputHandle ai_handle_
 
int channel_
 
std::function< void(int, double)> input_handler_
 

Detailed Description

Definition at line 41 of file analog_input.h.

Constructor & Destructor Documentation

◆ AnalogInput()

phidgets::AnalogInput::AnalogInput ( int32_t  serial_number,
int  hub_port,
bool  is_hub_port_device,
int  channel,
std::function< void(int, double)>  input_handler 
)
explicit

Definition at line 42 of file analog_input.cpp.

◆ ~AnalogInput()

phidgets::AnalogInput::~AnalogInput ( )

Definition at line 71 of file analog_input.cpp.

Member Function Documentation

◆ getSensorValue()

double phidgets::AnalogInput::getSensorValue ( ) const

Definition at line 77 of file analog_input.cpp.

◆ setDataInterval()

void phidgets::AnalogInput::setDataInterval ( uint32_t  data_interval_ms) const

Definition at line 90 of file analog_input.cpp.

◆ voltageChangeHandler()

void phidgets::AnalogInput::voltageChangeHandler ( double  sensorValue) const

Definition at line 100 of file analog_input.cpp.

◆ VoltageChangeHandler()

void phidgets::AnalogInput::VoltageChangeHandler ( PhidgetVoltageInputHandle  input_handle,
void *  ctx,
double  sensorValue 
)
staticprivate

Definition at line 105 of file analog_input.cpp.

Member Data Documentation

◆ ai_handle_

PhidgetVoltageInputHandle phidgets::AnalogInput::ai_handle_
private

Definition at line 61 of file analog_input.h.

◆ channel_

int phidgets::AnalogInput::channel_
private

Definition at line 59 of file analog_input.h.

◆ input_handler_

std::function<void(int, double)> phidgets::AnalogInput::input_handler_
private

Definition at line 60 of file analog_input.h.


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


phidgets_api
Author(s): Tully Foote, Ivan Dryanovski
autogenerated on Sun May 11 2025 02:20:27