Engee documentation

Bit Clear

Sets the specified bit of the input signal to zero.

bit clear

Description

The Bit Clear block sets the specified bit of the input signal to zero. Scaling is ignored.

The bit number to be set to zero is specified by the Index of bit (0 is least significant) parameter, where zero is the least significant bit.

Ports

Entry

Port_1 - input signal
scalar | vector

Input signal (integer), which will have a bit set.

Data types: Integer.

Output

Port_1 - output signal
scalar | vector

Output signal (integer) with the specified bit set to zero.

Data types: Integer.

Parameters

Index of bit (0 is least significant) - index of bit
0 (by default) | scalar or vector

Bit number to be set. The least significant bit has the number 0.

Usage in program code

Block parameter

iBit

Values

{'0'}

By default

0

Additional options

C code generation: Yes