Document toolboxDocument toolbox

(8.D.1.2) BitsToInt

Overview

Converts multiple binary bits to an integer value

Type Definition

typedef struct _ModuleBitsToInt { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure } ModuleBitsToIntClass;

Pins

Input Pins

Name: in1

Description: audio input

Data type: int

Channel range: 1

Block size range: 1

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: audio output

Data type: int

MATLAB Usage

File Name: bits_to_int_module.m

M=bits_to_int_module(NAME,NUMIN) Converts input bits at N input pins to unsigned integer at the output pin. The bit present at first input pin is LSB bit. NAME - name of the module. NUMIN - number of input pins.

Â