Document toolboxDocument toolbox

(8.D.1.2) AbsFract32

Overview

Absolute value of fractional input

Discussion

Computes the absolute value of a Fractional multichannel signal. The function is applied on a sample-by-sample basis. The module is multi-type and supports fractional signals. The class AbsFract32 operates on fixed-point data.

Type Definition

typedef struct _ModuleAbsFract32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure } ModuleAbsFract32Class;

Pins

Input Pins

Name: in

Description: Input signal

Data type: fract32

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Output signal

Data type: fract32

MATLAB Usage

File Name: abs_fract32_module.m

M=abs_fract32_module(NAME) Creates a fractional absolute value block for use with the Audio Weaver. Arguments: NAME - name of the module.

Â