Skip to content

Class eva::QuantizeDecor

template <class TReader, signed short... LEVELS>

ClassList > eva > QuantizeDecor

Decorator that quantizes analog readings to discrete levels.

  • #include <evaReaderDecors.h>

Inherits the following classes: TReader

Inherited by the following classes: eva::Switch

Public Functions

Type Name
signed short getLevel (unsigned char index)
Gets threshold value for a level.
signed short getValue ()
Gets quantized level index.

Public Functions Documentation

function getLevel

Gets threshold value for a level.

inline signed short eva::QuantizeDecor::getLevel (
    unsigned char index
) 

Parameters:

  • index Level index

Returns:

Threshold value


function getValue

Gets quantized level index.

inline signed short eva::QuantizeDecor::getValue () 

Returns:

Level index (0 for no input, 1..n for specific levels)



The documentation for this class was generated from the following file src/evaReaderDecors.h