Versions Compared

Key

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

Overview

General logical comparison module

Discussion

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

...

compareType = 5, performs logic greaterthan equal operation.

Type Definition

Code Block
typedef struct _ModuleLogicCompareFract32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 compareType;                            // Selects the type of comparison that is implemented by the module: EQUAL=0 NOTEQUAL=1 LESSTHAN=2 LESSOREQUAL=3 GREATERTHAN=4 GREATEROREQUAL=5
} ModuleLogicCompareFract32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

compareType

int

parameter

0

0

0:5

Pins

Input Pins

Name: in1

Description: Audio input 1

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Logical output

Data type: int

MATLAB Usage

File Name: logic_compare_fract32_module.m

...