company logo

BaseContext :: bState1 - Context state1 property

The context state1() can be set to any 16-bit integer value. Context states are not used by the system but are reserved for the application. The function supports setting and checking state bit-positions.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation overview

Implementation details

  1. Check context state bit
    bool BaseContext  :: bState1 ( int8 iBit )

    The function returns the value of the context state1 bit at position iBit.

    • iBit - Bit position

      Bit positions are numbered from 0 to 15.

  2. to list
  3. Update context state bit position
    bool BaseContext  :: bState1 ( int8 iBit, bool bState )

    The function sets the state1 bit at position iBit to the value of bState (true or false) and returns the old state1 value at iBit position.

    • iBit - Bit position

      Bit positions are numbered from 0 to 15.

    • bState - Success

      The value is true when the function was executed successfully. Otherwise the value is set to false.

  4. to list