Skip to content

BitsToInt

Overview

Converts multiple binary bits to an integer value

Discussion

Module Pack

Standard

ClassID

classID = 31

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. 

Copyright (c) 2026 DSP Concepts, Inc.