Versions Compared

Key

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

Overview

Performs logical operations on binary signals

Discussion

This modules performs binary operations on integer input signals. The module has a variable number of input pins and a single output pin. In all cases, all inputs must have the same block size and this equals the block size of the output pin.

...

When the module is byassed it outputs 0x1 on all samples.

Type Definition

Code Block
typedef struct _ModuleLogicBinaryOp
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 opType;                                 // AND=0, OR=1, XOR=2. Selects the type of binary operations that is performed.
    INT32 oneChannelOutput;                       // Boolean value that determines whether all channels are operated on to form a single output.
} ModuleLogicBinaryOpClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

opType

int

parameter

0

0

0:2

oneChannelOutput

int

const

0

0

0:1:1

Pins

Input Pins

Name: in1

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_binary_op_module.m

...