Overview
Performs logical operations on binary signals
Discussion
This module can compute multiple binary operations sequentially and write the result in a defined output channel. The output is then a channel integer signal that is formed as the binary operation applied over defined input and output channels.
...
This module supports only control data of block size = 1.
Type Definition
Code Block |
---|
typedef struct _ModuleLogicBinaryOpCombination { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 numOut; // Number of output channels INT32 numOps; // Number of binary operations to be computed INT32 defaultOut; // Defines the default output value for unsused channels INT32* binaryOpConfig; // Column 1: Input channel index, Column 2: Output channel index, Column 3: AND=0, OR=1, XOR=2, NAND=3, NOR=4, XNOR=5, CONST=6. Selects the type of binary operations that is performed. } ModuleLogicBinaryOpCombinationClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
numOut | int | const | 0 | 1 | Unrestricted | |
numOps | int | const | 0 | 1 | Unrestricted | |
defaultOut | int | parameter | 0 | 0 | 0:1 | |
binaryOpConfig | int* | parameter | 0 | [1 x 3] | Unrestricted |
Pins
Input Pins
Name: in
Description: Control input
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Control output
Data type: int
MATLAB Usage
File Name: logic_binary_op_combination_module.m
...