Event Bool Feature Pseudo-Code

boolean ACTION(void)

  • The Feature takes no arguments.
  • The Feature returns a boolean value.
  • The ACTION is performed on target.


Event Bool Panel



Event Bool Macro

Description:

Macro

Identifier

Displayed Name

Group*

TRUE Text

FALSE Text


Example:

define_bool_event(

eventButtonAState,

"Button-A State",

6,

"Activated",

"Not Activated"

);


*optional argument. If Group is omitted the Group-Number will default to 0.

The unique message id is derived from the row number, in source file where the macro is used.



Event Bool XML Definition

Description

XML

Feature Root: Start

<F>

Event Bool: Start

<Eb>

ID

<I>BYTE</I>

SUB ID

<Is>BYTE</Is>

GROUP

<Gr>BYTE</Gr>

NAME

<N>STRING</N>

Panel TRUE-text

<B1>STRING</B1>

Panel FALSE-text

<B0>STRING</B0>

Event Bool: End

</Eb>

Feature Root: End

</F>



Event Bool Data Message

The Boolean argument has only two states TRUE or FALSE.


State

BOOL VALUE

TRUE

1

FALSE

0


The value is represented by one single byte in the message.

Byte#

0

1

2

3

4

5

6

Name

START

ID

SUB ID

BOOL VALUE

CRC MSB

CRC LSB

END

Value

0xAA

[0..255]

[0..255]

[0..1]

CRC16-CITT

0xBB