Skip to content

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.

Module Pack

Standard

ClassID

classID = 236

Type Definition

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 4294967295 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_int32_module.m 
 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. 

Copyright (c) 2026 DSP Concepts, Inc.