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

#include <current_input.h>

Public Member Functions

void currentChangeHandler (double sensorValue) const
 
 CurrentInput (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
 
 ~CurrentInput ()
 

Static Private Member Functions

static void CurrentChangeHandler (PhidgetCurrentInputHandle input_handle, void *ctx, double sensorValue)
 

Private Attributes

int channel_
 
PhidgetCurrentInputHandle ci_handle_
 
std::function< void(int, double)> input_handler_
 

Detailed Description

Definition at line 41 of file current_input.h.

Constructor & Destructor Documentation

◆ CurrentInput()

phidgets::CurrentInput::CurrentInput ( 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 current_input.cpp.

◆ ~CurrentInput()

phidgets::CurrentInput::~CurrentInput ( )

Definition at line 71 of file current_input.cpp.

Member Function Documentation

◆ currentChangeHandler()

void phidgets::CurrentInput::currentChangeHandler ( double  sensorValue) const

Definition at line 100 of file current_input.cpp.

◆ CurrentChangeHandler()

void phidgets::CurrentInput::CurrentChangeHandler ( PhidgetCurrentInputHandle  input_handle,
void *  ctx,
double  sensorValue 
)
staticprivate

Definition at line 105 of file current_input.cpp.

◆ getSensorValue()

double phidgets::CurrentInput::getSensorValue ( ) const

Definition at line 77 of file current_input.cpp.

◆ setDataInterval()

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

Definition at line 90 of file current_input.cpp.

Member Data Documentation

◆ channel_

int phidgets::CurrentInput::channel_
private

Definition at line 59 of file current_input.h.

◆ ci_handle_

PhidgetCurrentInputHandle phidgets::CurrentInput::ci_handle_
private

Definition at line 61 of file current_input.h.

◆ input_handler_

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

Definition at line 60 of file current_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