company logo

BaseContext :: bState3 - Context state3 property

The context state3() 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  :: bState3 ( int8 iBit )

    The function returns the value of the context state3 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  :: bState3 ( int8 iBit, bool bState )

    The function sets the state3 bit at position iBit to the value of bState (true or false) and returns the old state3 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