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

#include <current_inputs.h>

Public Member Functions

 CurrentInputs (int32_t serial_number, int hub_port, bool is_hub_port_device, std::function< void(int, double)> input_handler)
 
uint32_t getInputCount () const noexcept
 
double getSensorValue (int index) const
 
void setDataInterval (int index, uint32_t data_interval_ms) const
 
 ~CurrentInputs ()
 

Private Attributes

std::vector< std::unique_ptr< CurrentInput > > cis_
 
uint32_t input_count_
 

Detailed Description

Definition at line 42 of file current_inputs.h.

Constructor & Destructor Documentation

◆ CurrentInputs()

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

Definition at line 43 of file current_inputs.cpp.

◆ ~CurrentInputs()

phidgets::CurrentInputs::~CurrentInputs ( )

Definition at line 84 of file current_inputs.cpp.

Member Function Documentation

◆ getInputCount()

uint32_t phidgets::CurrentInputs::getInputCount ( ) const
noexcept

Definition at line 88 of file current_inputs.cpp.

◆ getSensorValue()

double phidgets::CurrentInputs::getSensorValue ( int  index) const

Definition at line 93 of file current_inputs.cpp.

◆ setDataInterval()

void phidgets::CurrentInputs::setDataInterval ( int  index,
uint32_t  data_interval_ms 
) const

Definition at line 98 of file current_inputs.cpp.

Member Data Documentation

◆ cis_

std::vector<std::unique_ptr<CurrentInput> > phidgets::CurrentInputs::cis_
private

Definition at line 61 of file current_inputs.h.

◆ input_count_

uint32_t phidgets::CurrentInputs::input_count_
private

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