Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::io::i420_context Class Reference

Detailed Description

The i420 context class provides lower level access to the 4-20 mA inputs.

This class implements the common i420_context_interface, required by vsdk::io::i420 class. Due to the nature of the lower level access, there can be only one instance of this class in the application.

#include <i420_context.h>

Public Member Functions

analog_result read (i420_input input) override
 Read the value of a particular input.

Static Public Member Functions

static std::shared_ptr< i420_context_interface > instance ()
 Access to the only i420_context instance for the class.

Detailed Description

The i420 context class provides lower level access to the 4-20 mA inputs.

This class implements the common i420_context_interface, required by vsdk::io::i420 class. Due to the nature of the lower level access, there can be only one instance of this class in the application.

Member Function Documentation

◆ instance()

std::shared_ptr< i420_context_interface > vsdk::io::i420_context::instance ( )
static

Access to the only i420_context instance for the class.

Returns
The i420 context object, wrapped in a std::shared_ptr.

◆ read()

analog_result vsdk::io::i420_context::read ( i420_input input)
overridevirtual

Read the value of a particular input.

Parameters
inputThe 4-20 mA input, see i420_input.
Returns
A analog_result struct with the actual value and the unit for the value.

Implements vsdk::io::i420_context_interface.


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