Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - English

Change language to:
Français - 日本語 - Português

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> xcos > palettes > Integer palette > BITSET

BITSET

Set a Bit

Block Screenshot

Description

This blocks set the specified bit of the integer input to 1. The user can specify the bit in the field:"index of bit". Bit 0 is the least significant bit.

Dialog box

  • Datatype(3=int32 4=int16 5=int8 ...)

    It indicates the type of the input/output data. It support all the integer datatype, number must be between 3 and 8.

    Properties : Type 'vec' of size 1.

  • index of bit (0 is leat significant)

    It indicate the index of the bit to clear. When the type is int32 or uint32 the number must be positive and less than 32. When the type is int16 or uint16 the number must be positive and less than 16. When the type is int8 or uint8 the number must be positive and less than 8.

    Properties : Type 'vec' of size 1.

Default properties

  • always active: no

  • direct-feedthrough: yes

  • zero-crossing: no

  • mode: no

  • regular inputs:

    - port 1 : size [1,1] / type 3

  • regular outputs:

    - port 1 : size [1,1] / type 3

  • number/sizes of activation inputs: 0

  • number/sizes of activation outputs: 0

  • continuous-time state: no

  • discrete-time state: no

  • object discrete-time state: no

  • name of computational function: bit_set_32

Interfacing function

  • SCI/modules/scicos_blocks/macros/IntegerOp/BITSET.sci

Computational function

  • SCI/modules/scicos_blocks/src/c/bit_set_32.c

  • SCI/modules/scicos_blocks/src/c/bit_set_16.c

  • SCI/modules/scicos_blocks/src/c/bit_set_8.c

Authors

Fady NASSIF - INRIA

<< BITCLEAR Integer palette CONVERT >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:23:47 CET 2011