TypeConversion
Overview
Converts between numeric data types
Discussion
This module converts between various 32-bit data types. The input dataType is inherited from the input wire. The output dataType is specified as a module argument.
When bypassed the module is still active and continues to perform the conversion.
Type Definition
typedef struct _ModuleTypeConversion
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
INT32 inputType; // Specifies the dataType of the input
INT32 outputType; // Specifies the dataType of the output
} ModuleTypeConversionClass;
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
inputType | int | parameter | 1 | 0 | 0:2 | |
outputType | int | parameter | 1 | 0 | 0:2 |
Pins
Input Pins
Name: in
Description: Input signal
Data type: {float, int, fract32}
Channel range: Unrestricted
Block size range: Unrestricted
Sample rate range: Unrestricted
Complex support: Real and Complex
Output Pins
Name: out
Description: Output signal
Data type: float
MATLAB Usage
File Name: type_conversion_module.m
M = type_conversion_module(NAME, OUTPUTTYPE)
This modules converts between numeric data types. For example, from
fract32 to floating-point. Arguments:
NAME - name of the module.
OUTPUTTYPE - this specifies the type of the output data. Allowable
values are: 0=float, 1=fract32, 2=int32