Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Selects one of N inputs

Discussion

This module has a variable number of input pins and routes (or copies) one of these pins to the output. Each input pin must have the same number of channels and block size. The parameter, index specifies which of the input pins to route to the output. index is zero based and must lie in the range of [0 NUMINPIN-1] where NUMINPIN is the number of input pins. If index is outside of the allowable range, it is clipped so that it lies in the proper range.

...

The module has an optional control pin when the argument INDEXFROMPIN = 1. The module then has NUMINPIN+1 input pins and the last one is a control pin of size 1x1 which specifies which input signal to use. The control signal is zero based and in the range [0 NUMINPINS-1].

Type Definition

Code Block
typedef struct _ModuleMultiplexor
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 indexPinFlag;                           // Specifies index pin available or not.
    INT32 index;                                  // Specifies which input pin to route to the output. The index is zero based.
} ModuleMultiplexorClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

indexPinFlag

int

const

0

1

Unrestricted

index

int

parameter

0

0

0:2

Pins

Input Pins

Name: in1

Description: Input signal

...

Complex support: Real and Complex

Output Pins

Name: out

Description: Output signal

Data type: {float, int, fract32}

MATLAB Usage

File Name: multiplexor_module.m

...