Skip to main content

orMaskIsEqualTo

Short summary​

This assertion method checks if the result current value bitwise OR 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 orMaskIsEqualTo
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