Skip to main content
Skip table of contents

LogicAndConstInt32

Overview

Ands a signal with a constant

Discussion

This module operates on Int32 signals and logically ANDs the values by a specified 32-bit constant The operation of the module is straightforward and supports an arbitrary number of channels and blockSize.

Type Definition

CODE
typedef struct _ModuleLogicAndConstInt32
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    UINT32 mask;                                  // Bit mask used when ANDing
} ModuleLogicAndConstInt32Class;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

mask

uint

parameter

0

4295000000

Unrestricted

Pins

Input Pins

Name: in

Description: audio input

Data type: int

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: audio output

Data type: int

MATLAB Usage

File Name: logic_and_const_fract32_module.m

CODE
 M=logic_and_const_int32_module(NAME)
 This module ANDs a Int32 signal by a specified bitmask.  It can be
 used, for example, to zero out certain bits of a signal.  The module
 supports multichannel signals.  Arguments:
    NAME - name of the module.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.