bitXIsNotEqualTo
Short summary
This assertion method checks if the selected bit of current value is not equal to the unexpected value
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| currentValue | BYTE | current value to check | input |
| number | BitNumberByte | number of bit to check | input |
| unexpectedValue | BOOL | unexpected value of bit | input |
| message | AssertMessage | message if the assertion is false | input |
Code
Declaration
METHOD bitXIsNotEqualTo
VAR_INPUT
(* current value to check *)
currentValue :BYTE;
(* number of bit to check *)
number :BitNumberByte;
(* unexpected value of bit *)
unexpectedValue :BOOL;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR