LogicAndConstFract32
Overview
Ands a signal with a constant
Discussion
This module operates on fract32 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 = 147
Type Definition
typedef struct _ModuleLogicAndConstFract32
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
UINT32 mask; // Bit mask used when ANDing
} ModuleLogicAndConstFract32Class;
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 | fract32 |
| Channel range | Unrestricted |
| Block size range | Unrestricted |
| Sample rate range | Unrestricted |
| Complex support | Real |
Output Pins
| Name | out |
| Description | audio output |
| Data Type | fract32 |
Matlab Usage
File Name: logic_and_const_fract32_module.m
M=logic_and_const_fract32_module(NAME)
This module ANDs a fract32 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.