Document toolboxDocument toolbox

(8.D.1.2) 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.

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

4295000000

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.

Â