Skip to main content

msbIsEqualTo

Short summary​

This assertion method checks if the most significant bit of current value is equal to the expected value

Parameters​

NameTypeCommentKind
currentValueBYTEcurrent value to checkinput
expectedValueBOOLexpected value of msbinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD msbIsEqualTo
VAR_INPUT
(* current value to check *)
currentValue :BYTE;
(* expected value of msb *)
expectedValue :BOOL;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR