Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Compares fract32 values against a constant parameter value

Discussion

This module implements a general purpose logical compare module that is capable of realizing many different logic operations. The behavior of the logic compare is controlled by the compareType parameter. filterType is an integer in the range from 0 to 5 inclusive. The following list discusses the various compare oprations types and which variables are active in each case. compareType = 0, performs logic equal operation.

...

compareType = 5, performs logic greaterthan equal operation.

Type Definition

Code Block
typedef struct _ModuleLogicCompareConstFract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 compareType;                            // Selects the type of compare that is implemented by the module: Equal=0 NotEqual=1 lessThan=2 LessOrEqual=3 greaterThan=4 GreaterOrEqual=5
    fract32 const_value;                          // Selects value against to perform compare operations
} ModuleLogicCompareConstFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

compareType

int

parameter

0

0

0:5

const_value

fract32

parameter

0

0

Unrestricted

Pins

Input Pins

Name: in

Description: audio input

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: audio output

Data type: int

MATLAB Usage

File Name: logic_compare_const_fract32_module.m

...