Skip to main content

xorMaskIsEqualTo

Short summary

This assertion method checks if the result current value bitwise XOR mask is equal to the expected value

Parameters

NameTypeCommentKind
currentValueBYTEcurrent value to checkinput
maskBYTE2nd operand for bitwise operationinput
expectedValueBYTEexpected result after maskinginput
messageAssertMessagemessage if the assertion is falseinput

Code

Declaration

METHOD xorMaskIsEqualTo
VAR_INPUT
(* current value to check *)
currentValue :BYTE;
(* 2nd operand for bitwise operation *)
mask :BYTE;
(* expected result after masking *)
expectedValue :BYTE;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR