<< BITCLEAR Integer_pal CONVERT >>

Scilab Help >> Xcos > palettes > Integer_pal > BITSET

BITSET

Set a Bit

Block Screenshot

Contents

Description

This block sets to 1 the specified bit of its input. The user gives the bit index in the field Index of Bit with index 0, as that of the least significant bit.The operation can be summarized by this expression:

Sortie = Entrée ∨ Masque

i.e. a bitwise OR between Input and Mask, an integer of the same length as the input with a value 1 for the bit to set and a value 0 for the other bits.

Data types

The block supports the following types :

Parameters

Default properties

Example

Below a simple use case of the block.

Interfacing function

Computational function

See also


Report an issue
<< BITCLEAR Integer_pal CONVERT >>