UniSet 2.32.1
Открытые типы | Открытые члены | Открытые статические члены | Открытые атрибуты | Статические открытые данные | Друзья | Полный список членов класса
Структура uniset::IOBase

#include <IOBase.h>

Граф наследования:uniset::IOBase:
Inheritance graph
[см. легенду]
Граф связей класса uniset::IOBase:
Collaboration graph
[см. легенду]

Открытые типы

enum  FrontType { ftUnknown , ft01 , ft10 }
 

Открытые члены

 IOBase (const IOBase &r)=delete
 
IOBaseoperator= (const IOBase &r)=delete
 
 IOBase (IOBase &&r)=default
 
IOBaseoperator= (IOBase &&r)=default
 
bool check_channel_break (long val)
 
bool check_debounce (bool val)
 
bool check_on_delay (bool val)
 
bool check_off_delay (bool val)
 
bool check_front (bool val)
 
bool check_depend (const std::shared_ptr< SMInterface > &shm)
 
IOBase make_iobase_copy ()
 
void create_from_iobase (const IOBase &b)
 

Открытые статические члены

static void processingF64asAI (IOBase *it, double new_val, const std::shared_ptr< SMInterface > &shm, bool force)
 
static void processingFasAI (IOBase *it, float new_val, const std::shared_ptr< SMInterface > &shm, bool force)
 
static void processingAsAI (IOBase *it, long new_val, const std::shared_ptr< SMInterface > &shm, bool force)
 
static void processingAsDI (IOBase *it, bool new_set, const std::shared_ptr< SMInterface > &shm, bool force)
 
static long processingAsAO (IOBase *it, const std::shared_ptr< SMInterface > &shm, bool force)
 
static float processingFasAO (IOBase *it, const std::shared_ptr< SMInterface > &shm, bool force)
 
static double processingF64asAO (IOBase *it, const std::shared_ptr< SMInterface > &shm, bool force)
 
static bool processingAsDO (IOBase *it, const std::shared_ptr< SMInterface > &shm, bool force)
 
static void processingThreshold (IOBase *it, const std::shared_ptr< SMInterface > &shm, bool force)
 
static bool initItem (IOBase *b, UniXML::iterator &it, const std::shared_ptr< SMInterface > &shm, const std::string &prefix, bool init_prefix_only, std::shared_ptr< DebugStream > dlog=nullptr, std::string myname="", int def_filtersize=0, float def_filterT=0.0, float def_lsparam=0.2, float def_iir_coeff_prev=0.5, float def_iir_coeff_new=0.5)
 
static std::string initProp (UniXML::iterator &it, const std::string &prop, const std::string &prefix, bool prefonly, const std::string &defval="")
 
static int initIntProp (UniXML::iterator &it, const std::string &prop, const std::string &prefix, bool prefonly, const int defval=0)
 
static timeout_t initTimeoutProp (UniXML::iterator &it, const std::string &prop, const std::string &prefix, bool prefonly, const timeout_t defval)
 

Открытые атрибуты

IOController_i::SensorInfo si
 
UniversalIO::IOType stype
 
IOController_i::CalibrateInfo cal
 
Calibrationcdiagram
 
long breaklim
 
long value
 
long craw
 
long cprev
 
long safeval
 
long defval
 
bool safevalDefined = { false }
 
DigitalFilter df
 
bool nofilter
 
bool f_median
 
bool f_ls
 
bool f_filter_iir
 
bool ignore
 
bool invert
 
bool noprecision
 
bool calcrop
 
PassiveTimer ptDebounce
 
PassiveTimer ptOnDelay
 
PassiveTimer ptOffDelay
 
Trigger trOnDelay
 
Trigger trOffDelay
 
Trigger trdebounce
 
bool debounce_pause
 
bool debounce_state
 
bool ondelay_state
 
bool offdelay_state
 
uniset::ObjectId d_id
 
IOController::IOStateList::iterator d_it
 
long d_value
 
long d_off_value
 
UniversalIO::IOType d_iotype
 
uniset::ObjectId t_ai
 
IONotifyController_i::ThresholdInfo ti
 
IOController::IOStateList::iterator t_ait
 
bool front
 
FrontType front_type
 
bool front_prev_state
 
bool front_state
 
bool rawdata
 
IOController::IOStateList::iterator ioit
 
uniset::uniset_rwmutex val_lock
 

Статические открытые данные

static const int DefaultSubdev = -1
 
static const int DefaultChannel = -1
 
static const int DefaultCard = -1
 

Друзья

std::ostream & operator<< (std::ostream &os, const FrontType &f)
 
std::ostream & operator<< (std::ostream &os, const IOBase &inf)
 

Подробное описание

Свойства переменной в/в

Методы

◆ check_channel_break()

bool uniset::IOBase::check_channel_break ( long val)

проверка обрыва провода

◆ check_debounce()

bool uniset::IOBase::check_debounce ( bool val)

реализация фильтра против дребезга

◆ check_depend()

bool uniset::IOBase::check_depend ( const std::shared_ptr< SMInterface > & shm)

проверка разрешения(зависимости) от другого датчика

◆ check_front()

bool uniset::IOBase::check_front ( bool val)

реализация срабатывания по фронту сигнала

◆ check_off_delay()

bool uniset::IOBase::check_off_delay ( bool val)

реализация задержки на отключение

◆ check_on_delay()

bool uniset::IOBase::check_on_delay ( bool val)

реализация задержки на включение

◆ initItem()

bool uniset::IOBase::initItem ( IOBase * b,
UniXML::iterator & it,
const std::shared_ptr< SMInterface > & shm,
const std::string & prefix,
bool init_prefix_only,
std::shared_ptr< DebugStream > dlog = nullptr,
std::string myname = "",
int def_filtersize = 0,
float def_filterT = 0.0,
float def_lsparam = 0.2,
float def_iir_coeff_prev = 0.5,
float def_iir_coeff_new = 0.5 )
static
Аргументы
initPrefixOnly- TRUE - инициализировать только свойства с prefix (или брать значения по умолчанию). FALSE - сперва искать свойство с prefix, если не найдено брать без prefix.

Данные класса

◆ breaklim

long uniset::IOBase::breaklim

значение задающее порог определяющий обрыв (задаётся 'сырое' значение)

◆ cal

IOController_i::CalibrateInfo uniset::IOBase::cal

калибровочные параметры

◆ calcrop

bool uniset::IOBase::calcrop

обрезать значения по границам при калибровке. Default: true

◆ cdiagram

Calibration* uniset::IOBase::cdiagram

специальная калибровочная диаграмма

◆ cprev

long uniset::IOBase::cprev

предыдущее значение после калибровки

◆ craw

long uniset::IOBase::craw

текущее 'сырое' значение до калибровки

◆ d_id

uniset::ObjectId uniset::IOBase::d_id

идентификатор датчика, от которого зависит данный

◆ d_off_value

long uniset::IOBase::d_off_value

блокирующее значение

◆ d_value

long uniset::IOBase::d_value

итератор на датчик от которого зависит данный разрешающее работу значение датчика от которого зависит данный

◆ debounce_state

bool uniset::IOBase::debounce_state

значение для фильтра антидребезга

◆ defval

long uniset::IOBase::defval

состояние по умолчанию (при запуске)

◆ df

DigitalFilter uniset::IOBase::df

реализация программного фильтра

◆ f_filter_iir

bool uniset::IOBase::f_filter_iir

признак использования рекурсивного фильтра

◆ f_ls

bool uniset::IOBase::f_ls

признак использования адаптивного фильтра по методу наименьших квадратов

◆ f_median

bool uniset::IOBase::f_median

признак использования медианного фильтра

◆ ignore

bool uniset::IOBase::ignore

игнорировать при опросе

◆ invert

bool uniset::IOBase::invert

инвертированная логика

◆ nofilter

bool uniset::IOBase::nofilter

отключение фильтра

◆ offdelay_state

bool uniset::IOBase::offdelay_state

значение для задержки отключения

◆ ondelay_state

bool uniset::IOBase::ondelay_state

значение для задержки включения

◆ ptDebounce

PassiveTimer uniset::IOBase::ptDebounce

таймер на дребезг

◆ ptOffDelay

PassiveTimer uniset::IOBase::ptOffDelay

задержка на отпускание

◆ ptOnDelay

PassiveTimer uniset::IOBase::ptOnDelay

задержка на срабатывание

◆ safeval

long uniset::IOBase::safeval

безопасное значение

◆ safevalDefined

bool uniset::IOBase::safevalDefined = { false }

флаг, означающий что safeval задан (можно использовать)

◆ stype

UniversalIO::IOType uniset::IOBase::stype

тип канала (DI,DO,AI,AO)

◆ t_ai

uniset::ObjectId uniset::IOBase::t_ai

если данный датчик дискретный, и является пороговым, то в данном поле хранится идентификатор аналогового датчика с которым он связан

◆ val_lock

uniset::uniset_rwmutex uniset::IOBase::val_lock

блокировка на время "работы" со значением

◆ value

long uniset::IOBase::value

текущее значение